From 115732219615ddff25587c1f091f3c33914dbd4e Mon Sep 17 00:00:00 2001
From: Divyansh Bhardwaj <87605149+Dbhardwaj99@users.noreply.github.com>
Date: Tue, 22 Mar 2022 01:10:08 +0530
Subject: [PATCH] first commit
---
.idea/.gitignore | 3 ++
.idea/inspectionProfiles/Project_Default.xml | 23 +++++++++++++++
.../inspectionProfiles/profiles_settings.xml | 6 ++++
.idea/misc.xml | 4 +++
.idea/modules.xml | 8 +++++
.idea/ranchimall-cpu-gpu-mining-docker.iml | 8 +++++
Dockerfile | 29 +++++++++++++++++++
main.py | 0
8 files changed, 81 insertions(+)
create mode 100644 .idea/.gitignore
create mode 100644 .idea/inspectionProfiles/Project_Default.xml
create mode 100644 .idea/inspectionProfiles/profiles_settings.xml
create mode 100644 .idea/misc.xml
create mode 100644 .idea/modules.xml
create mode 100644 .idea/ranchimall-cpu-gpu-mining-docker.iml
create mode 100644 Dockerfile
create mode 100644 main.py
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