Skip to content
Snippets Groups Projects
Select Git revision
  • 66024c46fa056bb3de91cd3bcd229948794ca6a3
  • master default protected
  • it4i-barbora
  • it4i-cs
  • it4i-karolina
  • it4i-salomon
6 results

image-exec

Blame
  • user avatar
    easybuild authored
    96e69070
    History
    image-exec 274 B
    # !/bin/bash
    
    if [ -z "IMAGE_PATH_LOCAL" ]; then 
        echo -e "\e[31mAn error occured, exiting...\e[0m"
        exit 1
    fi
    
    if [ -z "$1" ]; then 
        echo -e "\e[32mUsage: image-exec COMMAND\e[0m"
        exit 1
    fi
    
    apptainer exec --bind /scratch --bind /apps $IMAGE_PATH_LOCAL "$@"