User Tools

Site Tools


howto:shifter

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howto:shifter [2018/05/29 18:50] oschuetthowto:shifter [2022/05/20 20:35] (current) oschuett
Line 4: Line 4:
  
 For more information on Shifter see: For more information on Shifter see:
-  * [[http://www.cscs.ch/publications/tutorials/2017/introduction_to_docker_containers_for_hpc_with_shifter/index.html]] 
-  * [[https://user.cscs.ch/scientific_computing/supported_applications/shifter/]] 
-  * [[https://user.cscs.ch/scientific_computing/supported_applications/shifter/advanced_shifter]] 
   * [[https://www.nersc.gov/research-and-development/user-defined-images/]]   * [[https://www.nersc.gov/research-and-development/user-defined-images/]]
   * [[https://github.com/NERSC/shifter]]   * [[https://github.com/NERSC/shifter]]
- 
- 
-<note warning>This tutorial is out of date and needs to be revised.</note> 
  
 ==== Step 1 ==== ==== Step 1 ====
-Pull the latest image from our [[https://hub.docker.com/r/cp2k/| repository]] at Docker Hub:+Note these instructions require at least version [[https://hub.docker.com/layers/cp2k/cp2k/cp2k/dev20220519/images/sha256-a1a9fcb53a981f21caf676e6acccf8cd5e1c3ad65f6284336d3f6aec2245fcf0 | cp2k/cp2k:dev20220519 ]]. 
 + 
 +Pull an image from our [[https://hub.docker.com/r/cp2k/| repository]] at Docker Hub:
  
 <code> <code>
 $ module load shifter $ module load shifter
-$ shifterimg pull cp2k/cp2k:trunk +$ shifterimg pull cp2k/cp2k:<version> 
-2017-07-26T16:32:30 Pulling Image: docker:cp2k/cp2k:trunk, status: READY+ Pulling Image: docker:cp2k/cp2k:<version>, status: READY 
 + 2022-05-20T08:44:03 Pulling Image: docker:cp2k/cp2k:<version>, status: READY
 </code> </code>
 +
  
 ==== Step 2 ==== ==== Step 2 ====
Line 27: Line 25:
  
 <code> <code>
-#!/bin/bash -l +#!/bin/bash 
-#SBATCH --image=docker:cp2k/cp2k:trunk+#SBATCH --image=docker:cp2k/cp2k:<version> 
 +#SBATCH --module=mpich
 # ... (more sbatch options) # ... (more sbatch options)
  
-module load shifter +srun shifter --entrypoint cp2k -i H2O-64.inp
-srun shifter cp2k.psmp -i test.inp -o test.out+
 </code> </code>
  
howto/shifter.1527619853.txt.gz · Last modified: 2020/08/21 10:15 (external edit)