Skip to content

use /usr/local/bin/tini if image name contains ubi

Michael Amann requested to merge miamann/git-lab-runner-ubi:fix_ubi_init into main

What does this MR do?

Implement automatic switching of the runner init executable in the command based on the image name.

Why was this MR needed?

It is currently not possible to use the Helm chart to run the UBI images provided by GitLab, as they use tini instead of dumb-init as the init system.

What's the best way to test this MR?

Set the image to an image without ubi in its name, helm template... set the image name to include ubi, helm template... without ubi the result should have the container command starting with /usr/bin/dumb-init while with the image including ubi should result in /usr/local/bin/tini

What are the relevant issue numbers?

Merge request reports