aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/puppeth/module_explorer.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-08-03 17:08:19 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-08-03 17:08:19 +0800
commitfaf0e06ed8ffbf3a938312724c8cf722b1132d15 (patch)
tree86b3e6af68c6422ddce99f4547930c8bdf7d498e /cmd/puppeth/module_explorer.go
parent70176cda0eedbb4ec9cde867e8f6cde63efa5a12 (diff)
downloaddexon-faf0e06ed8ffbf3a938312724c8cf722b1132d15.tar
dexon-faf0e06ed8ffbf3a938312724c8cf722b1132d15.tar.gz
dexon-faf0e06ed8ffbf3a938312724c8cf722b1132d15.tar.bz2
dexon-faf0e06ed8ffbf3a938312724c8cf722b1132d15.tar.lz
dexon-faf0e06ed8ffbf3a938312724c8cf722b1132d15.tar.xz
dexon-faf0e06ed8ffbf3a938312724c8cf722b1132d15.tar.zst
dexon-faf0e06ed8ffbf3a938312724c8cf722b1132d15.zip
cmd/puppeth: graceful shutdown on redeploys
Diffstat (limited to 'cmd/puppeth/module_explorer.go')
-rw-r--r--cmd/puppeth/module_explorer.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/puppeth/module_explorer.go b/cmd/puppeth/module_explorer.go
index bb43e5fe4..e916deaf6 100644
--- a/cmd/puppeth/module_explorer.go
+++ b/cmd/puppeth/module_explorer.go
@@ -38,7 +38,7 @@ ADD chain.json /chain.json
RUN \
echo '(cd ../eth-net-intelligence-api && pm2 start /ethstats.json)' > explorer.sh && \
echo '(cd ../etherchain-light && npm start &)' >> explorer.sh && \
- echo '/parity/parity --chain=/chain.json --port={{.NodePort}} --tracing=on --fat-db=on --pruning=archive' >> explorer.sh
+ echo 'exec /parity/parity --chain=/chain.json --port={{.NodePort}} --tracing=on --fat-db=on --pruning=archive' >> explorer.sh
ENTRYPOINT ["/bin/sh", "explorer.sh"]
`
@@ -140,9 +140,9 @@ func deployExplorer(client *sshClient, network string, chainspec []byte, config
// Build and deploy the boot or seal node service
if nocache {
- return nil, client.Stream(fmt.Sprintf("cd %s && docker-compose -p %s build --pull --no-cache && docker-compose -p %s up -d --force-recreate", workdir, network, network))
+ return nil, client.Stream(fmt.Sprintf("cd %s && docker-compose -p %s build --pull --no-cache && docker-compose -p %s up -d --force-recreate --timeout 60", workdir, network, network))
}
- return nil, client.Stream(fmt.Sprintf("cd %s && docker-compose -p %s up -d --build --force-recreate", workdir, network))
+ return nil, client.Stream(fmt.Sprintf("cd %s && docker-compose -p %s up -d --build --force-recreate --timeout 60", workdir, network))
}
// explorerInfos is returned from a block explorer status check to allow reporting