mirror of
https://github.com/status-im/op-geth.git
synced 2025-01-14 16:55:53 +00:00
update Dockerfile, remove supervisord and unattended-upgrades
This commit is contained in:
parent
3b4ffacd0c
commit
57ab147388
@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:utopic
|
FROM ubuntu:wily
|
||||||
MAINTAINER caktux
|
MAINTAINER caktux
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
@ -8,9 +8,6 @@ RUN apt-get update
|
|||||||
RUN apt-get upgrade -q -y
|
RUN apt-get upgrade -q -y
|
||||||
RUN apt-get dist-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
|
# Install Ethereum
|
||||||
RUN apt-get install -q -y software-properties-common
|
RUN apt-get install -q -y software-properties-common
|
||||||
RUN add-apt-repository ppa:ethereum/ethereum
|
RUN add-apt-repository ppa:ethereum/ethereum
|
||||||
@ -18,14 +15,7 @@ RUN add-apt-repository ppa:ethereum/ethereum-dev
|
|||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -q -y geth
|
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 8545
|
||||||
EXPOSE 30303
|
EXPOSE 30303
|
||||||
|
|
||||||
CMD ["-n", "-c", "/supervisord.conf"]
|
ENTRYPOINT ["/usr/bin/geth"]
|
||||||
ENTRYPOINT ["/usr/bin/supervisord"]
|
|
||||||
|
@ -1,23 +0,0 @@
|
|||||||
[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
|
|
Loading…
x
Reference in New Issue
Block a user