From ffc12f63ec57682e7c7f6653332856acbeef3183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Fri, 27 Oct 2017 14:36:49 +0300 Subject: cmd/puppeth: simplifications and pre-built docker images --- cmd/puppeth/module_explorer.go | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) (limited to 'cmd/puppeth/module_explorer.go') 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"] ` -- cgit v1.2.3