Skip to content

Instantly share code, notes, and snippets.

@bmmalone
Created July 14, 2023 11:32
Show Gist options
  • Save bmmalone/7828a72fbd2b2dfe11c83e036708d6d4 to your computer and use it in GitHub Desktop.
Save bmmalone/7828a72fbd2b2dfe11c83e036708d6d4 to your computer and use it in GitHub Desktop.
A simple dvc config file for a shared cache, as well as sample commands to create and assign appropriate groups for the cache folder
[core]
analytics = false
remote = remote_storage
[cache]
dir = /srv/dvc-cache
shared = group
type = symlink
['remote "remote_storage"']
url = gs://my-dvc-shared-bucket/dvc-cache-folder
sudo groupadd dvccache
sudo mkdir /srv/dvc-cache
sudo chgrp dvccache /srv/dvc-cache
sudo chmod 775 /srv/dvc-cache
sudo chmod g+s /srv/dvc-cache
sudo usermod -a -G dvccache $USER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment