File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5656 run : |
5757 docker build -f docker/Dockerfile.devito --build-arg base=zoeleibowitz/petsc_image:latest --tag zoeleibowitz/petsc_devito_image:latest .
5858
59- - name : Push Docker image to DockerHub
60- run : |
61- docker push ${{ secrets.DOCKER_USERNAME }}/petsc_devito_image:latest
62-
6359 - name : Set run prefix
6460 run : |
6561 echo "RUN_CMD=docker run --rm -t -e CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }} --name testrun zoeleibowitz/petsc_devito_image:latest" >> $GITHUB_ENV
Original file line number Diff line number Diff line change @@ -17,8 +17,7 @@ RUN apt-get update && \
1717
1818# Install for basic base not containing it
1919RUN apt-get install -y wget flex libnuma-dev hwloc curl cmake git \
20- autoconf libtool build-essential procps software-properties-common \
21- gfortran pkgconf libopenblas-serial-dev
20+ autoconf libtool build-essential procps software-properties-common
2221
2322# Install gcc
2423RUN if [ -n "$gcc" ]; then \
@@ -44,6 +43,7 @@ RUN cd /tmp && mkdir openmpi && \
4443 cd openmpi && ./autogen.pl && \
4544 mkdir build && cd build && \
4645 ../configure --prefix=/opt/openmpi/ \
46+ --disable-mpi-fortran \
4747 --enable-mca-no-build=btl-uct --enable-mpi1-compatibility && \
4848 make -j ${nproc} && \
4949 make install && \
Original file line number Diff line number Diff line change 77# use the one from my dockerhub
88ARG base=zoeleibowitz/bases:cpu-gcc
99
10- RUN apt-get update && apt-get install -y git && \
10+ FROM $base
11+
12+ RUN apt-get update && apt-get install -y \
13+ git gfortran pkgconf libopenblas-serial-dev && \
1114 python3 -m venv /venv && \
1215 /venv/bin/pip install --no-cache-dir --upgrade pip && \
1316 /venv/bin/pip install --no-cache-dir --no-binary numpy numpy && \
You can’t perform that action at this time.
0 commit comments