diff options
author | Max Wittig <max.wittig95@gmail.com> | 2018-10-05 19:00:41 +0200 |
---|---|---|
committer | Max Wittig <max.wittig@siemens.com> | 2018-10-09 13:16:50 +0200 |
commit | 06e8ca8747256632c8a159f760860b1ae8f2b7b5 (patch) | |
tree | 585bc59f2d3b5bf6610404b76972d7c027c8103c /README.rst | |
parent | 3a8b1a0b11b9e6a60037f90c99dd288cecd09d3d (diff) | |
download | gitlab-fix/docker.tar.gz |
fix(docker): use docker image with current sourcesfix/docker
Diffstat (limited to 'README.rst')
-rw-r--r-- | README.rst | 23 |
1 files changed, 22 insertions, 1 deletions
@@ -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 =========== |