Skip to content

Fix GitLab Runner Docker Packaging + bare install packages

Summary

With the move to GitLab 14.0 the GitLab runner packaging either seems to be extremely inefficient or broken. GitLab runner package sizes went from ~135MB to ~400MB and the Gitlab runner docker image went from ~600MB for non-alpine based images to ~1.6GB in size. This poses a problem for having what is supposed to be a lightweight and scalable build agent to something that takes long times to startup and transfer over some networks.

Reference Links

Actual behavior

GitLab runner packages + the runner containers are overly stuffed with packages or are mispackaged with the wrong dependencies

Expected behavior

GitLab runner distributables should be scoped down to only include what is actually needed to make the software run and not much extra. The base ubuntu image from dockerhub is only ~30MB so layering on the gitlab-runner + dependencies should not add so much fluff and as for the runner packages for installation they seem to be mispackaged but should also be sliced down to what is needed to make the runner software work

Extra Info

The packages available on https://packages.gitlab.com/runner/gitlab-runner/ seem to be mispackaged as the files listed inside of the packages seem to include helper images for all different types of processor architectures as well as different flavors of linux

image