Changes
Page history
Update MetaCentrum Workernode v Singularity
authored
Dec 15, 2021
by
Pavel Vondruška
Hide whitespace changes
Inline
Side-by-side
MetaCentrum-Workernode-v-Singularity.md
View page @
d6cbba33
**Automaticky stavěný image pro Singularity nebo Docker se staví a je dostupný na skrz gitlab.cesnet.cz. Zde je pouze příklad použití.**
**Definujeme $SCRATCHDIR a další Singularity proměnné, aby se nebuildil image na NFS.**
```
plaintext
for SCR in /scratch /scratch.ssd; do
if [ -e $SCR ]; then
export SCRATCH=${SCRATCH:-$SCR/$USER}
export SCRATCHDIR=${SCRATCHDIR:-$SCR/$USER}
fi
done
```
```
plaintext
export SINGULARITY_CACHEDIR=$SCRATCHDIR
export SINGULARITY_LOCALCACHEDIR=$SCRATCHDIR
export SINGULARITY_TMPDIR=$SCRATCHDIR
```
**Nyní spustíme build tzv. sandboxu, abychom mohli image ještě dále upravovat.**
```
plaintext
singularity build --sandbox $SCRATCHDIR/workernode docker://gitlab-registry.cesnet.cz/702/public/debian-workernode-docker
```
\ No newline at end of file