{"id":16003015,"url":"https://github.com/wtsi-hgi/docker-with-gitlab-secrets","last_synced_at":"2026-05-08T17:43:39.877Z","repository":{"id":57423342,"uuid":"90881192","full_name":"wtsi-hgi/docker-with-gitlab-secrets","owner":"wtsi-hgi","description":"Wraps Docker to run with GitLab build variables","archived":false,"fork":false,"pushed_at":"2019-01-29T15:47:56.000Z","size":38,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-12T22:37:22.701Z","etag":null,"topics":["docker","gitlab","secrets"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wtsi-hgi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-10T15:41:50.000Z","updated_at":"2019-01-29T15:47:58.000Z","dependencies_parsed_at":"2022-09-07T04:51:45.152Z","dependency_job_id":null,"html_url":"https://github.com/wtsi-hgi/docker-with-gitlab-secrets","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtsi-hgi%2Fdocker-with-gitlab-secrets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtsi-hgi%2Fdocker-with-gitlab-secrets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtsi-hgi%2Fdocker-with-gitlab-secrets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtsi-hgi%2Fdocker-with-gitlab-secrets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wtsi-hgi","download_url":"https://codeload.github.com/wtsi-hgi/docker-with-gitlab-secrets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247274212,"owners_count":20912066,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","gitlab","secrets"],"created_at":"2024-10-08T10:05:44.204Z","updated_at":"2026-05-08T17:43:38.750Z","avatar_url":"https://github.com/wtsi-hgi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/wtsi-hgi/docker-with-gitlab-secrets.svg)](https://travis-ci.org/wtsi-hgi/docker-with-gitlab-secrets)\n[![codecov.io](https://codecov.io/gh/wtsi-hgi/docker-with-gitlab-secrets/graph/badge.svg)](https://codecov.io/github/wtsi-hgi/docker-with-gitlab-secrets)\n[![PyPI version](https://badge.fury.io/py/dockerwithgitlabsecrets.svg)](https://badge.fury.io/py/dockerwithgitlabsecrets)\n\n\n# Docker With GitLab Secrets\n*Wraps Docker to run with GitLab build variables.*\n\n## Installation\nPrerequisites:\n- Python \u003e= 3.6\n- docker\n\nStable releases can be installed via [PyPI](https://pypi.python.org/pypi/dockerwithgitlabsecrets):\n```bash\n$ pip install dockerwithgitlabsecrets\n```\n\nBleeding edge versions can be installed directly from GitHub:\n```bash\n$ pip install git+https://github.com/wtsi-hgi/docker-with-gitlab-secrets.git@commit_id_or_branch_or_tag#egg=dockerwithgitlabsecrets\n```\n\n\n## Usage\nWrap your prefixed Docker command with:\n```bash\nusage: docker-with-gitlab-secrets [-h] [--dwgs-config DWGS_CONFIG]\n                                  [--dwgs-project DWGS_PROJECT]\n                                  [--env-file ENV_FILE]\n\nDocker With GitLab Secrets\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --dwgs-config DWGS_CONFIG\n                        location of the configuration file (will default to\n                        ~/.dwgs-config.yml)\n  --dwgs-project DWGS_PROJECT\n                        GitLab project (if not namespaced in the form\n                        \"namespace/project\", the default namespace defined in\n                        the configuration file will be used). If not defined,\n                        the default project in the configuration file will be\n                        used\n```\n\n### Examples\nRun a new container with secrets from a GitLab project:\n```bash\ndocker-with-gitlab-secrets --dwgs-config my-config.yml --dwgs-project my-project \\\n    run --rm alpine printenv GITLAB_SECRET\n```\n\nWrapping unrelated Docker commands will still work:\n```bash\ndocker-with-gitlab-secrets --dwgs-config my-config.yml \\\n    version\n```\n\nRun a container interactively that will have secrets from a GitLab project in the environment:\n```bash\ndocker-with-gitlab-secrets --dwgs-config my-config.yml --dwgs-project my-project \\\n    run --rm -it ubuntu\n```\n\n\n## Configuration\nExample:\n```yml\ngitlab:\n  url: https://gitlab.example.com\n  token: my-token\n  project: hgi-systems  # Optional default project, which will be overriden if `dwgs-project` is specified\n  namespace: hgi        # Optional default namespace, which will be overriden if defined in the project (e.g. `hgi/hgi-systems`)\n```\n\n\n## Known Issues\n- Docker [cannot pass newlines in variables via `--env-file`](https://github.com/moby/moby/issues/12997). Therefore \nmultiline GitLab variables with have their line-breaks escaped to \\\\n.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwtsi-hgi%2Fdocker-with-gitlab-secrets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwtsi-hgi%2Fdocker-with-gitlab-secrets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwtsi-hgi%2Fdocker-with-gitlab-secrets/lists"}