Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump upstream and change state schema #75

Closed
wants to merge 2 commits into from
Closed
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
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ COPY entrypoint.sh /usr/local/bin/entrypoint.sh

RUN apk update && apk add curl

ENV GETH_AUTHRPC_ADDR=0.0.0.0 GETH_AUTHRPC_PORT=8551 GETH_AUTHRPC_VHOSTS=*

ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
17 changes: 13 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
version: "3.4"
services:
geth.dnp.dappnode.eth:
image: "geth.dnp.dappnode.eth:0.1.38"
image: "geth.dnp.dappnode.eth:0.1.43"
build:
context: .
args:
UPSTREAM_VERSION: v1.13.1
UPSTREAM_VERSION: v1.13.2
volumes:
- "geth:/root/.ethereum"
environment:
- "EXTRA_OPTION=--http.api eth,engine,net,web3,txpool"
- P2P_PORT=30403
- SYNCMODE=snap
- GETH_HTTP=true
- GETH_HTTP_ADDR=0.0.0.0
- GETH_HTTP_CORSDOMAIN=*
- GETH_HTTP_VHOSTS=*
- GETH_SYNCMODE=snap
- GETH_WS=true
- GETH_WS_ADDR=0.0.0.0
- GETH_PORT=30403
- GETH_METRICS=true
- GETH_METRICS_ADDR=0.0.0.0
- GETH_STATE_SCHEME=path
ports:
- "30403:30403/tcp"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to allow editing GETH_PORT port knowing that the port mapped is set to 30403 (UDP and TCP)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left that just to preserve backward compatibility. Even better would be that we do not rename those vars, so I will fix that.

- "30403:30403/udp"
Expand Down
17 changes: 1 addition & 16 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,4 @@ esac
JWT=$(cat $JWT_PATH)
curl -X POST "http://my.dappnode/data-send?key=jwt&data=${JWT}"

exec geth \
--http --http.addr 0.0.0.0 \
--http.corsdomain "*" \
--http.vhosts "*" \
--syncmode ${SYNCMODE:-snap} \
--ws \
--ws.origins "*" \
--ws.addr 0.0.0.0 \
--port ${P2P_PORT} \
--metrics \
--metrics.addr 0.0.0.0 \
--authrpc.addr 0.0.0.0 \
dappnodedev marked this conversation as resolved.
Show resolved Hide resolved
--authrpc.port 8551 \
--authrpc.vhosts "*" \
--authrpc.jwtsecret ${JWT_PATH} \
$EXTRA_OPTION
exec geth --authrpc.jwtsecret ${JWT_PATH} $EXTRA_OPTION
Loading