summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorMax Wittig <max.wittig95@gmail.com>2018-10-05 19:00:41 +0200
committerMax Wittig <max.wittig@siemens.com>2018-10-09 13:16:50 +0200
commit06e8ca8747256632c8a159f760860b1ae8f2b7b5 (patch)
tree585bc59f2d3b5bf6610404b76972d7c027c8103c /README.rst
parent3a8b1a0b11b9e6a60037f90c99dd288cecd09d3d (diff)
downloadgitlab-fix/docker.tar.gz
fix(docker): use docker image with current sourcesfix/docker
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst23
1 files changed, 22 insertions, 1 deletions
diff --git a/README.rst b/README.rst
index ff71fcb..f4a9357 100644
--- a/README.rst
+++ b/README.rst
@@ -20,7 +20,7 @@ It supports the v4 API of GitLab, and provides a CLI tool (``gitlab``).
Maintainer(s) wanted
====================
-We are looking for neww maintainer(s) for this project. See
+We are looking for new maintainer(s) for this project. See
https://github.com/python-gitlab/python-gitlab/issues/596.
Installation
@@ -41,6 +41,27 @@ Install with pip
pip install python-gitlab
+
+Using the python-gitlab docker image
+====================================
+
+How to build
+------------
+
+``docker build -t python-gitlab:TAG .``
+
+How to use
+----------
+
+``docker run -it --rm -e GITLAB_PRIVATE_TOKEN=<your token> -v /path/to/python-gitlab.cfg:/python-gitlab.cfg python-gitlab <command> ...``
+
+To change the GitLab URL, use `-e GITLAB_URL=<your url>`
+
+
+Bring your own config file:
+``docker run -it --rm -v /path/to/python-gitlab.cfg:/python-gitlab.cfg -e GITLAB_CFG=/python-gitlab.cfg python-gitlab <command> ...``
+
+
Bug reports
===========