forked from peridigm/peridigm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
43 lines (36 loc) · 962 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
33
34
35
36
37
38
39
40
41
42
43
FROM peridigm/trilinos
MAINTAINER John Foster <[email protected]>
ENV HOME /root
WORKDIR /
RUN apt-get -yq update
RUN apt-get -yq install openmpi-bin
RUN apt-get -yq install openssh-server
#Build Peridigm
RUN mkdir peridigm
WORKDIR /peridigm
ADD src src
ADD test test
ADD scripts scripts
ADD examples examples
ADD CMakeLists.txt .
RUN mkdir /peridigm/build
WORKDIR /peridigm/build/
RUN cmake \
-D CMAKE_BUILD_TYPE:STRING=Release \
-D CMAKE_INSTALL_PREFIX:PATH=/usr/local/peridigm \
-D CMAKE_CXX_FLAGS:STRING="-std=c++11 -O2" \
-D TRILINOS_DIR:PATH=/usr/local/trilinos \
-D CMAKE_CXX_COMPILER:STRING="mpicxx" \
-D USE_DAKOTA:BOOL=OFF \
..; \
make && make install; \
cd ..; \
rm -rf peridigm
VOLUME /output
WORKDIR /output
ENV LD_LIBRARY_PATH /usr/local/netcdf/lib
ENV PATH /usr/local/peridigm/bin:$PATH
ENV PATH /usr/local/trilinos/bin:$PATH
RUN mkdir /var/run/sshd
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]