forked from nf-core/sarek
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·45 lines (41 loc) · 1.04 KB
/
install.sh
File metadata and controls
executable file
·45 lines (41 loc) · 1.04 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
#!/bin/bash
set -euo pipefail
CONTAINER_ENGINE="singularity"
while [[ $# -gt 0 ]]
do
key="$1"
case $key in
-e|--engine)
CONTAINER_ENGINE="$2"
shift # past argument
shift # past value
;;
*) # unknown option
shift # past argument
;;
esac
done
# Install Nextflow
mkdir /tmp/nextflow
cd /tmp/nextflow
wget -qO- get.nextflow.io | bash
sudo ln -s /tmp/nextflow/nextflow /usr/local/bin/nextflow
# Install Singularity
if [[ "$CONTAINER_ENGINE" = singularity ]]
then
if [[ "$SGT_VER" = '' ]]
then
SGT_VER=$(curl --silent "https://api.github.com/repos/Singularityware/Singularity/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")')
fi
sudo apt-get install libarchive-dev squashfs-tools
mkdir /tmp/singularity
cd /tmp/singularity
wget https://github.com/singularityware/singularity/releases/download/$SGT_VER/singularity-$SGT_VER.tar.gz
tar xvf singularity-$SGT_VER.tar.gz
cd singularity-$SGT_VER
./configure --prefix=/usr/local
make
sudo make install
cd ${TRAVIS_BUILD_DIR}
rm -rf /tmp/singularity
fi