Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Create an account on sylabs (via google/ucar email)
  2. 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
titleRunning singularity container
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. 

...