Skip to content

Commit 33083e6

Browse files
committed
Revert "Revert "refactor Dockerfile""
1 parent 95f172d commit 33083e6

3 files changed

Lines changed: 54 additions & 39 deletions

File tree

‎Dockerfile‎

Lines changed: 0 additions & 39 deletions
This file was deleted.

‎docker/Dockerfile‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
FROM ubuntu:utopic
2+
MAINTAINER caktux
3+
4+
ENV DEBIAN_FRONTEND noninteractive
5+
6+
# Usual update / upgrade
7+
RUN apt-get update
8+
RUN apt-get upgrade -q -y
9+
RUN apt-get dist-upgrade -q -y
10+
11+
# Let our containers upgrade themselves
12+
RUN apt-get install -q -y unattended-upgrades
13+
14+
# Install Ethereum
15+
RUN apt-get install -q -y software-properties-common
16+
RUN add-apt-repository ppa:ethereum/ethereum
17+
RUN add-apt-repository ppa:ethereum/ethereum-dev
18+
RUN apt-get update
19+
RUN apt-get install -q -y geth
20+
21+
# Install supervisor
22+
RUN apt-get install -q -y supervisor
23+
24+
# Add supervisor configs
25+
ADD supervisord.conf supervisord.conf
26+
27+
EXPOSE 8545
28+
EXPOSE 30303
29+
30+
CMD ["-n", "-c", "/supervisord.conf"]
31+
ENTRYPOINT ["/usr/bin/supervisord"]

‎docker/supervisord.conf‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[supervisord]
2+
nodaemon=false
3+
4+
[program:geth]
5+
priority=30
6+
directory=/
7+
command=geth --rpc
8+
user=root
9+
autostart=true
10+
autorestart=true
11+
startsecs=10
12+
stopsignal=QUIT
13+
stdout_logfile=/var/log/geth.log
14+
stderr_logfile=/var/log/geth.err
15+
16+
[unix_http_server]
17+
file=%(here)s/supervisor.sock
18+
19+
[supervisorctl]
20+
serverurl=unix://%(here)s/supervisor.sock
21+
22+
[rpcinterface:supervisor]
23+
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

0 commit comments

Comments
 (0)