-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (25 loc) · 755 Bytes
/
Dockerfile
File metadata and controls
38 lines (25 loc) · 755 Bytes
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
FROM zeromqorg/czmq
USER root
WORKDIR /home
#install cJSON
RUN git clone https://github.com/DaveGamble/cJSON
RUN cd cJSON && \
mkdir build && \
cd build && \
cmake .. && \
make && \
make install
RUN apt-get update && apt-get -y install gcc gfortran valgrind
EXPOSE 5566
EXPOSE 5567
RUN mkdir /home/irpc
COPY ./irpc/c_rpc/kernel.c /home/irpc
COPY ./taxsim/taxsim9.for /home/irpc
COPY ./taxsim/taxsim9_unmodified.for /home/irpc
COPY ./taxsim/data/puf_taxsim_state_small.txt /home/irpc
WORKDIR /home/irpc
ENV LD_LIBRARY_PATH "/home/cJSON/build/"
RUN gcc -c kernel.c -o kernel.o -g
RUN gfortran kernel.o taxsim9.for -o cmeshkernel -lczmq -lzmq -lcjson -g
RUN gfortran taxsim9_unmodified.for -o taxsim9_unmod
CMD ["/bin/bash"]