Created
May 21, 2021 06:51
-
-
Save mishan/b4311705edd307fdbd6e1600a01a7d2c to your computer and use it in GitHub Desktop.
ethminer + AMDGPU OpenCL
This file contains 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
FROM izone/amdgpu | |
LABEL maintainer="mishan" | |
LABEL description="ethminer + AMDGPU/OpenCL in Docker" | |
RUN apt-get update && apt-get -y --no-install-recommends install make cmake ocl-icd-opencl-dev git mesa-common-dev gcc g++ build-essential | |
WORKDIR /tmp/ | |
### XXX: cmake / hunter busted download link | |
RUN mkdir -p /root/.hunter/_Base/Download/ | |
COPY Boost /root/.hunter/_Base/Download/Boost | |
### /XXX | |
RUN git clone https://github.com/ethereum-mining/ethminer.git | |
WORKDIR /tmp/ethminer/ | |
RUN git submodule update --init --recursive | |
RUN mkdir build | |
WORKDIR /tmp/ethminer/build | |
RUN cmake .. -DETHASHCUDA=OFF | |
RUN cmake --build . | |
RUN make install | |
ENTRYPOINT ["/usr/local/bin/ethminer"] | |
CMD ["-h"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment