Skip to content

Commit

Permalink
Merge pull request #21 from linuxserver/ro-tweaks
Browse files Browse the repository at this point in the history
No need to mkdir /config, update readme
  • Loading branch information
Roxedus authored Jul 7, 2024
2 parents 891be8d + fc51d65 commit f9b35c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
12 changes: 5 additions & 7 deletions readme-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,12 @@ project_url: "https://foldingathome.org/"
project_logo: "https://foldingathome.org/wp-content/uploads/2016/09/folding-at-home-logo.png"
project_blurb: "[Folding@home]({{ project_url }}) is a distributed computing project for simulating protein dynamics, including the process of protein folding and the movements of proteins implicated in a variety of diseases. It brings together citizen scientists who volunteer to run simulations of protein dynamics on their personal computers. Insights from this data are helping scientists to better understand biology, and providing new opportunities for developing therapeutics."
project_lsio_github_repo_url: "https://github.com/linuxserver/docker-{{ project_name }}"
project_blurb_optional_extras_enabled: false

# supported architectures
available_architectures:
- { arch: "{{ arch_x86_64 }}", tag: "latest"}
- { arch: "{{ arch_arm64 }}", tag: "arm64v8-latest"}

# development version
development_versions: false

# container parameters
common_param_env_vars_enabled: true
param_container_name: "{{ project_name }}"
Expand All @@ -38,6 +34,8 @@ opt_param_device_map: false
opt_param_devices:
- { device_path: "/dev/dri", device_host_path: "/dev/dri", desc: "Only needed if you want to use your Intel GPU (vaapi)." }

readonly_supported: true

# application setup block
app_setup_block_enabled: true
app_setup_block: |
Expand All @@ -56,11 +54,11 @@ app_setup_block: |
Unlike v7, v8 no longer bundles a local webgui. The web app is loaded from an online source and can only auto-detect instances that are running on the same machine (bare metal) as the browser. This is not possible in a docker container. Therefore, upgrading to v8 requires registering for an online account, retrieving the account token and setting it in the new env var `ACCOUNT_TOKEN`, along with a friendly name in `MACHINE_NAME`.
## GPU Hardware Acceleration
### Nvidia
Hardware acceleration users for Nvidia will need to install the container runtime provided by Nvidia on their host, instructions can be found here:
https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html
https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html
We automatically add the necessary environment variable that will utilise all the features available on a GPU on the host. Once nvidia container toolkit is installed on your host you will need to re/create the docker container with the nvidia container runtime `--runtime=nvidia` and add an environment variable `-e NVIDIA_VISIBLE_DEVICES=all` (can also be set to a specific gpu's UUID, this can be discovered by running `nvidia-smi --query-gpu=gpu_name,gpu_uuid --format=csv` ). NVIDIA automatically mounts the GPU and drivers from your host into the foldingathome docker container.
# changelog
Expand Down
3 changes: 0 additions & 3 deletions root/etc/s6-overlay/s6-rc.d/init-foldingathome-config/run
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash

# create folders
mkdir -p /config

# permissions on config root and folders
lsiown -R abc:abc \
/config

0 comments on commit f9b35c2

Please sign in to comment.