commit 115732219615ddff25587c1f091f3c33914dbd4e Author: Divyansh Bhardwaj <87605149+Dbhardwaj99@users.noreply.github.com> Date: Tue Mar 22 01:10:08 2022 +0530 first commit diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..01d6a9e --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,23 @@ + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..d56657a --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..536b711 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/ranchimall-cpu-gpu-mining-docker.iml b/.idea/ranchimall-cpu-gpu-mining-docker.iml new file mode 100644 index 0000000..d0876a7 --- /dev/null +++ b/.idea/ranchimall-cpu-gpu-mining-docker.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..cdc787c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,29 @@ +FROM ubuntu:20.04 +ENV DEBIAN_FRONTEND=noninteractive +LABEL ranchimall="ranchimallfze@gmail.com" + +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 + + +#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 + + +#Installing CPU-miner +RUN git clone https://github.com/pooler/cpuminer +WORKDIR ../cpuminer +RUN ./autogen.sh +RUN CFLAGS="-march=native" ./configure +RUN make + +#minerd -o stratum+tcp://rm-pool.duckdns.org:3333 -a scrypt -u . -p \ No newline at end of file diff --git a/main.py b/main.py new file mode 100644 index 0000000..e69de29