diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-10-27 19:36:49 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-11-21 21:09:39 +0800 |
commit | ffc12f63ec57682e7c7f6653332856acbeef3183 (patch) | |
tree | 581a82231e18824c36f759421f78caa2cd83a8de /cmd/puppeth/module_explorer.go | |
parent | 80be5e546398203c1958a0f512e651a2c36b1fe0 (diff) | |
download | dexon-ffc12f63ec57682e7c7f6653332856acbeef3183.tar.gz dexon-ffc12f63ec57682e7c7f6653332856acbeef3183.tar.zst dexon-ffc12f63ec57682e7c7f6653332856acbeef3183.zip |
cmd/puppeth: simplifications and pre-built docker images
Diffstat (limited to 'cmd/puppeth/module_explorer.go')
-rw-r--r-- | cmd/puppeth/module_explorer.go | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/cmd/puppeth/module_explorer.go b/cmd/puppeth/module_explorer.go index 589b071e7..819f356c3 100644 --- a/cmd/puppeth/module_explorer.go +++ b/cmd/puppeth/module_explorer.go @@ -30,31 +30,16 @@ import ( // explorerDockerfile is the Dockerfile required to run a block explorer. var explorerDockerfile = ` -FROM parity/parity:stable - -RUN \ - apt-get update && apt-get install -y curl git npm make g++ --no-install-recommends && \ - npm install -g n pm2 && n stable - -RUN \ - git clone --depth=1 https://github.com/puppeth/eth-net-intelligence-api && \ - cd eth-net-intelligence-api && npm install - -RUN \ - git clone --depth=1 https://github.com/puppeth/etherchain-light --recursive && \ - cd etherchain-light && npm install && mv config.js.example config.js && \ - sed -i '/this.bootstrapUrl/c\ this.bootstrapUrl = "https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css";' config.js +FROM puppeth/explorer:latest ADD ethstats.json /ethstats.json 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 '(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 -EXPOSE 3000 - ENTRYPOINT ["/bin/sh", "explorer.sh"] ` |