-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy path38.0
29 lines (27 loc) · 1.17 KB
/
38.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
FROM ubuntu:xenial as builder
WORKDIR /
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential ca-certificates git zlib1g-dev cmake libgsl-dev libxerces-c-dev xsdcxx libboost-dev python \
&& rm -rf /var/lib/apt/lists/* \
&& git clone --depth 1 --branch schema-38.0 https://github.com/SwissTPH/openmalaria.git \
&& cd openmalaria \
# && echo "schema-30.3" > 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_38.xsd \
&& cp build/schema/scenario_current.xsd openmalariaRelease/ \
&& cp test/*.csv openmalariaRelease/
FROM ubuntu:xenial as openmalaria
WORKDIR /om/
RUN apt-get update && apt-get install -y --no-install-recommends \
libgsl2 libxerces-c3.1 \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /openmalaria/openmalariaRelease/* ./
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