Created
August 22, 2018 17:39
-
-
Save ChristinaLK/a4416a2e2706d278dc91156310f99b42 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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