Skip to content

Commit 9c60990

Browse files
committed
workflows: Edit petsc docker image
1 parent 4f3bd88 commit 9c60990

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/pytest-petsc.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@ jobs:
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

docker/Dockerfile.cpu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ RUN apt-get update && \
1717

1818
# Install for basic base not containing it
1919
RUN 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
2423
RUN 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 && \

docker/Dockerfile.petsc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
# use the one from my dockerhub
88
ARG 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 && \

0 commit comments

Comments
 (0)