Compare commits

...

10 Commits

Author SHA1 Message Date
SaketAnand
72abebf2f3
Add files via upload 2022-11-10 19:04:46 +05:30
SaketAnand
f80da24c1e
Create readme.html 2022-11-10 19:02:42 +05:30
SaketAnand
412b445516
Create readme.html 2022-11-10 18:48:25 +05:30
Tanishk Goyal
d0d79b9d86 pyflo upgrades 2022-07-10 17:46:08 +05:30
SaketAnand
e0eba5e2e9
Create readme.html 2022-07-09 13:12:21 +05:30
Sai Raj
5245aeac14
Update readme.md 2022-03-23 00:55:34 +05:30
Divyansh Bhardwaj
638475466d
Rename reame.md to readme.md 2022-03-22 23:07:02 +05:30
Divyansh Bhardwaj
8f307c29cd
Delete readme.md 2022-03-22 23:06:47 +05:30
Divyansh Bhardwaj
da42540f08
Create reame.md 2022-03-22 23:05:46 +05:30
Divyansh Bhardwaj
c03fae3fb8
CPU mining 2022-03-22 14:11:48 +05:30
16 changed files with 46 additions and 88 deletions

View File

@ -1,103 +1,29 @@
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
SHELL ["/bin/bash", "-c"]
LABEL ranchimall="ranchimallfze@gmail.com"
CMD { "echo", "Ranchi Mall" }
## for apt to be noninteractive
ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN true
RUN apt-get update
RUN apt-get -y install python3-pip
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 apt-get install supervisor
# Installation of Pybtc, currently named as Pyflo
WORKDIR ../
RUN git clone https://github.com/ranchimall/pyflo
WORKDIR pyflo
RUN apt-get install -y pkg-config
RUN python3 setup.py install
WORKDIR ../
# Setup of Flo Token Tracker
RUN git clone https://github.com/vivekteega/ftt-docker
WORKDIR ftt-docker
#RUN python3.9 -m venv ftt
#RUN . ftt/bin/activate
RUN python3 -m pip install chardet
RUN python3 -m pip install arrow
RUN python3 -m pip install socketio
RUN python3 -m pip install requests
RUN sed -i "s|chardet==4.0.0|chardet|g" /ftt-docker/requirements.txt
RUN touch config.ini
RUN echo "[DEFAULT] \n\
NET = testnet \n\
FLO_CLI_PATH = /usr/local/bin/flo-cli \n\
START_BLOCK = 740400" >> /ftt-docker/config.ini
RUN touch config.py
RUN echo "committeeAddressList = ['oVwmQnQGtXjRpP7dxJeiRGd5azCrJiB6Ka'] \n\
sseAPI_url = 'https://ranchimallflo-testnet.duckdns.org/' \n\
privKey = 'RG6Dni1fLqeT2TEFbe7RB9tuw53bDPDXp8L4KuvmYkd5JGBam6KJ' " >> /ftt-docker/config.py
#Installing Pre-requisities for CPU-miner
RUN apt-get update
RUN apt-get install libcurl4-openssl-dev git
RUN apt-get install build-essential
RUN apt-get install autotools-dev autoconf -y
RUN apt-get install libcurl4 libcurl4-gnutls-dev -y
RUN apt-get install checkinstall
# Setup of RanchimallFlo API
RUN git clone https://github.com/ranchimall/ranchimallflo-api
WORKDIR ranchimallflo-api
RUN python3 -m pip install --upgrade pip setuptools wheel
RUN python3 -m pip install -r requirements.txt
RUN pip3 install apscheduler
RUN touch config.py
RUN echo "dbfolder = '/home/production/dev/shivam/ranchimallflo-api' \n\
sse_pubKey = '02b68a7ba52a499b4cb664033f511a14b0b8b83cd3b2ffcc7c763ceb9e85caabcf' \n\
apiUrl = 'https://flosight.duckdns.org/api/' \n\
apilayerAccesskey = '3abc51aa522420e4e185ac22733b0f30' \n\
FLO_DATA_DIR = '/home/production/.flo' " >> /config.py
#Installing CPU-miner
RUN git clone https://github.com/pooler/cpuminer
WORKDIR ../cpuminer
RUN ./autogen.sh
RUN CFLAGS="-march=native" ./configure
RUN make
# Setup of Floscout
# Supervisor configurations
## Ranchimallflo configuration
WORKDIR /etc/supervisor/conf.d/
RUN touch ranchimallflo-api.conf
RUN echo "[program:ranchimallflo-api]\n\
directory=/ranchimallflo-api\n\
command=/ranchimallflo-api/py3.7/bin/hypercorn -w 1 -b 0.0.0.0:5009 wsgi:app\n\
user=root\n\
autostart=true\n\
autorestart=true\n\
stopasgroup=true\n\
killasgroup=true\n\
stderr_logfile=/var/log/ranchimallflo-api/ranchimallflo-api.err.log \n\
stdout_logfile=/var/log/ranchimallflo-api/ranchimallflo-api.out.log" >> ranchimallflo-api.conf
RUN mkdir /var/log/ranchimallflo-api/
RUN touch /var/log/ranchimallflo-api/ranchimallflo-api.err.log
RUN touch /var/log/ranchimallflo-api/ranchimallflo-api.out.log
## Flo token tracking configuration
RUN touch ftt.conf
RUN echo "[program:ftt-docker]\n\
directory=ftt-docker\n\
command=tracktokens-smartcontracts.py\n\
user=root\n\
autostart=true\n\
autorestart=true\n\
stopasgroup=true\n\
killasgroup=true\n\
stderr_logfile=/var/log/flo-token-tracking/flo-token-tracking.err.log\n\
stdout_logfile=/var/log/flo-token-tracking/flo-token-tracking.out.log" >> ftt.conf
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.out.log
# Run supervisor
RUN supervisorctl restart
#minerd -o stratum+tcp://rm-pool.duckdns.org:3333 -a scrypt -u <user>.<worker> -p <workerpassword>

View File

@ -1 +1,29 @@
# FLO CPU & GPU mining Docker
This Dockerfile will make a container that can run both CPU and GPU mining seperately.
## Deployment
Make a Docker Image using this dockerfile
```bash
docker build .
```
To run the docker Image
```bash
docker run -it <docker_image>
```
This will Start the container and a terminal will pop up.
Now run the following code to start the CPU miner..
```bash
./minerd -o stratum+tcp://rm-pool.duckdns.org:3333 -a scrypt -u <user>.<worker> -p <workerpassword>
```

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

1
Jayant_Kumar/readme.html Normal file
View File

@ -0,0 +1 @@

@ -0,0 +1 @@
Subproject commit c8db052b4283a61ebcda48d016a9b82a7442ba82

View File

@ -0,0 +1 @@