added shell script

This commit is contained in:
Divyansh Bhardwaj 2022-04-11 17:33:27 +05:30
parent 1157322196
commit ffdfc1dbf9
3 changed files with 22 additions and 0 deletions

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

View File

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

12
run.sh Normal file
View File

@ -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