fixturenet-eth-stacks/stack-orchestrator/container-build/cerc-fixturenet-eth-geth/Dockerfile
Roy Crihfield f20f91422b
All checks were successful
Test Ethereum Fixturenet Stack / Run Ethereum Fixturenet stack test (push) Successful in 18m34s
Use state.scheme=hash (#15)
As of [Geth 1.14](https://github.com/ethereum/go-ethereum/releases/tag/v1.14.0), state storage defaults to `--state.scheme=path` mode for new DBs. This doesn't yet support archiving, so for now we need to explicitly use the old `hash` scheme.

Reviewed-on: #15
2024-07-10 01:27:58 +00:00

24 lines
787 B
Docker

FROM cerc/fixturenet-eth-genesis-postmerge:local as fnetgen
FROM ethereum/client-go:release-1.14 as geth
# Using the same golang image as used to build geth: https://github.com/cerc-io/go-ethereum/blob/HEAD/Dockerfile
FROM golang:1.21-alpine as delve
RUN go install github.com/go-delve/delve/cmd/dlv@latest
FROM alpine:3.17
RUN apk add --no-cache bash wget python3 bind-tools postgresql-client
COPY run-el.sh /opt/testnet/run.sh
COPY --from=delve /go/bin/dlv /usr/local/bin/
COPY --from=geth /usr/local/bin/geth /usr/local/bin/
COPY --from=fnetgen /opt/genesis /opt/testnet
# Initialize the geth db with our config
RUN geth --datadir ~/ethdata --state.scheme hash \
init /opt/testnet/build/el/geth.json && \
rm -f ~/ethdata/geth/nodekey
ENTRYPOINT ["/opt/testnet/run.sh"]