forked from powerPlant/masurca-srf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Apptainer.4.1.0
41 lines (34 loc) · 1.12 KB
/
Apptainer.4.1.0
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
Bootstrap: docker
From: ubuntu:jammy
%labels
Maintainer [email protected]
Version 4.1.0
%environment
PATH=/opt/MaSuRCA-4.1.0/bin:$PATH
export PATH
export LANG=en_NZ.UTF-8
export LC_ALL=en_NZ.UTF-8
export LANGUAGE=en_NZ.UTF-8
%post
## Download build prerequisites
apt-get update && apt-get install -y \
curl build-essential libboost-dev libbz2-dev wget zlib1g-dev locales libenv-path-perl
locale-gen en_NZ.UTF-8
## Build
cd /opt
curl -s -L https://github.com/alekseyzimin/masurca/releases/download/v4.1.0/MaSuRCA-4.1.0.tar.gz | tar xz
cd MaSuRCA-4.1.0
# Fix the install script from exiting with a copy error
sed -i 's/cp -a ..\/Flye /cd /' install.sh
./install.sh
## Do some cleanup
apt-get -y remove --purge build-essential
apt-get -y clean all
apt-get -y autoremove --purge
%runscript
if [ -x /opt/MaSuRCA-4.1.0/bin/$APPTAINER_NAME ]; then
exec $APPTAINER_NAME "$@"
else
/bin/echo -e "This Apptainer image cannot provide a single entrypoint. Please use \"apptainer exec $APPTAINER_NAME <cmd>\", where <cmd> is one of the following:\n"
exec ls /opt/MaSuRCA-4.1.0/bin
fi