From 1cfae2ac3e9bc84b5529718c919b0f55b5ae7738 Mon Sep 17 00:00:00 2001 From: Tropicar Date: Tue, 24 Aug 2021 16:15:55 +0200 Subject: [PATCH 1/2] Refactor and update to the 1.10.8 version --- build/Dockerfile | 15 ++------------- dappnode_package.json | 2 +- docker-compose.yml | 2 +- 3 files changed, 4 insertions(+), 15 deletions(-) diff --git a/build/Dockerfile b/build/Dockerfile index cefa307..30be44e 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -1,16 +1,5 @@ -FROM golang:1.15-alpine as builder - ARG UPSTREAM_VERSION -RUN apk add --no-cache make gcc musl-dev linux-headers git bash - -RUN git clone -b ${UPSTREAM_VERSION} https://github.com/ethereum/go-ethereum.git && \ - cd go-ethereum && make geth - -# Pull Geth into a second stage deploy alpine container -FROM alpine:edge - -RUN apk add --no-cache ca-certificates -COPY --from=builder /go/go-ethereum/build/bin/geth /usr/local/bin +FROM ethereum/client-go:${UPSTREAM_VERSION} -ENTRYPOINT geth --ropsten --http --http.addr 0.0.0.0 --http.corsdomain "*" --http.vhosts "*" --ws --ws.origins "*" --ws.addr 0.0.0.0 $EXTRA_OPTIONS +ENTRYPOINT geth --ropsten --http --http.addr 0.0.0.0 --http.corsdomain "*" --http.vhosts "*" --ws --ws.origins "*" --ws.addr 0.0.0.0 --syncmode ${SYNCMODE:-fast} --metrics --metrics.addr 0.0.0.0 $EXTRA_OPTIONS diff --git a/dappnode_package.json b/dappnode_package.json index 9ea2696..957fc64 100644 --- a/dappnode_package.json +++ b/dappnode_package.json @@ -1,7 +1,7 @@ { "name": "ropsten.dnp.dappnode.eth", "version": "0.3.5", - "upstreamVersion": "v1.10.7", + "upstreamVersion": "v1.10.8", "upstreamRepo": "ethereum/go-ethereum", "upstreamArg": "UPSTREAM_VERSION", "shortDescription": "Ethereum testnet with PoW - closest to Mainnet", diff --git a/docker-compose.yml b/docker-compose.yml index 51a3e9c..307a9e1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: build: context: ./build args: - UPSTREAM_VERSION: v1.10.7 + UPSTREAM_VERSION: v1.10.8 volumes: - "ropsten:/root/.ethereum/" ports: From 0e5187f4c49221ebf61eb70aa6a66bfe6fecf72c Mon Sep 17 00:00:00 2001 From: Tropicar Date: Tue, 24 Aug 2021 16:57:29 +0200 Subject: [PATCH 2/2] Add environment variable syncmode --- docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose.yml b/docker-compose.yml index 307a9e1..dcc6dc4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,5 +15,6 @@ services: restart: always environment: - "EXTRA_OPTIONS=--http.api eth,net,web3,txpool" + - SYNCMODE volumes: ropsten: {}