mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 13:21:37 +00:00
Package a single XDC binary for all networks and remove binary-switching logic from the CI/CD flow.
Changes:
- cicd/Dockerfile: build once and copy only /usr/bin/XDC
- cicd/entry.sh: validate NETWORK and remove runtime relink
- Makefile: make XDC-devnet-local depend on XDC; remove constants file swap
- common/constants: delete duplicated constants.go.{testnet,devnet,local}
Impact:
- network differences are now driven by runtime config, not separate binaries
|
||
|---|---|---|
| .. | ||
| devnet | ||
| local | ||
| mainnet | ||
| testnet | ||
| .dockerignore | ||
| Dockerfile | ||
| entry.sh | ||
| puppeth.sh | ||
| README.md | ||
Docker Command
Docker Build
docker build -f cicd/Dockerfile .
Docker Run
docker run -it -e NETWORK=devnet -e PRIVATE_KEY=$KEY $IMAGE
``