1- FROM jupyter/minimal-notebook:da2c5a4d00fa
2-
3- MAINTAINER Izaak Beekman <
[email protected] >
1+ FROM jupyter/minimal-notebook:f3652d3f58f2
42
53USER root
6- ENV GCC_VERSION 7.2.0
7-
8- ENV NB_USER jovyan
9- ENV NB_UID 1000
10- ENV HOME /home/${NB_USER}
4+ ENV GCC_VERSION 7.3.0
115
126RUN DEBIAN_FRONTEND=noninteractive transientBuildDeps="file" \
7+ && echo "NB_USER=${NB_USER}" \
138 && set -v \
149 && cat /etc/issue \
1510 && uname -a \
1611 && echo "${DEBIAN_FRONTEND}" \
1712 && apt-get update -y \
18- && apt-get install -y \
13+ && apt-get install -y --no-install-recommends \
1914 software-properties-common \
2015 && add-apt-repository ppa:ubuntu-toolchain-r/test -y \
2116 && apt-get update -y \
22- && apt-get install -y \
17+ && apt-get install -y --no-install-recommends \
2318 build-essential \
24- gcc-7=${GCC_VERSION}-1ubuntu1~16.04 \
25- gfortran-7=${GCC_VERSION}-1ubuntu1~16.04 \
26- g++-7=${GCC_VERSION}-1ubuntu1~16.04 \
27- mpich \
19+ gcc-7>=7.3.0 \
20+ gfortran-7>=7.3.0 \
21+ g++-7>=7.3.0 \
22+ mpich>=3.2 \
23+ libmpich-dev>=3.2 \
2824 ${transientBuildDeps} \
2925 && update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 --slave /usr/bin/gfortran gfortran /usr/bin/gfortran-7 \
3026 && update-alternatives --set gcc "/usr/bin/gcc-7" \
3127 && gcc --version \
3228 && gfortran --version \
3329 && mpiexec --version \
34- && mpifort --version \
30+ && mpif90 --version \
3531 && mpicc --version \
3632 && apt-get clean \
3733 && apt-get purge -y --auto-remove ${transientBuildDeps} \
@@ -52,28 +48,30 @@ RUN DEBIAN_FRONTEND=noninteractive transientBuildDeps="file" \
5248 org.label-schema.version="${VCS_VERSION}" \
5349 org.label-schema.vendor="SourceryInstitute" \
5450 org.label-schema.license="BSD" \
55- org.label-schema.docker.cmd="docker run -i -t -p 8888:8888 sourceryinstitute/opencoarrays-notebook "
51+ org.label-schema.docker.cmd="docker run -i -t -p 8888:8888 sourceryinstitute/opencoarrays_jupyter "
5652
5753ARG RUN_TESTS=false
5854
59- RUN DEBIAN_FRONTEND=noninteractive transientBuildDeps="cmake git" \
55+ RUN DEBIAN_FRONTEND=noninteractive transientBuildDeps="cmake cmake-data git" \
6056 && set -v \
6157 && echo "${DEBIAN_FRONTEND}" \
62- && apt-get update && apt-get install -y \
58+ && apt-get update && apt-get install -y --no-install-recommends \
6359 ${transientBuildDeps} \
6460 && cmake --version \
6561 && gcc --version \
6662 && gfortran --version \
6763 && git clone --single-branch https://github.com/sourceryinstitute/OpenCoarrays \
6864 && mkdir OpenCoarrays/build \
6965 && cd OpenCoarrays/build \
70- && FC="$(which gfortran)" CC="$(which gcc)" cmake -DCMAKE_BUILD_TYPE=Release .. \
66+ && FC="$(command -v gfortran)" CC="$(command -v gcc)" cmake -DCAF_ENABLE_FAILED_IMAGES=FALSE -DCMAKE_BUILD_TYPE=Release .. \
7167 && make -j "$(nproc)" install \
72- && if [ "${RUN_TESTS}" = "true" ] ; then ctest --output-on-failure ; fi \
73- && cd ../.. \
68+ && if "${RUN_TESTS}" ; then ctest --output-on-failure ; fi \
7469 && caf --version \
7570 && cafrun --version \
76- && rm -rf OpenCoarrays \
71+ && cd ../.. \
72+ && rm -rf ../../OpenCoarrays \
7773 && apt-get clean \
7874 && apt-get purge -y --auto-remove ${transientBuildDeps} \
7975 && rm -rf /var/lib/apt/lists/* /var/log/* /tmp/*
76+
77+ USER "${NB_USER}"
0 commit comments