-
I was wondering if I can use the official docker images as an Test:
image: registry.gitlab.com/python-gitlab/python-gitlab:v4.4.0-slim-bullseye
script:
- gitlab --help but the pipeline fails:
Or should I rather go for a default Python slim image and install the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I think the image takes as its arguments the arguments to the
That is the most I have ever used the image though. So I'm not much help. |
Beta Was this translation helpful? Give feedback.
-
Well, as is often the case once you write down your problem I was now able to fix it. I was already aware that the entrypoint is most likely the issue and the official GitLab documentation explains in detail how to circumvent this problem: https://docs.gitlab.com/ee/ci/docker/using_docker_images.html#override-the-entrypoint-of-an-image so the solution for this case is: Test:
image:
name: registry.gitlab.com/python-gitlab/python-gitlab:v4.4.0-slim-bullseye
entrypoint: [""]
script:
- gitlab --help and this then works as expected. |
Beta Was this translation helpful? Give feedback.
Well, as is often the case once you write down your problem I was now able to fix it.
I was already aware that the entrypoint is most likely the issue and the official GitLab documentation explains in detail how to circumvent this problem: https://docs.gitlab.com/ee/ci/docker/using_docker_images.html#override-the-entrypoint-of-an-image
so the solution for this case is:
and this then works as expected.