Skip to content
Snippets Groups Projects

updating singularity to apptainer in user docs

Merged eharstad requested to merge apptainer-update into master
5 files
+ 49
45
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -63,8 +63,8 @@ export POSTGRES_PORT=$(shuf -i 2000-65000 -n 1)
@@ -63,8 +63,8 @@ export POSTGRES_PORT=$(shuf -i 2000-65000 -n 1)
echo "Postgres server running on $(hostname) on port $POSTGRES_PORT"
echo "Postgres server running on $(hostname) on port $POSTGRES_PORT"
echo "This job started at $(date +%Y-%m-%dT%T)"
echo "This job started at $(date +%Y-%m-%dT%T)"
echo "This job will end at $(squeue --noheader -j $SLURM_JOBID -o %e) (in $(squeue --noheader -j $SLURM_JOBID -o %L))"
echo "This job will end at $(squeue --noheader -j $SLURM_JOBID -o %e) (in $(squeue --noheader -j $SLURM_JOBID -o %L))"
module load singularity
module load apptainer
exec singularity run -B $POSTGRES_HOME/db:/var/lib/postgresql -B $POSTGRES_HOME/run:/var/run/postgresql docker://postgres:11 -c "port=$POSTGRES_PORT"
exec apptainer run -B $POSTGRES_HOME/db:/var/lib/postgresql -B $POSTGRES_HOME/run:/var/run/postgresql docker://postgres:11 -c "port=$POSTGRES_PORT"
{{< /highlight >}}
{{< /highlight >}}
{{% /panel %}}
{{% /panel %}}
Loading