Use this playbook to download docker images and pull images onto cluster nodes using apptainer.
- Ensure that the cluster has been provisioned by the provision tool. and the cluster has been set up using omnia.yml.
- Enter the following variables in
utils/hpc_apptainer_job_execution/hpc_apptainer_job_execution_config.yml
:
Parameter | Details |
---|---|
hpc_apptainer_image JSON list Required |
|
hpc_apptainer_path
Required |
|
To run the playbook: :
cd utils/hpc_apptainer_job_execution
ansible-playbook hpc_apptainer_job_execution.yml -i inventory
Note
Use the inventory file format specified under Sample Files.
HPC apptainer jobs can be initiated on a slurm cluster using the following sample command: :
srun -N 3 --mpi=pmi2 --ntasks=4 apptainer run /home/omnia-share/softwares/apptainer/oneapi-hpckit_latest.sif hostname