From f0c49b7fc52c17b4e3ad9f6720a3a8e52194e3a3 Mon Sep 17 00:00:00 2001
From: Laurent Modolo <laurent.modolo@ens-lyon.fr>
Date: Mon, 4 Mar 2019 10:33:19 +0100
Subject: [PATCH] fastqc: add singularity files

---
 .../fastqc/0.11.5/build.sh                    |  3 +++
 .../fastqc/0.11.5/fastqc.def                  | 21 +++++++++++++++++++
 2 files changed, 24 insertions(+)
 create mode 100755 src/singularity_modules/fastqc/0.11.5/build.sh
 create mode 100644 src/singularity_modules/fastqc/0.11.5/fastqc.def

diff --git a/src/singularity_modules/fastqc/0.11.5/build.sh b/src/singularity_modules/fastqc/0.11.5/build.sh
new file mode 100755
index 00000000..1787f2b1
--- /dev/null
+++ b/src/singularity_modules/fastqc/0.11.5/build.sh
@@ -0,0 +1,3 @@
+#/bin/sh
+sudo singularity build --force bin/fastqc:0.11.5.sif src/singularity_modules/fastqc/0.11.5/fastqc.def
+singularity sign bin/fastqc:0.11.5.sif
diff --git a/src/singularity_modules/fastqc/0.11.5/fastqc.def b/src/singularity_modules/fastqc/0.11.5/fastqc.def
new file mode 100644
index 00000000..d2bc5389
--- /dev/null
+++ b/src/singularity_modules/fastqc/0.11.5/fastqc.def
@@ -0,0 +1,21 @@
+Bootstrap: docker
+From: ubuntu:18.04
+
+%labels
+MAINTAINER Laurent Modolo
+
+%post
+FASTQC_VERSION=0.11.5
+PACKAGES="fastqc=${FASTQC_VERSION}* \
+perl=5.26*"
+
+apt-get update && \
+apt-get install -y --no-install-recommends ${PACKAGES} && \
+apt-get clean
+
+%environment
+export FASTQC_VERSION=0.11.5
+export PACKAGES=fastqc=${FASTQC_VERSION}*
+
+%runscript
+exec /bin/bash "$@"
-- 
GitLab