...
Singularity Documentation: https://docs.sylabs.io/guides/latest/user-guide/
Table of Contents | |
---|---|
|
Initial account setup
- Create an account on sylabs (via google/ucar email)
- Generate access token - once Once logged in, got go to the top right in the drop down menu under your user name and click "Access Tokens". Enter a label/alias, ie "Hercules", and click "Create Access Token". You will be prompted for this token when you first create a container using the
--remote
option.
...
Running a container is done by using the singularity exec
command. The singularity exec
command will run a specific command against an instance. An example of how we can use this inside an EWOK task is the line in the runtime file for weather bench scores (src/runtime/wbScoresRun.sh): `singularity exec
Code Block | ||
---|---|---|
| ||
singularity exec -B $WORKDIR:/$WORKDIR -B |
...
$JEDI_WORKFLOW:/jedi-workflow -B /work2/noaa/jcsda/cgas/jedi/wb_files:/work2/noaa/jcsda/cgas/jedi/wb_files /work2/noaa/jcsda/agriffin/JEDI_WB/wb_container/wb_container.sif bash -c "cd $WORKDIR && python3 /jedi-workflow/ewok/src/runtime/evaluation_deterministic.py" |
Note`. Note, -B will "bind"/mount the directories you need onto the container.
...