Skip to content

Instantly share code, notes, and snippets.

@ChristinaLK
Created August 22, 2018 17:39
Show Gist options
  • Save ChristinaLK/a4416a2e2706d278dc91156310f99b42 to your computer and use it in GitHub Desktop.
Save ChristinaLK/a4416a2e2706d278dc91156310f99b42 to your computer and use it in GitHub Desktop.
#!/bin/bash
img=$1
exec=$2
shift 2
args=$*
cp /mnt/gluster/username/$img ./
singularity exec -B $_CONDOR_SCRATCH_DIR:/scratch $img /scratch/$exec $args
rm $img
universe = vanilla
log = $(Cluster)_$(Process).log
error = $(Cluster)_$(Process).err
output = $(Cluster)_$(Process).out
executable = run_singularity_gluster.sh
arguments = ubuntu.img hello.sh $(Cluster) $(Process)
should_transfer_files = YES
when_to_transfer_output = ON_EXIT
transfer_input_files = hello.sh
requirements = HasSingularity == true && OpSysMajorVer == 7 && HasGluster == true
request_cpus = 1
request_memory = 1GB
#increase disk request based on size of your image!
request_disk = 2GB
queue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment