forked from magglass1/docker-folding-at-home
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dockerfile
25 lines (19 loc) · 870 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Folding@home
#
# VERSION 0.1
# Run with: docker run -d -t -i jordan0day/folding-at-home
# Inspired by magglass1/docker-folding-at-home
# Set environment variables USERNAME, TEAM, and POWER to customize your Folding client.
FROM fedora
# If you set USERNAME to Anonymous, the folding@home client pauses for 5 minutes, but will then begin processing data.
ENV USERNAME Anonymous
ENV TEAM 0
ENV POWER medium
# Install updates
RUN yum update -y
# Install Folding@home
RUN rpm -i https://fah.stanford.edu/file-releases/public/release/fahclient/centos-5.3-64bit/v7.3/fahclient-7.3.6-1.x86_64.rpm
ADD config.xml /etc/fahclient/
RUN chown fahclient:root /etc/fahclient/config.xml
RUN sed -i -e "s/{{USERNAME}}/$USERNAME/;s/{{TEAM}}/$TEAM/;s/{{POWER}}/$POWER/" /etc/fahclient/config.xml
CMD /etc/init.d/FAHClient start && tail -F /var/lib/fahclient/log.txt