File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,11 +40,11 @@ ADD genesis.json /genesis.json
4040 ADD signer.pass /signer.pass
4141{{end}}
4242RUN \
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
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
4646
47- ENTRYPOINT ["/bin/sh", "geth.sh"]
47+ ENTRYPOINT ["/bin/sh", "/root/ geth.sh"]
4848`
4949
5050// nodeComposefile is the docker-compose.yml file required to deploy and maintain
You can’t perform that action at this time.
0 commit comments