|
6 | 6 | # we need to disable the key check.
|
7 | 7 | RUN echo 'deb [trusted=yes] https://apt.repos.intel.com/mpi all main' > /etc/apt/sources.list.d/intel-mpi.list
|
8 | 8 |
|
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 \ |
10 | 10 | libblas-dev \
|
11 | 11 | liblapack-dev \
|
12 | 12 | git \
|
13 | 13 | zlib1g-dev \
|
14 | 14 | numdiff \
|
15 | 15 | bc \
|
16 |
| - ninja-build |
| 16 | + ninja-build \ |
| 17 | + && rm -rf /var/lib/apt/lists/* |
17 | 18 |
|
| 19 | +# Build deal.II dependencies |
18 | 20 | RUN cd /opt && \
|
19 | 21 | git clone https://github.com/dealii/candi.git && \
|
20 | 22 | cd candi && \
|
21 | 23 | echo "NATIVE_OPTIMIZATIONS=ON" >> local.cfg && \
|
22 | 24 | echo "DEAL_II_VERSION=v9.6.0" >> local.cfg && \
|
23 |
| - echo "USE_DEAL_II_CMAKE_MPI_COMPILER=ON" >> local.cfg && \ |
24 | 25 | echo "BUILD_EXAMPLES=OFF" >> local.cfg && \
|
25 | 26 | echo "USE_64_BIT_INDICES=ON" >> local.cfg && \
|
26 | 27 | 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 && \ |
28 | 29 | rm -rf /opt/tmp
|
29 | 30 |
|
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 |
31 | 38 | ENV Aspect_DIR /opt/aspect
|
32 | 39 | RUN source /opt/configuration/enable.sh && \
|
33 | 40 | git clone https://github.com/geodynamics/aspect.git $Aspect_DIR && \
|
34 | 41 | mkdir ${Aspect_DIR}/build && \
|
35 | 42 | cd ${Aspect_DIR}/build && \
|
36 | 43 | 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 |
39 | 46 |
|
40 | 47 | ENV PATH ${Aspect_DIR}/bin:${PATH}
|
0 commit comments