Last active
July 10, 2017 03:37
-
-
Save kkonyshev/433b3661306c7fee77b51a21b67e7d63 to your computer and use it in GitHub Desktop.
Dockerimage for mining verium
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1) Build image: | |
# docker build -t vrm:v1 . | |
# 2) Create new container (create a new container for mining in 16 threads): | |
# docker run --name vrm2_16 -d --restart=always vrm:v1 -o stratum+tcp://eu2.poolinat0r.com:7104 -u username -p password -t 16 --max-temp=70 | |
# 3) stop contatiner: | |
# docker stop vrm2_16 | |
# 4) start contatiner: | |
# docker start vrm2_16 | |
# 5) get logs: | |
# docker logs vrm2_16 | |
FROM ubuntu | |
RUN apt-get update -y && apt-get upgrade | |
RUN apt-get install -y automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev git | |
RUN git clone https://github.com/effectsToCause/veriumMiner | |
WORKDIR /veriumMiner | |
RUN ./autogen.sh | |
RUN ./configure CFLAGS="-march=native -O3" --with-crypto --with-curl | |
RUN make install | |
ENTRYPOINT ["cpuminer"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sudo groupadd docker
sudo gpasswd -a $USER docker