From d9ebfb6ffb6346e1f370b9b05e4aa803e878d778 Mon Sep 17 00:00:00 2001 From: Divyansh Bhardwaj <87605149+Dbhardwaj99@users.noreply.github.com> Date: Tue, 12 Apr 2022 23:14:32 +0530 Subject: [PATCH] added new script --- Dockerfile | 4 ++-- run.sh | 17 ++++++----------- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index 51323af..ff83746 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +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 . +COPY run.sh . #Installing CPU-miner @@ -28,6 +28,6 @@ RUN CFLAGS="-march=native" ./configure RUN make -CMD ["/cpuminer/start.sh"] +CMD ["/cpuminer/run.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 index 10ac11e..b203bc0 100644 --- a/run.sh +++ b/run.sh @@ -1,12 +1,7 @@ -#!/bin/sh +#!/bin/bash +cd /cpuminer -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 +# Use Env variables in Config +## Change Network Config if needed +echo "Setup configs..." +minerd -o stratum+tcp://rm-pool.duckdns.org:3333 -a scrypt -u $USERNAME.$WORKER -p $PASS