Skip to content

Do not compress images when creating Docker stable images

Achilleas Pipinellis requested to merge axil-no-compress into main

What does this MR do and why?

During the 16.1 docs release, the compression of images eventually made the runner run out of memory, so the build of Docker images failed.

We don't actually need to compress the images, as we do it quite often during the monthly TW tasks.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Check out this branch.

  2. Build the Docker image and verify it builds successfully:

    NANOC_ENV=production CI_COMMIT_REF_NAME=16.1 GOOGLE_SEARCH_KEY=1234 IMAGE_NAME=docs:16.1 docker build \
              --build-arg NANOC_ENV=${NANOC_ENV} \
              --build-arg VER=${CI_COMMIT_REF_NAME} \
              --build-arg SEARCH_BACKEND="google" \
              --build-arg GOOGLE_SEARCH_KEY=${GOOGLE_SEARCH_KEY} \
              --tag $IMAGE_NAME \
              --file dockerfiles/single.Dockerfile

Merge request acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Achilleas Pipinellis

Merge request reports