Skip to content

Commit dea8c57

Browse files
committed
Add Singularity recipe
1 parent 3eacb6f commit dea8c57

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

Singularity

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
BootStrap: debootstrap
2+
OSVersion: stable
3+
MirrorURL: https://snapshot.debian.org/archive/debian/20180423T161605Z
4+
5+
%labels
6+
Maintainer Moritz Lell
7+
8+
%environment
9+
LC_ALL="en_US.UTF-8"
10+
PATH="/opt/tapas/scripts:$PATH"
11+
export LC_ALL PATH
12+
13+
%post
14+
15+
apt-get update
16+
apt-get install -y --no-install-recommends locales
17+
18+
# Configure default locale
19+
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
20+
locale-gen en_US.utf8
21+
/usr/sbin/update-locale LANG=en_US.UTF-8
22+
23+
export LC_ALL=en_US.UTF-8
24+
export LANG=en_US.UTF-8
25+
26+
# bsdmainutils: For column command
27+
# curl: For downloading TAPAS
28+
# pandoc, samtools: For creating the manual
29+
apt-get install --no-install-recommends -y r-base r-base-dev \
30+
python3 python3-dev python3-pip python3-wheel python3-setuptools \
31+
bsdmainutils pandoc samtools curl
32+
33+
update-alternatives --install /usr/bin/python python /usr/bin/python3.5 1
34+
update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
35+
36+
# Remove package cache
37+
rm -rf /var/lib/apt/lists/*
38+
39+
cd /opt
40+
curl -L https://github.com/mlell/tapas/archive/refs/heads/master.zip > tapas.zip
41+
unzip tapas.zip
42+
rm tapas.zip
43+
mv tapas-master tapas
44+
45+
cd tapas/scripts/gen
46+
./install_dependencies
47+
48+
49+

0 commit comments

Comments
 (0)