Skip to content

Commit a42fd1d

Browse files
gassmoellertjhei
authored andcommitted
Update docker image for TACC systems
1 parent 74fef01 commit a42fd1d

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

contrib/docker/docker_tacc/Dockerfile

+14-7
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,42 @@ LABEL maintainer <[email protected]>
66
# we need to disable the key check.
77
RUN echo 'deb [trusted=yes] https://apt.repos.intel.com/mpi all main' > /etc/apt/sources.list.d/intel-mpi.list
88

9-
RUN apt-get update && apt-get -yq upgrade && apt-get -yq install \
9+
RUN apt-get update && apt-get -yq upgrade && apt-get -yq install --no-install-recommends \
1010
libblas-dev \
1111
liblapack-dev \
1212
git \
1313
zlib1g-dev \
1414
numdiff \
1515
bc \
16-
ninja-build
16+
ninja-build \
17+
&& rm -rf /var/lib/apt/lists/*
1718

19+
# Build deal.II dependencies
1820
RUN cd /opt && \
1921
git clone https://github.com/dealii/candi.git && \
2022
cd candi && \
2123
echo "NATIVE_OPTIMIZATIONS=ON" >> local.cfg && \
2224
echo "DEAL_II_VERSION=v9.6.0" >> local.cfg && \
23-
echo "USE_DEAL_II_CMAKE_MPI_COMPILER=ON" >> local.cfg && \
2425
echo "BUILD_EXAMPLES=OFF" >> local.cfg && \
2526
echo "USE_64_BIT_INDICES=ON" >> local.cfg && \
2627
echo "DEAL_CONFOPTS='-DDEAL_II_WITH_COMPLEX_VALUES=OFF -DDEAL_II_WITH_LAPACK=ON'" >> local.cfg && \
27-
./candi.sh -j 32 --packages="once:cmake once:hdf5 once:netcdf once:sundials once:p4est once:trilinos dealii" -p /opt && \
28+
./candi.sh -j 4 --packages="once:cmake once:hdf5 once:netcdf once:sundials once:p4est once:trilinos" -p /opt && \
2829
rm -rf /opt/tmp
2930

30-
# Build aspect, replace git checkout command to create image for release
31+
# Build deal.II
32+
RUN source /opt/configuration/enable.sh && \
33+
cd /opt/candi && \
34+
./candi.sh -j 4 --packages="dealii" -p /opt && \
35+
rm -rf /opt/tmp
36+
37+
# Build aspect
3138
ENV Aspect_DIR /opt/aspect
3239
RUN source /opt/configuration/enable.sh && \
3340
git clone https://github.com/geodynamics/aspect.git $Aspect_DIR && \
3441
mkdir ${Aspect_DIR}/build && \
3542
cd ${Aspect_DIR}/build && \
3643
cmake -DCMAKE_BUILD_TYPE=DebugRelease -DCMAKE_INSTALL_PREFIX=$Aspect_DIR \
37-
-DASPECT_INSTALL_EXAMPLES=ON .. && \
38-
make -j 32 && make install && make clean
44+
-DASPECT_INSTALL_EXAMPLES=OFF .. && \
45+
make -j4 && make install && make clean
3946

4047
ENV PATH ${Aspect_DIR}/bin:${PATH}

0 commit comments

Comments
 (0)