-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathubuntu
More file actions
75 lines (69 loc) · 1.97 KB
/
Copy pathubuntu
File metadata and controls
75 lines (69 loc) · 1.97 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#FROM ubuntu:latest
#FROM ubuntu:eoan
FROM ubuntu:bionic
RUN apt-get -q update -y && apt-get -qq install -y \
sudo \
libopenmpi-dev openmpi-bin \
libboost-all-dev \
liblapack-dev liblapacke-dev \
python2.7 python-pip git \
wget curl lcov doxygen \
ccache texlive-latex-base texlive-fonts-recommended texlive-latex-recommended texlive-font-utils \
g++ gfortran bc \
tar \
libmetis-dev \
libhdf5-openmpi-dev \
libnetcdf-dev \
libexodusii-dev \
libexodusii5 \
libnemesis3 \
libunittest++-dev \
libtrilinos-zoltan-dev \
libboost-all-dev
RUN groupadd -r portage
RUN useradd -r -m -g portage -G sudo portage
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER portage
ENV PATH=/usr/lib/ccache:${PATH}
WORKDIR /home/portage
RUN pip install --user codecov coverxygen
# Build cmake 3.13.4
RUN wget https://github.com/Kitware/CMake/releases/download/v3.13.4/cmake-3.13.4.tar.gz && \
tar zxf cmake-3.13.4.tar.gz
WORKDIR cmake-3.13.4
RUN sudo ./bootstrap
RUN sudo make -j2 && sudo make install
WORKDIR ..
# Build MSTK and Jali
RUN wget https://github.com/MeshToolkit/mstk/archive/3.3.4.tar.gz && \
tar xzf 3.3.4.tar.gz
WORKDIR MSTK-3.3.4
RUN mkdir build
WORKDIR build
ENV MSTK_DIR /home/portage/MSTK-3.3.4/install
RUN cmake -D CMAKE_BUILD_TYPE=Release \
-D CMAKE_PREFIX_PATH="/usr/include/trilinos" \
-D CMAKE_INSTALL_PREFIX=$MSTK_DIR \
-D ENABLE_PARALLEL=ON \
-D ENABLE_METIS=yes \
-D ENABLE_ZOLTAN=yes \
-D ENABLE_ExodusII=yes \
-D ENABLE_Tests=yes ..
RUN make VERBOSE=1 -j2 && make test
RUN make install
RUN ls $MSTK_DIR
WORKDIR ../..
RUN git clone https://github.com/lanl/jali.git
WORKDIR jali
RUN git checkout 1.1.3
RUN mkdir build
WORKDIR build
ENV JALI_DIR /home/portage/jali/install
RUN cmake -D CMAKE_PREFIX_PATH="$MSTK_DIR;/usr/include/trilinos" \
-D CMAKE_INSTALL_PREFIX=$JALI_DIR \
-D CMAKE_BUILD_TYPE=Release \
-D ENABLE_MSTK_Mesh:BOOL=TRUE \
-D ENABLE_Tests=yes ..
RUN make VERBOSE=1 -j2 && make test
RUN make install
RUN ls $JALI_DIR