aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/puppeth/module_ethstats.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-10-27 19:36:49 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-11-21 21:09:39 +0800
commitffc12f63ec57682e7c7f6653332856acbeef3183 (patch)
tree581a82231e18824c36f759421f78caa2cd83a8de /cmd/puppeth/module_ethstats.go
parent80be5e546398203c1958a0f512e651a2c36b1fe0 (diff)
downloadgo-tangerine-ffc12f63ec57682e7c7f6653332856acbeef3183.tar
go-tangerine-ffc12f63ec57682e7c7f6653332856acbeef3183.tar.gz
go-tangerine-ffc12f63ec57682e7c7f6653332856acbeef3183.tar.bz2
go-tangerine-ffc12f63ec57682e7c7f6653332856acbeef3183.tar.lz
go-tangerine-ffc12f63ec57682e7c7f6653332856acbeef3183.tar.xz
go-tangerine-ffc12f63ec57682e7c7f6653332856acbeef3183.tar.zst
go-tangerine-ffc12f63ec57682e7c7f6653332856acbeef3183.zip
cmd/puppeth: simplifications and pre-built docker images
Diffstat (limited to 'cmd/puppeth/module_ethstats.go')
-rw-r--r--cmd/puppeth/module_ethstats.go14
1 files changed, 1 insertions, 13 deletions
diff --git a/cmd/puppeth/module_ethstats.go b/cmd/puppeth/module_ethstats.go
index b9874cf58..cf9e66bc1 100644
--- a/cmd/puppeth/module_ethstats.go
+++ b/cmd/puppeth/module_ethstats.go
@@ -31,21 +31,9 @@ import (
// ethstatsDockerfile is the Dockerfile required to build an ethstats backend
// and associated monitoring site.
var ethstatsDockerfile = `
-FROM mhart/alpine-node:latest
-
-RUN \
- apk add --update git && \
- git clone --depth=1 https://github.com/puppeth/eth-netstats && \
- apk del git && rm -rf /var/cache/apk/* && \
- \
- cd /eth-netstats && npm install && npm install -g grunt-cli && grunt
-
-WORKDIR /eth-netstats
-EXPOSE 3000
+FROM puppeth/ethstats:latest
RUN echo 'module.exports = {trusted: [{{.Trusted}}], banned: [{{.Banned}}], reserved: ["yournode"]};' > lib/utils/config.js
-
-CMD ["npm", "start"]
`
// ethstatsComposefile is the docker-compose.yml file required to deploy and