added a shell script to run mongoose server
Hope this works
This commit is contained in:
parent
a95d3fa84b
commit
3967ee3312
@ -62,6 +62,7 @@ WORKDIR ../
|
|||||||
RUN git clone https://github.com/ranchimall/floscout.git
|
RUN git clone https://github.com/ranchimall/floscout.git
|
||||||
WORKDIR floscout
|
WORKDIR floscout
|
||||||
COPY example .
|
COPY example .
|
||||||
|
COPY mongoose.sh .
|
||||||
WORKDIR ../
|
WORKDIR ../
|
||||||
|
|
||||||
# Supervisor configurations
|
# Supervisor configurations
|
||||||
@ -69,7 +70,7 @@ WORKDIR ../
|
|||||||
## Ranchimallflo configuration
|
## Ranchimallflo configuration
|
||||||
WORKDIR /etc/supervisor/conf.d/
|
WORKDIR /etc/supervisor/conf.d/
|
||||||
RUN touch ftt-ranchimallflo.conf
|
RUN touch ftt-ranchimallflo.conf
|
||||||
RUN echo "[supervisord] \nnodaemon=true\n[program:flo-token-tracking]\ndirectory=/flo-token-tracking\ncommand=python3 tracktokens_smartcontracts.py --reset\nuser=root\nautostart=true\nautorestart=false\nstopasgroup=true\nkillasgroup=true\nstderr_logfile=/var/log/flo-token-tracking/flo-token-tracking.err.log\nstdout_logfile=/var/log/flo-token-tracking/flo-token-tracking.out.log\n[program:ranchimallflo-api]\ndirectory=/ranchimallflo-api\ncommand=hypercorn -w 1 -b 0.0.0.0:5009 wsgi:app\nuser=root\nautostart=true\nautorestart=true\nstopasgroup=true\nkillasgroup=true\nstderr_logfile=/var/log/ranchimallflo-api/ranchimallflo-api.err.log \nstdout_logfile=/var/log/ranchimallflo-api/ranchimallflo-api.out.log\n[program:floscout]\ndirectory=/floscout\ncommand=./example\nuser=root\nautostart=true\nautorestart=false\nstopasgroup=true\nkillasgroup=true\nstderr_logfile=/var/log/floscout/floscout.err.log\nstdout_logfile=/var/log/floscout/floscout.out.log" >> ftt-ranchimallflo.conf
|
RUN echo "[supervisord] \nnodaemon=true\n[program:flo-token-tracking]\ndirectory=/flo-token-tracking\ncommand=python3 tracktokens_smartcontracts.py --reset\nuser=root\nautostart=true\nautorestart=false\nstopasgroup=true\nkillasgroup=true\nstderr_logfile=/var/log/flo-token-tracking/flo-token-tracking.err.log\nstdout_logfile=/var/log/flo-token-tracking/flo-token-tracking.out.log\n[program:ranchimallflo-api]\ndirectory=/ranchimallflo-api\ncommand=hypercorn -w 1 -b 0.0.0.0:5009 wsgi:app\nuser=root\nautostart=true\nautorestart=true\nstopasgroup=true\nkillasgroup=true\nstderr_logfile=/var/log/ranchimallflo-api/ranchimallflo-api.err.log \nstdout_logfile=/var/log/ranchimallflo-api/ranchimallflo-api.out.log\n[program:floscout]\ndirectory=/floscout\ncommand=mongoose.sh\nuser=root\nautostart=true\nautorestart=false\nstopasgroup=true\nkillasgroup=true\nstderr_logfile=/var/log/floscout/floscout.err.log\nstdout_logfile=/var/log/floscout/floscout.out.log" >> ftt-ranchimallflo.conf
|
||||||
RUN mkdir /var/log/flo-token-tracking
|
RUN mkdir /var/log/flo-token-tracking
|
||||||
RUN touch /var/log/flo-token-tracking/flo-token-tracking.err.log
|
RUN touch /var/log/flo-token-tracking/flo-token-tracking.err.log
|
||||||
RUN touch /var/log/flo-token-tracking/flo-token-tracking.out.log
|
RUN touch /var/log/flo-token-tracking/flo-token-tracking.out.log
|
||||||
|
|||||||
5
mongoose.sh
Executable file
5
mongoose.sh
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
cd /floscout
|
||||||
|
|
||||||
|
echo "mongoose server is up..."
|
||||||
|
./example
|
||||||
Loading…
Reference in New Issue
Block a user