@@ -53,8 +53,25 @@ From GitLab:
5353 $ pip install git+https://gitlab.com/python-gitlab/python-gitlab.git
5454
5555
56- Using the docker image
57- ----------------------
56+ Using the docker images
57+ -----------------------
58+
59+ ``python-gitlab `` provides Docker images in two flavors, based on the Alpine and Debian slim
60+ python `base images <https://hub.docker.com/_/python >`__. The default tag is ``alpine ``,
61+ but you can explicitly use the alias (see below).
62+
63+ The alpine image is smaller, but you may want to use the Debian-based slim tag (currently
64+ based on ``-slim-bullseye ``) if you are running into issues or need a more complete environment
65+ with a bash shell, such as in CI jobs.
66+
67+ The images are published on the GitLab registry, for example:
68+
69+ * ``registry.gitlab.com/python-gitlab/python-gitlab:latest `` (latest, alpine alias)
70+ * ``registry.gitlab.com/python-gitlab/python-gitlab:alpine `` (latest alpine)
71+ * ``registry.gitlab.com/python-gitlab/python-gitlab:slim-bullseye `` (latest slim-bullseye)
72+ * ``registry.gitlab.com/python-gitlab/python-gitlab:v3.2.0 `` (alpine alias)
73+ * ``registry.gitlab.com/python-gitlab/python-gitlab:v3.2.0-alpine ``
74+ * ``registry.gitlab.com/python-gitlab/python-gitlab:v3.2.0-slim-bullseye ``
5875
5976You can run the Docker image directly from the GitLab registry:
6077
@@ -89,6 +106,12 @@ Run your own image:
89106
90107 $ docker run -it --rm -v python-gitlab:latest <command> ...
91108
109+ Build a Debian slim-based image:
110+
111+ .. code-block :: console
112+
113+ $ docker build -t python-gitlab:latest --build-arg PYTHON_FLAVOR=slim-bullseye .
114+
92115 Bug reports
93116-----------
94117
0 commit comments