diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index f8b8510bade..27904f8b1fa 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -217,7 +217,7 @@ jobs: with: path: | vendor/bundle - key: ${{ matrix.platform }}-${{ matrix.debian_base }}-vendor-bundle-${{ github.ref }} + key: ${{ matrix.platform }}-trixie-vendor-bundle-${{ github.ref }} - name: Include vendor/bundle in this build (so we can use it from the cache above) run: | sed -i 's/vendor\/bundle//g' .dockerignore @@ -229,15 +229,14 @@ jobs: platforms: ${{ matrix.platform }} target: ${{ matrix.target }} build-args: | - DEBIAN_BASE=${{ matrix.debian_base }} BIM_SUPPORT=${{ matrix.bim_support }} BUILDKIT_PROGRESS=plain pull: true load: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - cache-from: type=s3,blobs_prefix=cache/${{ github.repository }}/${{ matrix.debian_base }},manifests_prefix=cache/${{ github.repository }}/${{ matrix.debian_base }},region=${{ env.RUNS_ON_AWS_REGION }},bucket=${{ env.RUNS_ON_S3_BUCKET_CACHE }} - cache-to: type=s3,blobs_prefix=cache/${{ github.repository }}/${{ matrix.debian_base }},manifests_prefix=cache/${{ github.repository }}/${{ matrix.debian_base }},region=${{ env.RUNS_ON_AWS_REGION }},bucket=${{ env.RUNS_ON_S3_BUCKET_CACHE }},mode=max + cache-from: type=s3,blobs_prefix=cache/${{ github.repository }}/trixie,manifests_prefix=cache/${{ github.repository }}/trixie,region=${{ env.RUNS_ON_AWS_REGION }},bucket=${{ env.RUNS_ON_S3_BUCKET_CACHE }} + cache-to: type=s3,blobs_prefix=cache/${{ github.repository }}/trixie,manifests_prefix=cache/${{ github.repository }}/trixie,region=${{ env.RUNS_ON_AWS_REGION }},bucket=${{ env.RUNS_ON_S3_BUCKET_CACHE }},mode=max - name: Extract vendor/bundle from container run: | docker create --name bundle ${{ steps.build.outputs.imageid }} @@ -274,12 +273,11 @@ jobs: platforms: ${{ matrix.platform }} target: ${{ matrix.target }} build-args: | - DEBIAN_BASE=${{ matrix.debian_base }} BIM_SUPPORT=${{ matrix.bim_support }} labels: ${{ steps.meta.outputs.labels }} outputs: type=image,name=${{ needs.setup.outputs.registry_image }},push-by-digest=true,name-canonical=true,push=true - cache-from: type=s3,blobs_prefix=cache/${{ github.repository }}/${{ matrix.debian_base }},manifests_prefix=cache/${{ github.repository }}/${{ matrix.debian_base }},region=${{ env.RUNS_ON_AWS_REGION }},bucket=${{ env.RUNS_ON_S3_BUCKET_CACHE }} - cache-to: type=s3,blobs_prefix=cache/${{ github.repository }}/${{ matrix.debian_base }},manifests_prefix=cache/${{ github.repository }}/${{ matrix.debian_base }},region=${{ env.RUNS_ON_AWS_REGION }},bucket=${{ env.RUNS_ON_S3_BUCKET_CACHE }},mode=max + cache-from: type=s3,blobs_prefix=cache/${{ github.repository }}/trixie,manifests_prefix=cache/${{ github.repository }}/trixie,region=${{ env.RUNS_ON_AWS_REGION }},bucket=${{ env.RUNS_ON_S3_BUCKET_CACHE }} + cache-to: type=s3,blobs_prefix=cache/${{ github.repository }}/trixie,manifests_prefix=cache/${{ github.repository }}/trixie,region=${{ env.RUNS_ON_AWS_REGION }},bucket=${{ env.RUNS_ON_S3_BUCKET_CACHE }},mode=max - name: Export digest run: | mkdir -p /tmp/digests diff --git a/bin/build-docker-aio b/bin/build-docker-aio index 1c75035df0c..34e1e94e412 100755 --- a/bin/build-docker-aio +++ b/bin/build-docker-aio @@ -1,4 +1,3 @@ #!/bin/bash -docker build -t openproject/openproject:$(git rev-parse --abbrev-ref HEAD | tr '/' '-') --build-arg DEBIAN_BASE=bookworm -f docker/prod/Dockerfile . - +docker build -t openproject/openproject:$(git rev-parse --abbrev-ref HEAD | tr '/' '-') -f docker/prod/Dockerfile . diff --git a/docker/prod/Dockerfile b/docker/prod/Dockerfile index 51cfe62c728..e5a9953887e 100755 --- a/docker/prod/Dockerfile +++ b/docker/prod/Dockerfile @@ -1,9 +1,8 @@ ARG RUBY_VERSION="3.4.7" -ARG DEBIAN_BASE="trixie" # Add SBOM scan context for intermediate steps ARG BUILDKIT_SBOM_SCAN_CONTEXT=true ARG BUILDKIT_SBOM_SCAN_STAGE=true -FROM ruby:${RUBY_VERSION}-slim-${DEBIAN_BASE} AS runtime-base +FROM ruby:${RUBY_VERSION}-slim-trixie AS runtime-base LABEL maintainer="operations@openproject.com" ARG NODE_VERSION="22.21.0" diff --git a/docker/pullpreview/docker-compose.yml b/docker/pullpreview/docker-compose.yml index 8bb3c2b6f04..c842df285e3 100644 --- a/docker/pullpreview/docker-compose.yml +++ b/docker/pullpreview/docker-compose.yml @@ -13,8 +13,6 @@ volumes: x-defaults: &defaults build: context: . - args: - DEBIAN_BASE: bookworm restart: unless-stopped env_file: - .env.pullpreview