diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-04-10 18:13:05 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-04-10 18:13:05 +0800 |
commit | 7c1e9a5004c61ee6ec4636fd1926fafa0ae6a940 (patch) | |
tree | 4a97ceaadaead45f05927ef8f5c1f73a930e056e /cmd | |
parent | 39f4c80155b891643b098f99edd0e630e16a5f99 (diff) | |
download | dexon-7c1e9a5004c61ee6ec4636fd1926fafa0ae6a940.tar dexon-7c1e9a5004c61ee6ec4636fd1926fafa0ae6a940.tar.gz dexon-7c1e9a5004c61ee6ec4636fd1926fafa0ae6a940.tar.bz2 dexon-7c1e9a5004c61ee6ec4636fd1926fafa0ae6a940.tar.lz dexon-7c1e9a5004c61ee6ec4636fd1926fafa0ae6a940.tar.xz dexon-7c1e9a5004c61ee6ec4636fd1926fafa0ae6a940.tar.zst dexon-7c1e9a5004c61ee6ec4636fd1926fafa0ae6a940.zip |
cmd/puppeth: fix node deploys for updated dockerfile user
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/puppeth/module_node.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/puppeth/module_node.go b/cmd/puppeth/module_node.go index 2609fd976..49c099112 100644 --- a/cmd/puppeth/module_node.go +++ b/cmd/puppeth/module_node.go @@ -40,11 +40,11 @@ ADD genesis.json /genesis.json ADD signer.pass /signer.pass {{end}} RUN \ - echo 'geth --cache 512 init /genesis.json' > geth.sh && \{{if .Unlock}} - echo 'mkdir -p /root/.ethereum/keystore/ && cp /signer.json /root/.ethereum/keystore/' >> geth.sh && \{{end}} - 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 + echo 'geth --cache 512 init /genesis.json' > /root/geth.sh && \{{if .Unlock}} + echo 'mkdir -p /root/.ethereum/keystore/ && cp /signer.json /root/.ethereum/keystore/' >> /root/geth.sh && \{{end}} + 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 -ENTRYPOINT ["/bin/sh", "geth.sh"] +ENTRYPOINT ["/bin/sh", "/root/geth.sh"] ` // nodeComposefile is the docker-compose.yml file required to deploy and maintain |