Code Monkey home page Code Monkey logo

adamantine-fah's Introduction

adamantine-fah

Dockerfile for starting a Folding@Home service from a Debian base image.

Change "workernode" to another username if desired (not required). You may also change the POWER environment variable to "low" or "high", this will determine how much of your CPU will be used for folding ("medium" should go no higher than 80% usage).

GPU support

It may also be possible to enable your GPU by changing the sed line to:

sed -i -e "s/<team value="0"/>/<team value=""$TEAM""/>/;s/<user value="Anonymous"/>/<user value=""$USERNAME""/>/;s/<power value="medium"/>/<power value=""$POWER""/>/;s/<gpu value="false"/>/<power value="true"/>/" /etc/fahclient/config.xml

But I have not tested this.

About the image/config

I tried using a slim image, but the fahclient install errors out when it looks for a sample config.xml file in the /usr directory, but the directory does not exist.

The reason for the long sed command is since the Folding@Home client really only needs a few configuration settings changed in config.xml, it's simpler to edit it as a oneliner instead of having to include a "config.xml" template and

"ADD config.xml /etc/fahclient/config.xml"

in the Dockerfile. This should also be better future versions of the client.

Note: this image does not handle the interrupt signal, so you won't be able to ctrl+c or ctrl+p, ctrl+q out of it. You'll have to do "docker stop imageID" instead.

adamantine-fah's People

Contributors

transposed avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.