Fixed bug: Dockerfile not executing run.sh
This commit is contained in:
parent
c048a31bbf
commit
1cc6e32d5e
@ -15,8 +15,6 @@ RUN apt-get -y install git
|
||||
RUN apt-get -y install python-chardet python3.9 python3.9-venv
|
||||
RUN apt-get -y install libsecp256k1-dev libssl-dev build-essential automake pkg-config libtool libffi-dev libgmp-dev libyaml-cpp-dev
|
||||
RUN python3 -m pip install supervisor
|
||||
RUN echo_supervisord_conf
|
||||
RUN echo_supervisord_conf > /etc/supervisord.conf
|
||||
|
||||
# Installation of Pybtc, currently named as Pyflo
|
||||
WORKDIR ../
|
||||
@ -61,8 +59,6 @@ RUN echo "dbfolder = '/flo-token-tracking' \nsse_pubKey = '02b68a7ba52a499b4cb66
|
||||
WORKDIR ../
|
||||
RUN git clone https://github.com/ranchimall/floscout.git
|
||||
WORKDIR floscout
|
||||
RUN rm index.html
|
||||
COPY index.html .
|
||||
COPY example .
|
||||
RUN sed -i "s|window.tokenapiUrl = 'http://0.0.0.0:6012'|window.tokenapiUrl = $FLOAPIURL|" /floscout/index.html
|
||||
WORKDIR ../
|
||||
@ -86,6 +82,7 @@ RUN mkdir /var/log/floscout/
|
||||
RUN touch /var/log/floscout/floscout.err.log
|
||||
RUN touch /var/log/floscout/floscout.out.log
|
||||
|
||||
WORKDIR /
|
||||
COPY run.sh .
|
||||
RUN chmod +x run.sh
|
||||
CMD ["/etc/supervisor/conf.d/run.sh"]
|
||||
ENTRYPOINT ["sh","/run.sh"]
|
||||
2886
index.html
2886
index.html
File diff suppressed because it is too large
Load Diff
11
run.sh
11
run.sh
@ -1,17 +1,12 @@
|
||||
#!/bin/bash
|
||||
cd /etc/supervisor/conf.d/
|
||||
|
||||
FLOAPIURL = $(FLOAPIURL)
|
||||
NETWROKK = $(NETWROKK)
|
||||
|
||||
sed -i "s|window.tokenapiUrl = 'http://0.0.0.0:6012'|window.tokenapiUrl = '$FLOAPIURL'|" /floscout/index.html
|
||||
sed -i "s|window.tokenapiUrl = 'https://ranchimallflo.duckdns.org'|window.tokenapiUrl = '$FLOAPIURL'|" /floscout/index.html
|
||||
#sed -i "s|command=hypercorn -w 1 -b 0.0.0.0:6012 wsgi:app|command=hypercorn -w 1 -b $FLOAPIURL wsgi:app" /etc/supervisor/conf.d/ftt-ranchimallflo.conf
|
||||
|
||||
cat /floscout/index.html
|
||||
#cat /floscout/index.html
|
||||
#cat /etc/supervisor/conf.d/ftt-ranchimallflo.conf
|
||||
|
||||
echo $FLOAPIURL
|
||||
echo $NETWROKK
|
||||
echo "running..."
|
||||
supervisord -c /etc/supervisor/conf.d/ftt-ranchimallflo.conf
|
||||
#supervisord -c /etc/supervisor/conf.d/ftt-ranchimallflo.conf
|
||||
#./floscout/example
|
||||
Loading…
Reference in New Issue
Block a user