eth-cscs / stackinator

https://eth-cscs.github.io/stackinator/
BSD 3-Clause "New" or "Revised" License
19 stars 15 forks source link

Update doc about cache-config.yaml #106

Closed jgphpc closed 1 year ago

jgphpc commented 1 year ago

https://eth-cscs.github.io/stackinator/build-caches/#managing-keys says:

The cache-configuration would look like the following, where we assume that the cache is in $SCRATCH/uenv-cache:

root: $SCRATCH/uenv-cache
key: $HOME/.keys/spack-push-key.gpg

but env [...] make store.squashfs -j32:

/dev/shm/jg/stackinator.git/build/bwrap-mutable-root.sh 
--tmpfs ~ 
--bind build/tmp /tmp 
--bind build/store /user-environment spack gpg trust /users/piccinal/.keys/spack-push-key.gpg

will fail with:

==> Error: Command exited with status 2:
'/usr/bin/gpg2' '--with-colons' '/users/piccinal/.keys/spack-push-key.gpg'
gpg: can't open '/users/piccinal/.keys/spack-push-key.gpg'

A solution is to move the gpg key (and updating cache-config.yaml) out of $HOME.

bcumming commented 1 year ago

Thanks. The new documentation has been updated with instructions to not install you keys in HOME.