Made small changes to the config.py of flo-api

Added a new index file for floscout
Minor changes also made
This commit is contained in:
Divyansh Bhardwaj 2022-06-09 02:35:34 +05:30
parent bceb1d5f77
commit 4fee0e06ea
3 changed files with 2896 additions and 1 deletions

View File

@ -2,6 +2,7 @@ FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
EXPOSE 6200
EXPOSE 5009
EXPOSE 6900
LABEL ranchimall="ranchimallfze@gmail.com"
@ -11,6 +12,7 @@ ENV DEBCONF_NONINTERACTIVE_SEEN true
RUN apt-get update
RUN apt-get -y install python3-pip
RUN apt-get -y install nano
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
@ -54,13 +56,15 @@ RUN python3 -m venv env
RUN python3 -m pip install -r requirements.txt
RUN pip3 install apscheduler
RUN touch config.py
RUN echo "dbfolder = '/home/production/dev/ranchimallflo-api' \nsse_pubKey = '02b68a7ba52a499b4cb664033f511a14b0b8b83cd3b2ffcc7c763ceb9e85caabcf' \napiUrl = 'https://flosight.duckdns.org/api/' \napilayerAccesskey = '3abc51aa522420e4e185ac22733b0f30' \nFLO_DATA_DIR = '/home/production/.flo' " >> /ranchimallflo-api/config.py
RUN echo "dbfolder = '/flo-token-tracking' \nsse_pubKey = '02b68a7ba52a499b4cb664033f511a14b0b8b83cd3b2ffcc7c763ceb9e85caabcf' \napiUrl = 'https://flosight.duckdns.org/api/' \napilayerAccesskey = '3abc51aa522420e4e185ac22733b0f30' \nFLO_DATA_DIR = '/home/production/.flo' " >> /ranchimallflo-api/config.py
# Setup of Floscout
WORKDIR ../
RUN git clone https://github.com/ranchimall/floscout.git
WORKDIR floscout
RUN rm index.html
COPY index.html .
COPY example .
WORKDIR ../

View File

@ -31,3 +31,8 @@ Run the docker container with exposing all the port and mounting the volume
docker run -d -p 5009:5009 -p 6200:6200 -v ranchimall-flo-volume <IMAGE-ID>
```
To Check if FLO-API is running
```
0.0.0.0:5009/api/v1.0/getSystemData
```

2886
index.html Normal file

File diff suppressed because it is too large Load Diff