Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Negashev/rpi-cgminer
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: DXPetti/rpi-cgminer
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

There isn’t anything to compare.

Negashev:master and DXPetti:master are entirely different commit histories.

Showing with 37 additions and 0 deletions.
  1. +32 −0 Dockerfile
  2. +5 −0 run.sh
32 changes: 32 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM resin/rpi-raspbian
RUN apt-get -y update
RUN apt-get -y upgrade

RUN apt-get -y install build-essential autoconf automake libtool pkg-config libcurl3-dev libudev-dev libncurses5-dev screen
RUN apt-get -y install wget
WORKDIR /cgminer
RUN wget http://ck.kolivas.org/apps/cgminer/4.9/cgminer-4.9.2.tar.bz2

RUN tar -xvjpf cgminer-4.9.2.tar.bz2

WORKDIR /cgminer/cgminer-4.9.2
RUN ./configure --enable-bitfury

RUN apt-get -y install make
RUN apt-get -y install curl


RUN make

ENV USER 1Kv1KXS15Ci9qVEWdfZcumhWLW1kpqbuJe
ENV PASS x
ENV URL stratum+tcp://solo.ckpool.org:3333


ENTRYPOINT ["bash"]

ADD ./run.sh ./run.sh

RUN chmod +x ./run.sh

CMD ["/cgminer/cgminer-4.9.2/run.sh"]
5 changes: 5 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
export DISPLAY=:0
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_ALLOC_PERCENT=100
./cgminer -o "$URL" -u "$USER" -p "$PASS"