-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (37 loc) · 1.07 KB
/
Dockerfile
File metadata and controls
41 lines (37 loc) · 1.07 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
FROM ubuntu:24.04
# Prevent interactive prompts during installation
ENV DEBIAN_FRONTEND=noninteractive
# Install all dependencies including the tricky ones (Trilinos, PETSc, TBB, MPI, Kokkos)
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
git \
wget \
unzip \
vim \
libboost-all-dev \
libdeal.ii-dev \
mpi-default-dev \
libkokkos-dev \
libtrilinos-epetra-dev \
libtrilinos-epetraext-dev \
libtrilinos-teuchos-dev \
libtrilinos-aztecoo-dev \
libtrilinos-amesos-dev \
libtrilinos-ifpack-dev \
libtrilinos-ml-dev \
libpetsc-real-dev \
libtbb-dev \
&& rm -rf /var/lib/apt/lists/*
# Manual install of yaml-cpp 0.6.3
WORKDIR /tmp
RUN wget https://github.com/jbeder/yaml-cpp/archive/refs/tags/yaml-cpp-0.6.3.zip
RUN unzip yaml-cpp-0.6.3.zip
RUN cd yaml-cpp-yaml-cpp-0.6.3 && \
mkdir build && cd build && \
cmake .. -DYAML_BUILD_SHARED_LIBS=ON && \
make -j4 && \
make install
# Set environment variables
ENV LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
WORKDIR /cmake-exercise