From 48ca59d104eabf839544adf4bd117c5e4db20d86 Mon Sep 17 00:00:00 2001 From: asif158 Date: Thu, 13 Jun 2024 23:05:34 +0530 Subject: [PATCH] Fix: supervisord retrying issue --- testnet/Dockerfile | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/testnet/Dockerfile b/testnet/Dockerfile index 6b81629..02a1724 100644 --- a/testnet/Dockerfile +++ b/testnet/Dockerfile @@ -2,27 +2,26 @@ FROM ubuntu:22.04 ENV DEBIAN_FRONTEND=noninteractive -# RUN echo "supervisor supervisor/daemon_enable boolean true" | debconf-set-selections - COPY peers.dat /tmp +COPY supervisord.conf /tmp + COPY backend-flo-testnet_0.15.1.1-satoshilabs-1_amd64.deb /tmp/backend-flo.deb COPY blockbook-flo-testnet_0.4.0_amd64.deb /tmp/blockbook-flo.deb -COPY supervisord.conf /tmp/supervisord.conf RUN apt-get update && \ apt-get install -y /tmp/backend-flo.deb /tmp/blockbook-flo.deb supervisor && \ - # apt-get -y supervisor && \ rm /tmp/backend-flo.deb /tmp/blockbook-flo.deb -RUN cd /opt/coins/nodes/flo_testnet && \ - /opt/coins/nodes/flo_testnet/bin/flod --testnet -datadir=/opt/coins/data/flo_testnet/backend -conf=/opt/coins/nodes/flo_testnet/flo_testnet.conf -pid=/run/flo_testnet/flo_testnet.pid && \ - pkill flod +RUN sed -i "s/daemon=1/daemon=0/g" /opt/coins/nodes/flo_testnet/flo_testnet.conf +RUN sed -i '$a addnode=ramanujam.ranchimall.net\naddnode=turing.ranchimall.net\naddnode=stevejobs.ranchimall.net\naddnode=brahmagupta.ranchimall.net\naddnode=feynman.ranchimall.net' /opt/coins/nodes/flo_testnet/flo_testnet.conf -RUN mv /tmp/peers.dat /opt/coins/data/flo_testnet/backend/testnet4/peers.dat +# RUN cd /opt/coins/nodes/flo_testnet && \ +# /opt/coins/nodes/flo_testnet/bin/flod --testnet -datadir=/opt/coins/data/flo_testnet/backend -conf=/opt/coins/nodes/flo_testnet/flo_testnet.conf -pid=/run/flo_testnet/flo_testnet.pid + +# RUN mv /tmp/peers.dat /opt/coins/data/flo_testnet/backend/testnet4/peers.dat EXPOSE 19166 VOLUME /opt/coins CMD ["/usr/bin/supervisord", "-c", "/tmp/supervisord.conf"] -# CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]