-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from mskcc/makefile-singluarity
update Makefile with commands and config to run Singularity instance
- Loading branch information
Showing
4 changed files
with
85 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ logs/ | |
conda/ | ||
toil | ||
.toil/ | ||
*.sif |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
SHELL:=/bin/bash | ||
define help | ||
This is the Makefile for building the Singularity container | ||
|
||
On Mac | ||
------- | ||
Use Docker to build the Singularity container: | ||
|
||
make singularity-build-docker | ||
|
||
|
||
On Juno HPC | ||
----------- | ||
make singularity-build | ||
|
||
endef | ||
export help | ||
help: | ||
@printf "$$help" | ||
|
||
.PHONY : help | ||
|
||
# build the singularity container using Docker | ||
export DOCKERTAG:=singularityware/singularity:v3.3.0 | ||
export SINGULARITYENV_RIDGEBACK_BRANCH=develop | ||
export SINGULARITYDIR:=$(CURDIR) | ||
singularity-build-docker: | ||
docker run \ | ||
--privileged \ | ||
--rm \ | ||
-ti \ | ||
-v "$(SINGULARITYDIR):/image" "$(DOCKERTAG)" \ | ||
build /image/ridgeback_service.sif /image/ridgeback_service.def | ||
|
||
# on Juno HPC | ||
singularity-build: | ||
module load singularity/3.3.0 && \ | ||
sudo -E singularity build ridgeback_service.sif ridgeback_service.def |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Bootstrap: docker | ||
From: ubuntu:19.10 | ||
From: ubuntu:18.04 | ||
Includecmd: no | ||
|
||
%startscript | ||
|