-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Init docker build * Set workdir before switching branches * nvidia drivers * ldconfig * Actions can't run as no GPU * Docker prune * Disk space docker pull parttimelegend/ccminer
- Loading branch information
1 parent
a132980
commit c821153
Showing
2 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Docker Image CI | ||
|
||
on: | ||
push: | ||
branches: [ linux ] | ||
pull_request: | ||
branches: [ linux ] | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build the Docker image | ||
run: docker build . --file Dockerfile --tag ccminer:latest --no-cache | ||
- name: Docker image list | ||
run: docker images |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
FROM ubuntu:rolling | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
ENV TZ=Europe/London | ||
RUN apt-get update && \ | ||
apt-get upgrade -y && \ | ||
apt-get dist-upgrade -y && \ | ||
apt-get install libcurl4-openssl-dev \ | ||
libssl-dev \ | ||
libjansson-dev \ | ||
automake \ | ||
autotools-dev \ | ||
build-essential \ | ||
git \ | ||
freeglut3 \ | ||
freeglut3-dev \ | ||
libxi-dev \ | ||
libxmu-dev \ | ||
wget \ | ||
nvidia-driver-455 \ | ||
-y | ||
RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin | ||
RUN mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600 | ||
RUN wget https://developer.download.nvidia.com/compute/cuda/11.2.1/local_installers/cuda-repo-ubuntu2004-11-2-local_11.2.1-460.32.03-1_amd64.deb | ||
RUN dpkg -i cuda-repo-ubuntu2004-11-2-local_11.2.1-460.32.03-1_amd64.deb | ||
RUN apt-key add /var/cuda-repo-ubuntu2004-11-2-local/7fa2af80.pub | ||
RUN apt-get update | ||
RUN apt-get -y install cuda | ||
RUN git clone https://github.com/tpruvot/ccminer | ||
WORKDIR ccminer | ||
RUN git checkout linux | ||
RUN ./build.sh | ||
RUN ldconfig /usr/local/cuda/lib64 | ||
#RUN ./ccminer --version | ||
RUN apt-get remove libcurl4-openssl-dev \ | ||
libssl-dev \ | ||
libjansson-dev \ | ||
freeglut3 \ | ||
freeglut3-dev \ | ||
libxi-dev \ | ||
libxmu-dev \ | ||
-y | ||
#ENTRYPOINT [ "./ccminer" ] |