-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdevelop.dockerfile
More file actions
36 lines (28 loc) · 941 Bytes
/
develop.dockerfile
File metadata and controls
36 lines (28 loc) · 941 Bytes
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
ARG compiler=gcc-12
ARG arch=amd64
ARG ubuntu=22.04
FROM lifflander1/vt:${arch}-ubuntu-${ubuntu}-${compiler}-cpp
# All ARGs are invalidated after FROM instruction, so it has to be redefined
ARG compiler=gcc-12
ARG proxy=""
ENV https_proxy=${proxy} \
http_proxy=${proxy}
ENV DEBIAN_FRONTEND=noninteractive
ARG zoltan_enabled=0
ARG ZOLTAN_INSTALL_DIR=/trilinos-install
ENV ZOLTAN_DIR=${ZOLTAN_INSTALL_DIR}
RUN if test ${zoltan_enabled} -eq 1; then \
apt-get update -y -q && \
apt-get install -y -q --no-install-recommends \
gfortran-$(echo ${compiler} | cut -d- -f2) && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*; \
ln -s \
"$(which gfortran-$(echo ${compiler} | cut -d- -f2))" \
/usr/bin/gfortran; \
./zoltan.sh -j4 ${ZOLTAN_INSTALL_DIR}; \
fi
COPY . /vt
RUN /vt/ci/build_cpp.sh /vt /build
RUN /vt/ci/test_cpp.sh /vt /build
RUN /vt/ci/build_vt_sample.sh /vt /build