Skip to content

Commit 4c4e123

Browse files
authored
add missing docker files (#434)
1 parent b277f4f commit 4c4e123

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

docker/46.0

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM ubuntu:noble AS builder
2+
WORKDIR /
3+
RUN apt-get update && apt-get install -y --no-install-recommends \
4+
build-essential ca-certificates git libz-dev python3 cmake libgsl-dev libxerces-c-dev xsdcxx libboost-dev \
5+
&& rm -rf /var/lib/apt/lists/* \
6+
&& git clone --depth 1 --branch schema-46.0 https://github.com/SwissTPH/openmalaria.git \
7+
&& cd openmalaria \
8+
&& mkdir build \
9+
&& cd build \
10+
&& cmake -DCMAKE_BUILD_TYPE=Release .. \
11+
&& make -j8 \
12+
&& cd .. \
13+
&& mkdir openmalariaRelease \
14+
&& cp build/openMalaria openmalariaRelease/ \
15+
&& cp build/schema/scenario_current.xsd openmalariaRelease/scenario_46.xsd \
16+
&& cp build/schema/scenario_current.xsd openmalariaRelease/ \
17+
&& cp test/*.csv openmalariaRelease/
18+
19+
FROM ubuntu:noble AS openmalaria
20+
WORKDIR /om/
21+
RUN apt-get update && apt-get install -y --no-install-recommends \
22+
libgsl27 libxerces-c3.2 \
23+
&& rm -rf /var/lib/apt/lists/*
24+
COPY --from=builder /openmalaria/openmalariaRelease/* ./
25+
ENTRYPOINT ["/om/openMalaria"]
26+
27+
# docker build -t openmalaria .
28+
# docker run -it --rm -v /home/acavelan/git/openmalaria/nhh:/root/nhh openmalaria -p nhh -s scenarioNonHumanHosts.xml

docker/47.0

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM ubuntu:jammy AS builder
2+
WORKDIR /
3+
RUN apt-get update && apt-get install -y --no-install-recommends \
4+
build-essential ca-certificates git libz-dev python3 cmake libgsl-dev libxerces-c-dev xsdcxx libboost-dev \
5+
&& rm -rf /var/lib/apt/lists/* \
6+
&& git clone --depth 1 --branch schema-47.0 https://github.com/SwissTPH/openmalaria.git \
7+
&& cd openmalaria \
8+
&& mkdir build \
9+
&& cd build \
10+
&& cmake -DCMAKE_BUILD_TYPE=Release .. \
11+
&& make -j8 \
12+
&& cd .. \
13+
&& mkdir openmalariaRelease \
14+
&& cp build/openMalaria openmalariaRelease/ \
15+
&& cp build/schema/scenario_current.xsd openmalariaRelease/scenario_47.xsd \
16+
&& cp build/schema/scenario_current.xsd openmalariaRelease/ \
17+
&& cp test/*.csv openmalariaRelease/
18+
19+
FROM ubuntu:jammy AS openmalaria
20+
WORKDIR /om/
21+
RUN apt-get update && apt-get install -y --no-install-recommends \
22+
build-essential libgsl27 libxerces-c3.2 \
23+
&& rm -rf /var/lib/apt/lists/*
24+
COPY --from=builder /openmalaria/openmalariaRelease/* ./
25+
ENTRYPOINT ["/om/openMalaria"]
26+
27+
# docker build -t openmalaria .
28+
# docker run -it --rm -v /home/acavelan/git/openmalaria/nhh:/root/nhh openmalaria -p nhh -s scenarioNonHumanHosts.xml

0 commit comments

Comments
 (0)