From ffdfc1dbf95d023e2cb3db1477d2584c71ba2978 Mon Sep 17 00:00:00 2001 From: Divyansh Bhardwaj <87605149+Dbhardwaj99@users.noreply.github.com> Date: Mon, 11 Apr 2022 17:33:27 +0530 Subject: [PATCH] added shell script --- .idea/vcs.xml | 6 ++++++ Dockerfile | 4 ++++ run.sh | 12 ++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 .idea/vcs.xml create mode 100644 run.sh diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index cdc787c..51323af 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,6 +17,7 @@ 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 +COPY start.sh . #Installing CPU-miner @@ -26,4 +27,7 @@ RUN ./autogen.sh RUN CFLAGS="-march=native" ./configure RUN make + +CMD ["/cpuminer/start.sh"] + #minerd -o stratum+tcp://rm-pool.duckdns.org:3333 -a scrypt -u . -p \ No newline at end of file diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..10ac11e --- /dev/null +++ b/run.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +echo "Username:-" +read USERNAME + +echo "Worker:-" +read WORKER + +echo "PASSWORD:-" +read PASS + +sudo minerd -o stratum+tcp://rm-pool.duckdns.org:3333 -a scrypt -u $USERNAME.$WORKER -p $PASS \ No newline at end of file