Skip to content

Commit

Permalink
Merge pull request #13 from dappnode/fix/cfgs-uptodate
Browse files Browse the repository at this point in the history
Fix/cfgs uptodate
  • Loading branch information
eduadiez authored Nov 30, 2020
2 parents 3b56dea + 3e7f939 commit cbf4c12
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 177 deletions.
11 changes: 10 additions & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@ ARG UPSTREAM_VERSION
FROM nethermind/nethermind:${UPSTREAM_VERSION}

COPY entrypoint.sh /entrypoint.sh
COPY mainnet_archive.cfg mainnet.cfg mainnet_advanced.cfg /nethermind/configs/

RUN apt-get update && apt-get install -y jq moreutils && \
curl -LJO https://raw.githubusercontent.com/NethermindEth/nethermind/master/src/Nethermind/Nethermind.Runner/configs/mainnet.cfg && \
curl -LJO https://raw.githubusercontent.com/NethermindEth/nethermind/master/src/Nethermind/Nethermind.Runner/configs/mainnet_archive.cfg

RUN cat mainnet.cfg | jq '.JsonRpc.Host = "0.0.0.0"' | jq ".Init.WebSocketsEnabled = true" | jq ".JsonRpc.Enabled = true" | sponge mainnet.cfg && \
cat mainnet_archive.cfg | jq '.JsonRpc.Host = "0.0.0.0"' | jq ".Init.WebSocketsEnabled = true" | jq ".JsonRpc.Enabled = true" | sponge mainnet_archive.cfg && \
cp mainnet.cfg mainnet_advanced.cfg

RUN cp mainnet_archive.cfg mainnet.cfg mainnet_advanced.cfg /nethermind/configs/

RUN groupadd -g 1000 nethermind && useradd -u 1000 -g nethermind -s /bin/sh nethermind

Expand Down
51 changes: 0 additions & 51 deletions build/mainnet.cfg

This file was deleted.

51 changes: 0 additions & 51 deletions build/mainnet_advanced.cfg

This file was deleted.

74 changes: 0 additions & 74 deletions build/mainnet_archive.cfg

This file was deleted.

0 comments on commit cbf4c12

Please sign in to comment.