summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorNejc Habjan <nejc.habjan@siemens.com>2022-01-22 02:25:13 +0100
committerNejc Habjan <nejc.habjan@siemens.com>2022-01-22 20:21:40 +0100
commit9aae4ed083ea43b33b674e3f2cdbb60c56cdac07 (patch)
tree787f9d48b0dcfc1461d3205b805e976b8951d61d /README.rst
parentff049005cc9e5161eddda786e58ed4364639cf02 (diff)
downloadgitlab-feat/docker-slim.tar.gz
feat(docker): provide a Debian-based slim imagefeat/docker-slim
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst26
1 files changed, 24 insertions, 2 deletions
diff --git a/README.rst b/README.rst
index 838943c..ddb5340 100644
--- a/README.rst
+++ b/README.rst
@@ -53,8 +53,24 @@ From GitLab:
$ pip install git+https://gitlab.com/python-gitlab/python-gitlab.git
-Using the docker image
-----------------------
+Using the docker images
+-----------------------
+
+``python-gitlab`` provides Docker images in two flavors, based on the ``-alpine`` and ``-slim``
+python `base images <https://hub.docker.com/_/python>`__. The default tag is alpine, but you
+can explicitly use the alias (see below).
+
+The alpine image is smaller, but you may want to use the Debian-based ``-slim`` tag if you are
+running into issues or need a more complete environment with a bash shell, such as in CI jobs.
+
+The images are published on the GitLab registry, for example:
+
+* ``registry.gitlab.com/python-gitlab/python-gitlab:latest`` (latest, alpine alias)
+* ``registry.gitlab.com/python-gitlab/python-gitlab:alpine`` (latest alpine)
+* ``registry.gitlab.com/python-gitlab/python-gitlab:slim`` (latest slim)
+* ``registry.gitlab.com/python-gitlab/python-gitlab:v3.2.0`` (alpine alias)
+* ``registry.gitlab.com/python-gitlab/python-gitlab:v3.2.0-alpine``
+* ``registry.gitlab.com/python-gitlab/python-gitlab:v3.2.0-slim``
You can run the Docker image directly from the GitLab registry:
@@ -89,6 +105,12 @@ Run your own image:
$ docker run -it --rm -v python-gitlab:latest <command> ...
+Build a slim-based image:
+
+.. code-block:: console
+
+ $ docker build -t python-gitlab:latest --build-arg PYTHON_FLAVOR=slim .
+
Bug reports
-----------