- Notifications
You must be signed in to change notification settings - Fork673
-
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-bullseyescript: -gitlab --help but the pipeline fails:
Or should I rather go for a default Python slim image and install the |
BetaWas this translation helpful?Give feedback.
All reactions
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-bullseyeentrypoint:[""]script: -gitlab --help
and this then works as expected.
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. |
BetaWas this translation helpful?Give feedback.
All reactions
-
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-bullseyeentrypoint:[""]script: -gitlab --help and this then works as expected. |
BetaWas this translation helpful?Give feedback.