How to run BOINC in Docker?

Message boards : Cafe Rosetta : How to run BOINC in Docker?

To post messages, you must log in.

AuthorMessage
Andrew Pennebaker

Send message
Joined: 23 Mar 20
Posts: 18
Credit: 128,727
RAC: 0
Message 92166 - Posted: 23 Mar 2020, 15:30:09 UTC

I see the official BOINC images on Docker Hub, but I am a bit confused on how to run these. I was expecting more of an all-in-one image with BOINC username/password environment variables.

Is there are a complete docker-compose.yml example with all the necessary components? Could we publish an all-in-one image for ease of use by Kubernetes admins?
ID: 92166 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
Mod.Sense
Volunteer moderator

Send message
Joined: 22 Aug 06
Posts: 4018
Credit: 0
RAC: 0
Message 92196 - Posted: 24 Mar 2020, 3:41:56 UTC
Last modified: 24 Mar 2020, 3:42:34 UTC

I am not familiar with the Docker Hub. But I see from the BOINC wiki that they have a version of the BOINC server image available. The BOINC server is the side of things that runs at BakerLab and serves out the work units to @home participants. So that is not what you want.

You would want the BOINC Manager and BOINC client. The BOINC Manager can run elsewhere and attach to the client running in the docker (if that is how one would word that).
Rosetta Moderator: Mod.Sense
ID: 92196 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
mattekure

Send message
Joined: 14 Mar 20
Posts: 1
Credit: 820,323
RAC: 0
Message 92303 - Posted: 25 Mar 2020, 23:30:07 UTC - in response to Message 92166.  

There was a post recently over on the Unraid forums about how to set it up as a docker under Unraid. It should be fairly close to any other basic docker setup. Here are there instructions. https://unraid.net/blog/help-take-the-fight-to-covid-19-with-boinc-or-folding-home

Essentially, the process involves installing the BOINC manager client and switch over to advanced view from a PC you will use to manage BOINC. Set up the docker with the password passed into the BOINC_GUI_RPC_PASSWORD section. Then back in the BOINC manager, do a File->Select Computer and point it to your docker hosts IP address using the password you set in the docker.
ID: 92303 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
Kingneutron

Send message
Joined: 25 Mar 20
Posts: 1
Credit: 118,416
RAC: 62
Message 93505 - Posted: 5 Apr 2020, 15:48:21 UTC - in response to Message 92303.  

It would be wonderful if someone could put together a complete HOWTO with screenshots for n00bs and Docker beginners...
Especially since the Linux client isn't statically linked and has dependency issues depending on distro...
ID: 93505 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
ForestryAI.ca

Send message
Joined: 29 Mar 20
Posts: 1
Credit: 1,967,323
RAC: 0
Message 95569 - Posted: 29 Apr 2020, 21:36:52 UTC - in response to Message 93505.  

https://hub.docker.com/r/boinc/client
ID: 95569 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
Hiperion

Send message
Joined: 10 May 20
Posts: 1
Credit: 7,047
RAC: 0
Message 96463 - Posted: 13 May 2020, 21:28:30 UTC
Last modified: 13 May 2020, 21:32:34 UTC

It would be wonderful if someone could put together a complete HOWTO with screenshots for n00bs and Docker beginners...
Especially since the Linux client isn't statically linked and has dependency issues depending on distro...



Hello,

You just need to use any docker-compose like this one from the boinc/client repository.
If you don't have docker-compose installed just follow this guide:
https://docs.docker.com/compose/install/#install-compose-on-linux-systems

docker-compose.yml for non swarm nodes
version: '2'
services:
  boinc:
    image: boinc/client
    container_name: boinc
    restart: always
    network_mode: host
    pid: host
    volumes:
      - /opt/appdata/boinc:/var/lib/boinc
    environment:
      - BOINC_GUI_RPC_PASSWORD=123
      - BOINC_CMD_LINE_OPTIONS=--allow_remote_gui_rpc



docker-compose.yml for swarm node
version: '3.2'
services:
  main:
    image: boinc/client
    ports:
      - 31416:31416
    volumes:
      - /mnt/storage/docker/boinc:/var/lib/boinc
    environment:
      - BOINC_GUI_RPC_PASSWORD=123
      - BOINC_CMD_LINE_OPTIONS=--allow_remote_gui_rpc
    deploy:
      mode: replicated
      replicas: 1
      placement:
        constraints: [node.role == manager]


Im using an own build image because that one isn't working for me, but try with that one first. If u have any question just let me know
ID: 96463 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote

Message boards : Cafe Rosetta : How to run BOINC in Docker?



©2024 University of Washington
https://www.bakerlab.org