-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathDockerfile
32 lines (26 loc) · 887 Bytes
/
Dockerfile
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
FROM debian:jessie-slim
RUN apt-get update \
&& apt-get install -y wget libmpich-dev mpich libgmp-dev cmake ssh \
&& wget -qO- https://get.haskellstack.org/ | sh \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /work/bin
WORKDIR /work
COPY stack.yaml formura.cabal Setup.hs /work/
COPY ./src/ /work/src/
COPY ./exe-src/ /work/exe-src/
COPY LICENSE /work/
RUN stack setup \
&& stack install \
&& rm -r .stack-work/ \
&& rm -r /root/.stack
COPY ./examples/pearson-3d-main.cpp /work/examples/
COPY ./examples/pearson-3d.yaml /work/examples/
COPY ./examples/pearson-3d.fmr /work/examples/
COPY ./cmake-for-x86.sh /work/
COPY ./CMakeLists.txt /work/
COPY ./fj_dummy/ /work/fj_dummy/
RUN ./bin/formura examples/pearson-3d.fmr \
&& bash ./cmake-for-x86.sh \
&& make bin/pearson-3d.out \
&& mkdir frames out
CMD ["mpirun", "-n", "1", "bin/pearson-3d.out"]