Skip to content

Usage of Docker image with Gitlab CI? #2822

Answered by eddybl
eddybl asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by eddybl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants