forked from SwissTPH/openmalaria.containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSingularity.35.0
50 lines (40 loc) · 1.15 KB
/
Singularity.35.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
42
43
44
45
46
47
48
49
50
####################################
# Singularity recipe for openMalaria version 35
#
####################################
Bootstrap: docker
From: centos:7
%post
export OPENMALARIA_VERSION="35.0"
# install the OpenMalaria dependencies
yum -y install epel-release
yum -y install \
boost-devel \
cmake \
gcc-c++ \
glibc-devel \
gsl-devel \
make \
wget \
xerces-c-devel \
xsd \
zlib-devel
yum clean all
# download the source code and compile it
cd /usr/local/src/
wget https://github.com/SwissTPH/openmalaria/archive/schema-${OPENMALARIA_VERSION}.tar.gz
tar xf schema-${OPENMALARIA_VERSION}.tar.gz
mkdir -p /usr/local/src/openmalaria-schema-${OPENMALARIA_VERSION}/build/
cd /usr/local/src/openmalaria-schema-${OPENMALARIA_VERSION}/build/
cmake .. -DCMAKE_BUILD_TYPE=RELEASE
make
# copy the binary and resource files to the bin/ folder
cp openMalaria /usr/local/bin
cp schema/scenario_current.xsd /usr/local/bin/
cp ../test/densities.csv /usr/local/bin/
%runscript
exec openMalaria "$@"
%apprun openmalaria
openMalaria "@"i
%help
To see the openMalaria command help, use the -h option