NCAR / container-dtc-nwp

End-to-end NWP systems in containers.
https://dtcenter.org/community-code/numerical-weather-prediction-nwp-containers
28 stars 13 forks source link

Singularity METviewer on Cheyenne #94

Closed fossell closed 2 years ago

fossell commented 2 years ago

Currently running METviewer with singularity only works on AWS. There are many issues with Cheyenne, likely many related to permissions. Goal is to get METviewer with singularity working on Cheyenne for broader community use.

fossell commented 2 years ago

Set of commands that Tatiana was successful running. Can be used to then create batch plots, GUI will not work on Cheyenne because port 8080 is not open.

cd container-dtc-nwp/components/metviewer/METviewer

singularity build --sandbox --fix-perms --force metv4singularity docker://dtcenter/nwp-container-metviewer-for-singularity:4.1.0

# New step to fix the problem with mounting and permissions on  Cheyenne 
mkdir metv4singularity/glade

singularity instance start --writable metv4singularity metv

singularity exec --writable instance://metv bash init_singularity.sh

cd ${PROJ_DIR}/container-dtc-nwp/components/scripts/common
singularity shell instance://metv

./metv_load_singularity.ksh mv_sandy ${CASE_DIR}

cd ${PROJ_DIR}/container-dtc-nwp/components/scripts/sandy_20121027/metviewer ./metv_plot_singularity.ksh ${CASE_DIR}
fossell commented 2 years ago

Important:

  1. This must be run in users' home directory (not scratch or work or project spaces) due to permissions issues with Singularity.
  2. Make sure PROJ_DIR and CASE_DIR are set appropriately and sandy metprd data exists. Follow online tutorial to get full set up.