diff --git a/src/singularity_modules/hisat2/2.0.0/build.sh b/src/singularity_modules/hisat2/2.0.0/build.sh new file mode 100755 index 0000000000000000000000000000000000000000..3335ba3a1473029caf968f092d4ad5815497782b --- /dev/null +++ b/src/singularity_modules/hisat2/2.0.0/build.sh @@ -0,0 +1,3 @@ +#/bin/sh +sudo singularity build --force bin/hisat2:2.0.0.sif src/singularity_modules/hisat2/2.0.0/hisat2.def +singularity sign bin/hisat2:2.0.0.sif diff --git a/src/singularity_modules/hisat2/2.0.0/hisat2.def b/src/singularity_modules/hisat2/2.0.0/hisat2.def new file mode 100644 index 0000000000000000000000000000000000000000..a3941bf3f874f72d0a6600d327959987db34a866 --- /dev/null +++ b/src/singularity_modules/hisat2/2.0.0/hisat2.def @@ -0,0 +1,32 @@ +Bootstrap: docker +From: ubuntu:18.04 + +%labels +MAINTAINER Nicolas Fontrodona + +%post +HISAT2_VERSION=2.0.0 +PACKAGES="unzip \ +gcc \ +g++ \ +make \ +curl \ +ca-certificates" + +apt-get update && \ +apt-get install -y --no-install-recommends ${PACKAGES} && \ +apt-get clean + +curl -k -L http://ccb.jhu.edu/software/hisat2/downloads/hisat2-${HISAT2_VERSION}-beta-source.zip -o hisat2_linux-v${HISAT2_VERSION}.zip && \ +unzip hisat2_linux-v${HISAT2_VERSION}.zip && \ +cd hisat2-${HISAT2_VERSION}-beta && \ +make && \ +cp hisat2 /usr/bin && \ +cp hisat2-* /usr/bin && \ +rm -Rf hisat2-${HISAT2_VERSION}-beta + +%environment +export HISAT2_VERSION=2.0.0 + +%runscript +exec /bin/bash "$@"