aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorcaktux <caktux@gmail.com>2015-04-23 01:46:04 +0800
committercaktux <caktux@gmail.com>2015-04-23 01:46:04 +0800
commit5f6c8832af98d9b8529b2ab771942f1536b0b081 (patch)
tree49e63b1295e1c265fffcdceb880562a16abae5a7 /docker
parent35595560f0111ab09427481144f654ab579f5e5a (diff)
parent39047d7d8bac443a3f1d3775be147de4b763e7da (diff)
downloadgo-tangerine-5f6c8832af98d9b8529b2ab771942f1536b0b081.tar
go-tangerine-5f6c8832af98d9b8529b2ab771942f1536b0b081.tar.gz
go-tangerine-5f6c8832af98d9b8529b2ab771942f1536b0b081.tar.bz2
go-tangerine-5f6c8832af98d9b8529b2ab771942f1536b0b081.tar.lz
go-tangerine-5f6c8832af98d9b8529b2ab771942f1536b0b081.tar.xz
go-tangerine-5f6c8832af98d9b8529b2ab771942f1536b0b081.tar.zst
go-tangerine-5f6c8832af98d9b8529b2ab771942f1536b0b081.zip
Merge pull request #781 from caktux/develop
refactor Dockerfile
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile31
-rw-r--r--docker/supervisord.conf23
2 files changed, 54 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
new file mode 100644
index 000000000..b608e4ab6
--- /dev/null
+++ b/docker/Dockerfile
@@ -0,0 +1,31 @@
+FROM ubuntu:utopic
+MAINTAINER caktux
+
+ENV DEBIAN_FRONTEND noninteractive
+
+# Usual update / upgrade
+RUN apt-get update
+RUN apt-get upgrade -q -y
+RUN apt-get dist-upgrade -q -y
+
+# Let our containers upgrade themselves
+RUN apt-get install -q -y unattended-upgrades
+
+# Install Ethereum
+RUN apt-get install -q -y software-properties-common
+RUN add-apt-repository ppa:ethereum/ethereum
+RUN add-apt-repository ppa:ethereum/ethereum-dev
+RUN apt-get update
+RUN apt-get install -q -y geth
+
+# Install supervisor
+RUN apt-get install -q -y supervisor
+
+# Add supervisor configs
+ADD supervisord.conf supervisord.conf
+
+EXPOSE 8545
+EXPOSE 30303
+
+CMD ["-n", "-c", "/supervisord.conf"]
+ENTRYPOINT ["/usr/bin/supervisord"]
diff --git a/docker/supervisord.conf b/docker/supervisord.conf
new file mode 100644
index 000000000..33cba0c14
--- /dev/null
+++ b/docker/supervisord.conf
@@ -0,0 +1,23 @@
+[supervisord]
+nodaemon=false
+
+[program:geth]
+priority=30
+directory=/
+command=geth --rpc
+user=root
+autostart=true
+autorestart=true
+startsecs=10
+stopsignal=QUIT
+stdout_logfile=/var/log/geth.log
+stderr_logfile=/var/log/geth.err
+
+[unix_http_server]
+file=%(here)s/supervisor.sock
+
+[supervisorctl]
+serverurl=unix://%(here)s/supervisor.sock
+
+[rpcinterface:supervisor]
+supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface \ No newline at end of file