-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSingularity
More file actions
53 lines (42 loc) · 1.33 KB
/
Copy pathSingularity
File metadata and controls
53 lines (42 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# =====================================
# HEADER
# =====================================
Bootstrap: docker
From: nextflow/nextflow:0.29.1
%labels
MAINTAINER christophe.demay@chru-lille.fr
CONTAINER_VERSION 0.0.1
SINGULARITY_VERSION 2.5.1
NEXTFLOW_VERSION 0.29.1
%setup
%files
%environment
NXF_OPTS='-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap'
NXF_HOME=/.nextflow
%help
%post
# =====================================
# INSTALL DEPENDENCIES
# =====================================
apk update && apk upgrade
apk add --no-cache coreutils
apk add --no-cache curl bash
apk add --no-cache wget
apk add --no-cache build-base
apk add --no-cache python
apk add --no-cache --upgrade tar
apk add --no-cache linux-headers
apk add --no-cache libarchive-dev
apk add --no-cache squashfs-tools
apk add --no-cache sudo
# =====================================
# INSTALL SINGULARITY
# =====================================
mkdir -p /opt/singularity && cd /opt/singularity
SINGULARITY_VERSION=2.5.1
wget https://github.com/singularityware/singularity/releases/download/$SINGULARITY_VERSION/singularity-$SINGULARITY_VERSION.tar.gz
tar xvf singularity-$SINGULARITY_VERSION.tar.gz
cd singularity-$SINGULARITY_VERSION
./configure --prefix=/usr/local
make
sudo make install