diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3470d49 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM nvidia/opencl:runtime-ubuntu18.04 + +ENV DEBIAN_FRONTEND noninteractive + +RUN apt-get -y update +RUN apt-get -y install ocl-icd-opencl-dev + +ADD https://download.foldingathome.org/releases/public/release/fahclient/debian-stable-64bit/v7.5/fahclient_7.5.1_amd64.deb /tmp +RUN dpkg -i /tmp/fahclient_7.5.1_amd64.deb || exit 0 +RUN rm /tmp/fahclient_7.5.1_amd64.deb + +WORKDIR /root +VOLUME /root + +CMD FAHClient --user=CERN --team=38188 --gpu=true --smp=true diff --git a/README.md b/README.md index c6136ef..df159f1 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,18 @@ # Folding@home Docker images -Docker images for [Folding@home](https://foldingathome.org/) +Docker images for [Folding@home](https://foldingathome.org/) with GPU support [![Docker Pulls](https://img.shields.io/docker/pulls/lukasheinrich/folding)](https://hub.docker.com/r/lukasheinrich/folding) -[![Docker Image Size (tag)](https://img.shields.io/docker/image-size/lukasheinrich/folding/simple)](https://hub.docker.com/r/lukasheinrich/folding/tags?name=simple) +[![Docker Image Size (tag)](https://img.shields.io/docker/image-size/lukasheinrich/folding/simple)](https://hub.docker.com/r/lukasheinrich/folding/tags?name=latest) ## Build image ``` -docker build -t lukasheinrich/folding:simple . -f simple/Dockerfile +docker build -t lukasheinrich/folding:latest . -f Dockerfile ``` ## Usage -Run via: - ``` -docker run lukasheinrich/folding:simple +docker run lukasheinrich/folding:latest ``` diff --git a/simple/Dockerfile b/simple/Dockerfile deleted file mode 100644 index 6b5f997..0000000 --- a/simple/Dockerfile +++ /dev/null @@ -1,5 +0,0 @@ -FROM centos -RUN curl -O https://download.foldingathome.org/releases/public/release/fahclient/centos-6.7-64bit/v7.5/fahclient-7.5.1-1.x86_64.rpm -RUN yum install -y compat-openssl10-1:1.0.2o-3.el8 -RUN rpm -ivh fahclient-7.5.1-1.x86_64.rpm -CMD FAHClient --user=Anonymous --team=38188 --passkey='' --gpu=false --smp=true