Advertisement
Guest User

docker-boinc-install.sh

a guest
Mar 28th, 2020
244
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # Setup an account at http://boincstats.com.
  3. # Setup an account at http://boinc.bakerlab.org/rosetta/
  4. # Configure your Boincstats BAM account to automatically join the Rosetta project.
  5. # Once you have that configured, call this script passing your username and BAM password as arguments $1 and $2
  6. # If you run this script without those arguments, boinc will be installed and running, but it will not perform any work.
  7. #
  8. systemctl enable docker
  9. docker run -d --restart unless-stopped  --name boinc   --net=host   --pid=host   -v /opt/appdata/boinc:/var/lib/boinc   -e BOINC_GUI_RPC_PASSWORD="123"   -e BOINC_CMD_LINE_OPTIONS="--allow_remote_gui_rpc"   boinc/client
  10. sleep 120
  11. if [ -n "$1" -a -n "$2" ]; then
  12.     docker exec boinc boinccmd --join_acct_mgr http://bam.boincstats.com/ $1 $2
  13. fi
  14. docker exec boinc boinccmd --get_cc_status
  15. docker stop boinc
  16. #
  17. # Ensure BOINC only runs when F@H cores are not running
  18. #
  19. cat > /opt/appdata/boinc/cc_config.xml << EOD
  20. <cc_config>
  21. <options>
  22. <ncpus>24</ncpus>
  23. <no_gpus>1</no_gpus>
  24. <report_results_immediately>1</report_results_immediately>
  25. <dont_suspend_nci>1</dont_suspend_nci>
  26. <exclusive_app>FahCore_a7</exclusive_app>
  27. <exclusive_gpu_app>FahCore_21</exclusive_gpu_app>
  28. <exclusive_gpu_app>FahCore_22</exclusive_gpu_app>
  29. </options>
  30. </cc_config>
  31. EOD
  32. docker start boinc
  33. docker exec boinc boinccmd --get_cc_status
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement