diff --git a/src/singularity_modules/sambamba/0.6.7/build.sh b/src/singularity_modules/sambamba/0.6.7/build.sh new file mode 100755 index 0000000000000000000000000000000000000000..008e43fbe43f13767c6df6f9fec486a0e237e234 --- /dev/null +++ b/src/singularity_modules/sambamba/0.6.7/build.sh @@ -0,0 +1,2 @@ +#/bin/sh +sudo singularity build --force /bin/sambamba:0.6.7.sif src/singularity_modules/sambamba/0.6.7/sambamba.def diff --git a/src/singularity_modules/sambamba/0.6.7/sambamba.def b/src/singularity_modules/sambamba/0.6.7/sambamba.def new file mode 100644 index 0000000000000000000000000000000000000000..f94a1b8beb21d12e16629cd8954ee755c0354512 --- /dev/null +++ b/src/singularity_modules/sambamba/0.6.7/sambamba.def @@ -0,0 +1,27 @@ +Bootstrap: docker +From: ubuntu:18.04 + +%labels +MAINTAINER Laurent Modolo + +%post +SAMBAMBA_VERSION=0.6.7 +PACKAGES="curl=7.58.0* \ +ca-certificates=20180409 \ +build-essential=12.4* \ +zlib1g-dev=1:1.2.11*" + +apt-get update && \ +apt-get install -y --no-install-recommends ${PACKAGES} && \ +apt-get clean + +curl -k -L https://github.com/biod/sambamba/releases/download/v${SAMBAMBA_VERSION}/sambamba_v${SAMBAMBA_VERSION}_linux.tar.bz2 -o sambamba_v${SAMBAMBA_VERSION}_linux.tar.bz2 && \ +tar xvjf sambamba_v${SAMBAMBA_VERSION}_linux.tar.bz2 && \ +mv sambamba /usr/bin/ && \ +rm -R sambamba_v${SAMBAMBA_VERSION}_linux* + +%environment +export SAMBAMBA_VERSION=0.6.7 + +%runscript +exec /bin/bash "$@"