first commit

This commit is contained in:
Divyansh Bhardwaj 2022-03-22 01:10:08 +05:30
commit 1157322196
8 changed files with 81 additions and 0 deletions

3
.idea/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

View File

@ -0,0 +1,23 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ignoredPackages">
<value>
<list size="2">
<item index="0" class="java.lang.String" itemvalue="secp256k1" />
<item index="1" class="java.lang.String" itemvalue="pybtc" />
</list>
</value>
</option>
</inspection_tool>
<inspection_tool class="PyPep8Inspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
<option name="ignoredErrors">
<list>
<option value="E203" />
<option value="E128" />
</list>
</option>
</inspection_tool>
</profile>
</component>

View File

@ -0,0 +1,6 @@
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>

4
.idea/misc.xml Normal file
View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9" project-jdk-type="Python SDK" />
</project>

8
.idea/modules.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/ranchimall-cpu-gpu-mining-docker.iml" filepath="$PROJECT_DIR$/.idea/ranchimall-cpu-gpu-mining-docker.iml" />
</modules>
</component>
</project>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

29
Dockerfile Normal file
View File

@ -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 <user>.<worker> -p <workerpassword>

0
main.py Normal file
View File