| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ca58008 commit 80754a1
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,6 @@ COPY --from=build /opt/python-gitlab/dist dist/ | |||
| 11 | 11 | RUN pip install PyYaml | |
| 12 | 12 | RUN pip install $(find dist -name *.whl) && \ | |
| 13 | 13 | rm -rf dist/ | |
| 14 | - COPY docker-entrypoint.sh /usr/local/bin/ | ||
| 15 | 14 | ||
| 16 | - ENTRYPOINT ["docker-entrypoint.sh"] | ||
| 15 | + ENTRYPOINT ["gitlab"] | ||
| 17 | 16 | CMD ["--version"] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -43,29 +43,41 @@ Install with pip | |||
| 43 | 43 | ||
| 44 | 44 | pip install python-gitlab | |
| 45 | 45 | ||
| 46 | + Using the docker image | ||
| 47 | + ====================== | ||
| 46 | 48 | ||
| 47 | - Using the python-gitlab docker image | ||
| 48 | - ==================================== | ||
| 49 | + You can run the Docker image directly from the GitLab registry: | ||
| 49 | 50 | ||
| 50 | - How to build | ||
| 51 | - ------------ | ||
| 51 | + .. code-block:: console | ||
| 52 | + | ||
| 53 | + $ docker run -it --rm registry.gitlab.com/python-gitlab/python-gitlab:latest <command> ... | ||
| 54 | + | ||
| 55 | + For example, to get a project on GitLab.com (without authentication): | ||
| 56 | + | ||
| 57 | + .. code-block:: console | ||
| 52 | 58 | ||
| 53 | - ``docker build -t python-gitlab:TAG .`` | ||
| 59 | + $ docker run -it --rm registry.gitlab.com/python-gitlab/python-gitlab:latest project get --id gitlab-org/gitlab | ||
| 54 | 60 | ||
| 55 | - How to use | ||
| 56 | - ---------- | ||
| 61 | + You can also mount your own config file: | ||
| 57 | 62 | ||
| 58 | - ``docker run -it --rm -e GITLAB_PRIVATE_TOKEN=<your token> -v /path/to/python-gitlab.cfg:/python-gitlab.cfg python-gitlab <command> ...`` | ||
| 63 | + .. code-block:: console | ||
| 64 | + | ||
| 65 | + $ docker run -it --rm -v /path/to/python-gitlab.cfg:/etc/python-gitlab.cfg registry.gitlab.com/python-gitlab/python-gitlab:latest <command> ... | ||
| 66 | + | ||
| 67 | + Building the image | ||
| 68 | + ------------------ | ||
| 59 | 69 | ||
| 60 | - or run it directly from the upstream image: | ||
| 70 | + To build your own image from this repository, run: | ||
| 61 | 71 | ||
| 62 | - ``docker run -it --rm -e GITLAB_PRIVATE_TOKEN=<your token> -v /path/to/python-gitlab.cfg:/python-gitlab.cfg registry.gitlab.com/python-gitlab/python-gitlab:latest <command> ...`` | ||
| 72 | + .. code-block:: console | ||
| 73 | + | ||
| 74 | + $ docker build -t python-gitlab:latest . | ||
| 63 | 75 | ||
| 64 | - To change the GitLab URL, use `-e GITLAB_URL=<your url>` | ||
| 76 | + Run your own image: | ||
| 65 | 77 | ||
| 66 | - Bring your own config file: | ||
| 67 | - ``docker run -it --rm -v /path/to/python-gitlab.cfg:/python-gitlab.cfg -e GITLAB_CFG=/python-gitlab.cfg python-gitlab <command> ...`` | ||
| 78 | + .. code-block:: console | ||
| 68 | 79 | ||
| 80 | + $ docker run -it --rm -v python-gitlab:latest <command> ... | ||
| 69 | 81 | ||
| 70 | 82 | Bug reports | |
| 71 | 83 | =========== | |
| Back | FazBrowse Home | New Git URL |
0 commit comments