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 /contrib | |
parent | 3a8b1a0b11b9e6a60037f90c99dd288cecd09d3d (diff) | |
download | gitlab-fix/docker.tar.gz |
fix(docker): use docker image with current sourcesfix/docker
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/docker/Dockerfile | 10 | ||||
-rw-r--r-- | contrib/docker/README.rst | 20 | ||||
-rwxr-xr-x | contrib/docker/entrypoint-python-gitlab.sh | 21 |
3 files changed, 0 insertions, 51 deletions
diff --git a/contrib/docker/Dockerfile b/contrib/docker/Dockerfile deleted file mode 100644 index 6812c32..0000000 --- a/contrib/docker/Dockerfile +++ /dev/null @@ -1,10 +0,0 @@ -FROM python:alpine - -RUN pip install --upgrade python-gitlab - -COPY entrypoint-python-gitlab.sh /usr/local/bin/. - -WORKDIR /src - -ENTRYPOINT ["entrypoint-python-gitlab.sh"] -CMD ["--version"] diff --git a/contrib/docker/README.rst b/contrib/docker/README.rst deleted file mode 100644 index 1627661..0000000 --- a/contrib/docker/README.rst +++ /dev/null @@ -1,20 +0,0 @@ -python-gitlab docker image -========================== - -How to build ------------- - -``docker build -t python-gitlab:VERSION .`` - -How to use ----------- - -``docker run -it --rm -e GITLAB_PRIVATE_TOKEN=<your token> =/python-gitlab.cfg python-gitlab <command> ...`` - -To change the endpoint, add `-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> ...`` - - diff --git a/contrib/docker/entrypoint-python-gitlab.sh b/contrib/docker/entrypoint-python-gitlab.sh deleted file mode 100755 index 6422ad0..0000000 --- a/contrib/docker/entrypoint-python-gitlab.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh - -GITLAB_CFG=${GITLAB_CFG:-"/etc/python-gitlab-default.cfg"} - -cat << EOF > /etc/python-gitlab-default.cfg -[global] -default = gitlab -ssl_verify = ${GITLAB_SSL_VERIFY:-true} -timeout = ${GITLAB_TIMEOUT:-5} -api_version = ${GITLAB_API_VERSION:-4} -per_page = ${GITLAB_PER_PAGE:-10} - -[gitlab] -url = ${GITLAB_URL:-https://gitlab.com} -private_token = ${GITLAB_PRIVATE_TOKEN} -oauth_token = ${GITLAB_OAUTH_TOKEN} -http_username = ${GITLAB_HTTP_USERNAME} -http_password = ${GITLAB_HTTP_PASSWORD} -EOF - -exec gitlab --config-file "${GITLAB_CFG}" $@ |