Skip to content

In UBI-fips helper images remove installation of extra packages since they are...

Georgi N. Georgiev requested to merge fix-emacs-metadata-in-ubi-fips-helper into main

What does this MR do?

Fixes https://gitlab.com/gitlab-org/gitlab-runner/-/issues/30996#note_1426362340.

We had forgotten once place for emacs-filesystem could sneak through.

Why was this MR needed?

What's the best way to test this MR?

Resulting image from pipeline should have no emacs-filesystem package: docker run --rm -it --entrypoint "rpm -qa | grep emacs" <RESULTING_IMAGE>

You can also build it:

GOOS=linux GOARCH=amd64 go build -o out/binaries/gitlab-runner-linux-amd64 .
export UBI_FIPS_VERSION=8.7-1107
make helper-dockerarchive-ubi-fips
docker import out/helper-images/prebuilt-ubi-fips-x86_64.tar.xz
# Find the new image from 
docker images
docker run --rm -it --entrypoint "rpm -qa | grep emacs" <RESULTING_IMAGE>

What are the relevant issue numbers?

Closes https://gitlab.com/gitlab-org/gitlab-runner/-/issues/30996

Edited by Georgi N. Georgiev

Merge request reports