Skip to content

Commit 7d2c730

Browse files
authored
Merge pull request #16551 from ethereum/revert-16477-puppeth-dockerfile-permission-fix
Revert "cmd/puppeth: fix node deploys for updated dockerfile user"
2 parents 4f91831 + abd881f commit 7d2c730

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/puppeth/module_node.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ ADD genesis.json /genesis.json
4040
ADD signer.pass /signer.pass
4141
{{end}}
4242
RUN \
43-
echo 'geth --cache 512 init /genesis.json' > /root/geth.sh && \{{if .Unlock}}
44-
echo 'mkdir -p /root/.ethereum/keystore/ && cp /signer.json /root/.ethereum/keystore/' >> /root/geth.sh && \{{end}}
45-
echo $'geth --networkid {{.NetworkID}} --cache 512 --port {{.Port}} --maxpeers {{.Peers}} {{.LightFlag}} --ethstats \'{{.Ethstats}}\' {{if .Bootnodes}}--bootnodes {{.Bootnodes}}{{end}} {{if .Etherbase}}--etherbase {{.Etherbase}} --mine --minerthreads 1{{end}} {{if .Unlock}}--unlock 0 --password /signer.pass --mine{{end}} --targetgaslimit {{.GasTarget}} --gasprice {{.GasPrice}}' >> /root/geth.sh
43+
echo 'geth --cache 512 init /genesis.json' > geth.sh && \{{if .Unlock}}
44+
echo 'mkdir -p /root/.ethereum/keystore/ && cp /signer.json /root/.ethereum/keystore/' >> geth.sh && \{{end}}
45+
echo $'geth --networkid {{.NetworkID}} --cache 512 --port {{.Port}} --maxpeers {{.Peers}} {{.LightFlag}} --ethstats \'{{.Ethstats}}\' {{if .Bootnodes}}--bootnodes {{.Bootnodes}}{{end}} {{if .Etherbase}}--etherbase {{.Etherbase}} --mine --minerthreads 1{{end}} {{if .Unlock}}--unlock 0 --password /signer.pass --mine{{end}} --targetgaslimit {{.GasTarget}} --gasprice {{.GasPrice}}' >> geth.sh
4646
47-
ENTRYPOINT ["/bin/sh", "/root/geth.sh"]
47+
ENTRYPOINT ["/bin/sh", "geth.sh"]
4848
`
4949

5050
// nodeComposefile is the docker-compose.yml file required to deploy and maintain

0 commit comments

Comments
 (0)