From 06e8ca8747256632c8a159f760860b1ae8f2b7b5 Mon Sep 17 00:00:00 2001 From: Max Wittig Date: Fri, 5 Oct 2018 19:00:41 +0200 Subject: fix(docker): use docker image with current sources --- README.rst | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'README.rst') 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= -v /path/to/python-gitlab.cfg:/python-gitlab.cfg python-gitlab ...`` + +To change the GitLab URL, use `-e GITLAB_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 ...`` + + Bug reports =========== -- cgit v1.2.1