-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathci-ubuntu-2204.dockerfile
42 lines (37 loc) · 1.03 KB
/
ci-ubuntu-2204.dockerfile
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
# Dockerfile for building preCICE on ubuntu 22.04
FROM ubuntu:22.04
# Add the precice user to run test with mpi
RUN useradd -m -s /bin/bash precice
ENV PRECICE_USER=precice
COPY ubuntu/inittimezone /usr/local/bin/inittimezone
# Installing necessary dependecies for preCICE
RUN apt-get -qq update && \
inittimezone && \
apt-get -qq -y install \
build-essential \
ccache \
cmake \
curl \
g++ \
gfortran \
git \
lcov \
libbenchmark-dev \
libboost-all-dev \
libeigen3-dev \
libxml2-dev \
lintian \
lsb-release \
ninja-build \
petsc-dev \
python3-dev \
python3-numpy \
python3-pip \
python3-venv \
wget \
&& rm -rf /var/lib/apt/lists/*
# Environment variables are set in the .env file
COPY --chown=root:root ginkgo/99-ginkgo-env.sh /etc/profile.d/
COPY ginkgo/ginkgo-install.sh ginkgo-install.sh
RUN ./ginkgo-install.sh && rm ginkgo-install.sh
CMD ["/bin/bash", "--login"]