-
Notifications
You must be signed in to change notification settings - Fork 20.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revert "refactor Dockerfile""
- Loading branch information
Showing
3 changed files
with
54 additions
and
39 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |