Gitlab CI - Kubernetes executor on openshift - build an image with podman/makisu/buildah/kaniko

Viewed 62

I'm executing CI jobs with gitlab-ci runner which is configured with kubernetes executor, and actually runs on openshift. I want to be able to build docker images to dockerfiles, with the following constraints:

  1. The runner (openshift pod) is ran as user with high and random uid (234131111111 for example).
  2. The runner pod is not privileged.
  3. Not having cluster admin permissions, or ability to reconfigure the runner.

So obviously DinD cannot work, since is requires special docker device configuration. Podman, kaniko, buildah, buildkit and makisu don't work for random non-root user and without any volume. Any suggestions?

0 Answers
Related