Skip to content
Open
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
9 changes: 6 additions & 3 deletions prysm/build_beacon_minimal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ END
# Build with blst_enabled and blst_portable to support both amd64 and arm64. The BLST library (used for
# cryptographic operations) needs specific CPU features.
CGO_ENABLED=1 go build \
-tags=blst_enabled,blst_portable \
-tags="minimal,blst_enabled,blst_portable" \
-ldflags "${ldflags}" \
-o _beacon-chain ./cmd/beacon-chain
;;
Expand All @@ -47,8 +47,11 @@ END
;;
esac

cp ${SCRIPT_DIR}/entrypoint.sh entrypoint.sh
cp ${SCRIPT_DIR}/entrypoint_minimal.sh entrypoint.sh

docker build -t "${target_repository}:${target_tag}" -t "${target_repository}:${target_tag}-${source_git_commit_hash}" --build-arg ENTRY=/app/cmd/beacon-chain/beacon-chain -f "../${target_dockerfile}" .
docker build -t "${target_repository}:${target_tag}" \
-t "${target_repository}:${target_tag}-${source_git_commit_hash}" \
--build-arg ENTRY="/app/cmd/beacon-chain/beacon-chain" \
-f "../${target_dockerfile}" .
docker push "${target_repository}:${target_tag}"
docker push "${target_repository}:${target_tag}-${source_git_commit_hash}"
9 changes: 6 additions & 3 deletions prysm/build_validator_minimal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ END
# Build with blst_enabled and blst_portable to support both amd64 and arm64. The BLST library (used for
# cryptographic operations) needs specific CPU features.
CGO_ENABLED=1 go build \
-tags=blst_enabled,blst_portable \
-tags="minimal,blst_enabled,blst_portable" \
-ldflags "${ldflags}" \
-o _validator ./cmd/validator
;;
Expand All @@ -47,8 +47,11 @@ END
;;
esac

cp ${SCRIPT_DIR}/entrypoint.sh entrypoint.sh
cp ${SCRIPT_DIR}/entrypoint_minimal.sh entrypoint.sh

docker build -t "${target_repository}:${target_tag}" -t "${target_repository}:${target_tag}-${source_git_commit_hash}" --build-arg ENTRY=/app/cmd/validator/validator -f "../${target_dockerfile}" .
docker build -t "${target_repository}:${target_tag}" \
-t "${target_repository}:${target_tag}-${source_git_commit_hash}" \
--build-arg ENTRY="/app/cmd/validator/validator" \
-f "../${target_dockerfile}" .
docker push "${target_repository}:${target_tag}"
docker push "${target_repository}:${target_tag}-${source_git_commit_hash}"
2 changes: 1 addition & 1 deletion prysm/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
exec "${ENTRY}" "$@"
exec "${ENTRY}" "$@"
2 changes: 2 additions & 0 deletions prysm/entrypoint_minimal.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
exec "${ENTRY}" --minimal-config "$@"