包装Docker以使用Gitlab生成变量运行

dockerwithgitlabsecrets的Python项目详细描述


|搭建状态codecoov.io pypi版本



docker与gitlab机密的docker与gitlab秘秘秘的docker
===============


*将docker与gitlab构建变量一起运行。*



安装
=
=







=>先决条件:python>;=3.6-docker









(一)有权使用;https://pypi.python.org/pypi/dockerWithGitlabSecrets>;``你:

…代码::bash

$pip安装dockerWithGitlabSecrets


Bleeding Edge版本可以直接从Github安装:

…代码::bash

$pip install git+https://github.com/wtsi hgi/docker with gitlab secrets.git@commit_id_or_branch_or_tag_egg=dockerWithGitlab secrets

用法
----


代码::bash

用法:docker with gitlab secrets[-h][--dwgs-config-dwgs-config-dwgs-config]
[--dwgs-project-dwgs-project-dwgs-project]
[--env-file-env-file]


docker with gitlab secrets

-帮助显示此帮助消息并退出
-DWGS配置文件DWGSSCONFIG
配置文件的位置(默认为
/用户/CN13/ .DWGS CONFIG.YML)
-DWGS项目DWGSX项目
GITLAB项目(如果没有命名空间的话)表单
“namespace/project”,将使用在配置文件中定义的默认命名空间。如果未定义,
将使用配置文件中的默认项目



示例
~~~~~~~~~~


使用gitlab项目的机密运行新容器:


。代码::bash

docker with gitlab secrets--dwgs config my-config.yml--dwgs project my project\
run--rm alpin printenv gitlab_secret

代码::bash

docker with gitlab secrets--dwgs config my-config.yml\
version


以交互方式运行一个容器,该容器将包含gitlab
环境中项目的机密:

。代码::bash

docker with gitlab secrets--dwgs config my-config.yml--dwgs project my project\
run--rm-it ubuntu


configuration
--


示例:

……代码::yml

gitlab:
url:https://gitlab.example.com
token:my token
project:hgi systems\如果指定了'dwgs project'
名称空间:hgi可选默认名称空间


已知问题
---------

-docker`不能通过
`--env file`<;https://github.com/moby/moby/issues/12997>在变量中传递换行符,则将重写该值;`_.
因此,具有换行符的多行Gitlab变量将其换行符
转义到\\n.

…|构建状态图像::https://travis ci.org/wtsi hgi/docker with gitlab secrets.svg
:目标:https://travis ci.org/wtsi hgi/docker with gitlab secrets
。| 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
。| pypi版本image::https://badge.fury.io/py/dockerWithGitlabSecrets.svg
:目标:https://badge.fury.io/py/dockerWithGitlabSecrets

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
Java NIO选择器最多只能选择50个SelectionKeys?   java阻止ImageButton创建新活动   为什么Java方法“Arrays.copyOf”处理中的整数数组与处理对象数组时的行为不同   java将安卓 1.6日历字段提取到vcal   将字符串转换为双精度后的java问题   java使用Webflux,是否可以使用AOP获取用于日志记录的ServerHttpRequest   java与jTextArea的基本区别是什么。setText()和jTextArea。append()方法?   java程序执行时间|将值保存到文件或数据结构?   java如何将表示字符的整数转换为字符串?   Java LWJGL新的渲染问题windows   java GUI提供异常   java创建第二个对象使类的函数不再工作   如何在java中将000验证为3位数字?   java bigO算法的时间复杂度,可以在不重复的情况下找到最长的子串   在30像素内点击按钮后,java在两个图像之间转换   java eclipse maven nexus不可解父pom   当存在其他SecurityConstraint时,java TransportGuary机密将被忽略   重新连接后激发的java Red5客户端流断开事件   javafx聊天应用程序中连接客户端的java问题