Wraps Docker to run with GitLab build variables
Project description
Docker With GitLab Secrets
Wraps Docker to run with GitLab build variables.
Usage
usage: docker-with-gitlab-secrets [-h] [--dwgs-config DWGS_CONFIG]
[--dwgs-project DWGS_PROJECT]
[--env-file ENV_FILE]
Docker With GitLab Secrets
optional arguments:
-h, --help show this help message and exit
--dwgs-config DWGS_CONFIG
location of the configuration file (will default to
/root/.dwgs-config.yml)
--dwgs-project DWGS_PROJECT
GitLab project (if not namespaced in the form
"namespace/project", the default namespace defined in
the configuration file will be used). If not defined,
the default project in the configuration file will be
used
--env-file ENV_FILE Docker argument in which this program wants to know
about - see: https://docs.docker.com/engine/reference/
commandline/run/#set-environment-variables--e---env---
env-file
Configuration
Example:
gitlab:
url: https://gitlab.example.com
token: my-token
project: hgi-systems # Optional default project, which will be overriden by if `dwgs-project` is specified
namespace: hgi # Optional default namespace
Known Issues
Docker cannot pass newlines in variables via `–env-file`` <https://github.com/moby/moby/issues/12997>`__. Therefore multiline GitLab variables with have their line-breaks escaped to \n.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file dockerwithgitlabsecrets-0.1.1.tar.gz
.
File metadata
- Download URL: dockerwithgitlabsecrets-0.1.1.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7078b2ab672096841db52838a270b71e99e4a6dab81e987852fea3cfa9f4be48 |
|
MD5 | 690889a477360618738634088b6e1e97 |
|
BLAKE2b-256 | 3aef13e3eaeaecdfb93ea3ea936b8c75e39e124c92e8ee309e4a35c6061e391b |