-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy path30.4
29 lines (27 loc) · 1.18 KB
/
30.4
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
FROM ubuntu:trusty as builder
WORKDIR /
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential ca-certificates git zlib1g-dev cmake libgsl0-dev libboost-dev libxerces-c-dev xsdcxx python wget \
&& rm -rf /var/lib/apt/lists/* \
&& git clone --depth 1 --branch schema-30.4 https://github.com/SwissTPH/openmalaria.git \
&& cd openmalaria \
&& echo "schema-30.4" > version.txt \
&& mkdir build \
&& cd build \
&& cmake -DCMAKE_BUILD_TYPE=Release .. \
&& make -j8 \
&& cd .. \
&& mkdir openmalariaRelease \
&& cp build/openMalaria openmalariaRelease/ \
&& cp build/schema/scenario_current.xsd openmalariaRelease/scenario_30.4.xsd \
&& cp build/schema/scenario_current.xsd openmalariaRelease/ \
&& cp test/*.csv openmalariaRelease/
FROM ubuntu:trusty as openmalaria
WORKDIR /om/
RUN apt-get update && apt-get install -y --no-install-recommends \
libgsl0ldbl libxerces-c3.1 \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /openmalaria/openmalariaRelease/* /om/
ENTRYPOINT ["/om/openMalaria"]
# docker build -t openmalaria .
# docker run -it --rm -v /home/acavelan/git/openmalaria/nhh:/root/nhh openmalaria -p nhh -s scenarioNonHumanHosts.xml