diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml deleted file mode 100644 index f4b698de..00000000 --- a/.github/workflows/build-docker.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: Update docker image - -on: - workflow_dispatch: # Trigger by hand from the UI - inputs: - branch: - type: choice - description: branch to build the image from - options: - - develop - push: - branches: - - develop - - -jobs: - build-and-release-docker-image: - name: Builds a dockerimage with the python bindings of preCICE - runs-on: ubuntu-latest - env: - docker_username: precice - steps: - - name: Set branch name for manual triggering - if: github.event_name == 'workflow_dispatch' - shell: bash - run: echo "BINDINGS_REF=${{ inputs.branch }}" >> $GITHUB_ENV - - name: Set branch name for "on pull request" triggering - if: github.event_name != 'pull_request' && github.event_name != 'workflow_dispatch' - shell: bash - run: echo "BINDINGS_REF=${{ github.ref_name }}" >> $GITHUB_ENV - - name: Set PRECICE_TAG and the TAG depending on branch - shell: bash - run: | - echo "PRECICE_TAG=${{ env.BINDINGS_REF == 'develop' && 'nightly' || env.BINDINGS_REF }}" >> "$GITHUB_ENV" - echo "TAG=${{ env.BINDINGS_REF }}" >> "$GITHUB_ENV" - echo "Building TAG: ${{ env.BINDINGS_REF }}" - - name: Checkout Repository - uses: actions/checkout@v2 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - name: Login to DockerHub - uses: docker/login-action@v1 - with: - username: ${{ env.docker_username }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Build and push Dockerfile - uses: docker/build-push-action@v2 - with: - push: true - file: "./tools/releasing/packaging/docker/Dockerfile" - tags: ${{ env.docker_username }}/python-bindings:${{ env.TAG }} - build-args: | - PRECICE_TAG=${{ env.PRECICE_TAG }} - PYTHON_BINDINGS_REF=${{ env.BINDINGS_REF }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 932ab2a4..fb15f4e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. +## latest + +* Discontinued maintainment of Docker image `precice/python-bindings`. Python packages should be installed using virtual environments instead. Please refer to `README.md` for further information. https://github.com/precice/python-bindings/pull/228 + ## 3.1.2 * Restrict to numpy < 2 for better compatibility with CI pipeline. https://github.com/precice/python-bindings/pull/213 diff --git a/tools/releasing/packaging/docker/Dockerfile b/tools/releasing/packaging/docker/Dockerfile deleted file mode 100644 index e3d6c3bf..00000000 --- a/tools/releasing/packaging/docker/Dockerfile +++ /dev/null @@ -1,28 +0,0 @@ -# Dockerfile to build a ubuntu image containing the installed Debian package of a release -ARG PRECICE_TAG=nightly -ARG from=precice/precice:${PRECICE_TAG} -FROM $from - -USER root -# Installing necessary dependencies -RUN apt-get -qq update && apt-get -qq install \ - apt-utils && \ - apt-get -qq install \ - software-properties-common \ - git \ - sudo \ - python3-dev \ - python3-pip \ - pkg-config && \ - rm -rf /var/lib/apt/lists/* - -USER precice - -# Upgrade pip to newest version (pip version from 18.04 apt-get is outdated) -RUN python3 -m pip install --user --upgrade pip - -# Rebuild image if force_rebuild after that command -ARG PYTHON_BINDINGS_REF=develop - -# Builds the precice python bindings for python3 -RUN pip3 install --user git+https://github.com/precice/python-bindings.git@${PYTHON_BINDINGS_REF}