added new script
This commit is contained in:
parent
230c77ca37
commit
d9ebfb6ffb
@ -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 <user>.<worker> -p <workerpassword>
|
||||
17
run.sh
17
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
|
||||
# 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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user