-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 783 Bytes
/
Makefile
File metadata and controls
28 lines (20 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.PHONY: all
## Note x,y is multiple binds, a:b binds host:a to container:b
SINGULARITY_BIND="${HOME}/scratch:/scratch,${HOME}/.Xauthority,${PWD}:/output"
%.sif: %.yml
sudo singularity build $@ $<
%.sbox: %.sif
sudo singularity build --sandbox $<
%.overlay: %.yml
mkdir -p $(basename $<)_overlay
sudo singularity shell -B ${SINGULARITY_BIND} --overlay $(basename $<)_overlay $(basename $@).sif
%.shell: %.sif
singularity shell -B ${SINGULARITY_BIND} $<
%.run: %.sif
singularity run -B ${SINGULARITY_BIND} $<.sif
%.runover: %.yml
mkdir -p $(basename $<)_overlay
sudo singularity run -B ${SINGULARITY_BIND} --overlay $(basename $<)_overlay $(basename $@).sif
push:
singularity sign hpgltools.sif
singularity push hpgltools.sif library://abelew/hpgltools/hpgltools.sif