Updated Dockerfile
This commit is contained in:
parent
37297f9943
commit
90b2e31a80
17
Dockerfile
17
Dockerfile
@ -5,11 +5,13 @@ FROM ubuntu:20.04
|
|||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y wget && \
|
apt-get install -y wget && \
|
||||||
apt-get install -y gnupg2 && \
|
apt-get install -y gnupg2 && \
|
||||||
apt-get install -y software-properties-common
|
apt-get install -y software-properties-common && \
|
||||||
|
apt install supervisor
|
||||||
|
|
||||||
# Download the pre-built files from GitHub releases
|
# Download the pre-built files from GitHub releases
|
||||||
RUN wget https://github.com/ranchimall/blockbook/releases/download/flo-v0.4.0-ubuntu/backend-flo_0.15.1.1-satoshilabs-1_amd64.deb && \
|
RUN wget https://github.com/ranchimall/blockbook/releases/download/flo-v0.4.0-ubuntu/backend-flo_0.15.1.1-satoshilabs-1_amd64.deb && \
|
||||||
wget https://github.com/ranchimall/blockbook/releases/download/flo-v0.4.0-ubuntu/blockbook-flo_0.4.0_amd64.deb
|
wget https://github.com/ranchimall/blockbook/releases/download/flo-v0.4.0-ubuntu/blockbook-flo_0.4.0_amd64.deb
|
||||||
|
|
||||||
# Install the downloaded packages
|
# Install the downloaded packages
|
||||||
RUN apt install -y ./backend-flo_0.15.1.1-satoshilabs-1_amd64.deb && \
|
RUN apt install -y ./backend-flo_0.15.1.1-satoshilabs-1_amd64.deb && \
|
||||||
apt install -y ./blockbook-flo_0.4.0_amd64.deb
|
apt install -y ./blockbook-flo_0.4.0_amd64.deb
|
||||||
@ -18,8 +20,19 @@ RUN apt install -y ./backend-flo_0.15.1.1-satoshilabs-1_amd64.deb && \
|
|||||||
RUN rm -f ./backend-flo_0.15.1.1-satoshilabs-1_amd64.deb && \
|
RUN rm -f ./backend-flo_0.15.1.1-satoshilabs-1_amd64.deb && \
|
||||||
rm -f ./blockbook-flo_0.4.0_amd64.deb
|
rm -f ./blockbook-flo_0.4.0_amd64.deb
|
||||||
|
|
||||||
|
# Setting up supervisor configurations
|
||||||
|
#COPY backend-flo.conf /etc/supervisor/conf.d/
|
||||||
|
#COPY blockbook-flo.conf /etc/supervisor/conf.d/
|
||||||
|
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||||
|
RUN touch /var/log/backend-flo-error.log && touch /var/log/backend-flo.log && touch /var/log/blockbook-flo-error.log && touch /var/log/blockbook-flo.log
|
||||||
|
#RUN supervisorctl reread && supervisorctl update
|
||||||
|
|
||||||
# Expose the port for the Blockbook web interface
|
# Expose the port for the Blockbook web interface
|
||||||
EXPOSE 9166
|
EXPOSE 9166
|
||||||
|
|
||||||
# Start the Blockbook service
|
# Start the Blockbook service
|
||||||
CMD ["/usr/local/bin/blockbook", "--config", "/etc/blockbook/blockbook-flo.cfg"]
|
#CMD ["/usr/local/bin/blockbook", "--config", "/etc/blockbook/blockbook-flo.cfg"]
|
||||||
|
#CMD ["/opt/coins/nodes/flo/bin/flod -datadir=/opt/coins/data/flo/backend -conf=/opt/coins/nodes/flo/flo.conf -pid=/run/flo/flo.pid"]
|
||||||
|
|
||||||
|
EXPOSE 22 80
|
||||||
|
CMD ["/usr/bin/supervisord"]
|
||||||
8
backend-flo.conf
Normal file
8
backend-flo.conf
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
[program:backend-flo]
|
||||||
|
command=/opt/coins/nodes/flo/bin/flod -datadir=/opt/coins/data/flo/backend -conf=/opt/coins/nodes/flo/flo.conf -pid=/run/flo/flo.pid
|
||||||
|
user=flo
|
||||||
|
autostart=true
|
||||||
|
autorestart=true
|
||||||
|
redirect_stderr=true
|
||||||
|
stdout_logfile=/var/log/backend-flo.log
|
||||||
|
stderr_logfile=/var/log/backend-flo-error.log
|
||||||
8
blockbook-flo.conf
Normal file
8
blockbook-flo.conf
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
[program:blockbook-flo]
|
||||||
|
command=/opt/coins/blockbook/flo/bin/blockbook -blockchaincfg=/opt/coins/blockbook/flo/config/blockchaincfg.json -datadir=/opt/coins/data/flo/blockbook/db -sync -internal=:9066 -public=:9166 -certfile=/opt/coins/blockbook/flo/cert/blockbook -explorer= -log_dir=/opt/coins/blockbook/flo/logs -dbcache=1073741824
|
||||||
|
user=root
|
||||||
|
autostart=true
|
||||||
|
autorestart=true
|
||||||
|
redirect_stderr=true
|
||||||
|
stdout_logfile=/var/log/blockbook-flo.log
|
||||||
|
stderr_logfile=/var/log/blockbook-flo-error.log
|
||||||
13
supervisord.conf
Normal file
13
supervisord.conf
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
[supervisord]
|
||||||
|
nodaemon=true
|
||||||
|
user=root
|
||||||
|
|
||||||
|
[program:backend-flo]
|
||||||
|
command=/opt/coins/nodes/flo/bin/flod -datadir=/opt/coins/data/flo/backend -conf=/opt/coins/nodes/flo/flo.conf -pid=/run/flo/flo.pid
|
||||||
|
user=flo
|
||||||
|
autostart=false
|
||||||
|
autorestart=false
|
||||||
|
redirect_stderr=true
|
||||||
|
stdout_logfile=/var/log/backend-flo.log
|
||||||
|
stderr_logfile=/var/log/backend-flo-error.log
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user