-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathDockerfile
More file actions
67 lines (58 loc) · 1.85 KB
/
Copy pathDockerfile
File metadata and controls
67 lines (58 loc) · 1.85 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
FROM ubuntu:24.04
ARG BUILD_JOBS=1
# installing dependencies
RUN apt-get update --yes
RUN apt-get install --yes \
git \
make \
autoconf \
automake \
libtool \
flex \
bison \
cmake \
g++ \
gfortran \
libhdf5-dev \
libopenblas-dev \
mpich \
libmpich-dev \
libtirpc-dev \
curl \
nano \
libembree-dev \
pkg-config
# compile libmesh from source and install it
RUN git clone --recurse-submodules https://github.com/libMesh/libmesh.git /XDG_TEST_SYSTEM/libmesh
WORKDIR /XDG_TEST_SYSTEM/libmesh/build
RUN ../configure --prefix=/XDG_TEST_SYSTEM/libmesh_install_dir
RUN make -j $(BUILD_JOBS)
RUN make install
ENV LIBMESH_INSTALL_PATH=/XDG_TEST_SYSTEM/libmesh_install_dir
# build MOAB from source
RUN git clone --recurse-submodules https://bitbucket.org/fathomteam/moab.git /XDG_TEST_SYSTEM/moab
WORKDIR /XDG_TEST_SYSTEM/moab/build
RUN cmake .. \
-DCMAKE_INSTALL_PREFIX=/XDG_TEST_SYSTEM/moab_install_dir \
-DENABLE_HDF5=ON \
-DHDF5_ROOT=/usr \
-DBLAS_LIBRARIES=/usr/lib/x86_64-linux-gnu/libopenblas.so \
-DBUILD_SHARED_LIBS=ON
RUN make -j $(BUILD_JOBS)
RUN make install
ENV MOAB_INSTALL_PATH=/XDG_TEST_SYSTEM/moab_install_dir
# build XDG
RUN git clone --recurse-submodules https://github.com/xdg-org/xdg.git /XDG_TEST_SYSTEM/xdg
WORKDIR /XDG_TEST_SYSTEM/xdg/build
RUN cmake .. \
-DCMAKE_INSTALL_PREFIX=/XDG_TEST_SYSTEM/xdg_install_dir \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=mpicc \
-DCMAKE_CXX_COMPILER=mpicxx \
-DXDG_ENABLE_MOAB=ON \
-DMOAB_DIR=${MOAB_INSTALL_PATH} \
-DXDG_ENABLE_LIBMESH=ON \
-DLIBMESH_DIR=${LIBMESH_INSTALL_PATH}
RUN make -j $(BUILD_JOBS)
RUN make install
ENV XDG_INSTALL_PATH=/XDG_TEST_SYSTEM/xdg_install_dir