Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
!bin/
!crates/
!LICENSE
!.git/
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ ENV FEATURES=$FEATURES
RUN cargo chef cook --profile $BUILD_PROFILE --features "$FEATURES" --recipe-path recipe.json

# Build application
COPY --exclude=.git --exclude=target . .
# Include .git so vergen-git2 can extract version info (branch, commit SHA)
COPY --exclude=target . .
RUN cargo build --profile $BUILD_PROFILE --features "$FEATURES" --locked --bin ethlambda

# ARG is not resolved in COPY so we have to hack around it by copying the
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ test: leanSpec/fixtures ## 🧪 Run all tests, then forkchoice tests with skip-s

GIT_COMMIT=$(shell git rev-parse HEAD)
GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD)
DOCKER_TAG?=local

docker-build: ## 🐳 Build the Docker image
docker build \
--build-arg GIT_COMMIT=$(GIT_COMMIT) \
--build-arg GIT_BRANCH=$(GIT_BRANCH) \
-t ghcr.io/lambdaclass/ethlambda:local .
-t ghcr.io/lambdaclass/ethlambda:$(DOCKER_TAG) .

LEAN_SPEC_COMMIT_HASH:=4edcf7bc9271e6a70ded8aff17710d68beac4266

Expand Down
2 changes: 2 additions & 0 deletions bin/ethlambda/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ async fn main() {

println!("{ASCII_ART}");

info!(version = version::CLIENT_VERSION, "Starting ethlambda");

info!(node_key=?options.node_key, "got node key");

let genesis_path = options.custom_network_config_dir.join("genesis.json");
Expand Down