图表:渲染和发布头盔图表和图像

chartpress的Python项目详细描述


图表按

自动建立和发布头盔图表和相关图像。

这是作为jupyterhub和binder项目的一部分使用的。

图表出版社将:

  • 生成Docker图像并用最新的Git提交标记它们
  • 将这些图像发布到dockerhub
  • 重新提交图表以包含标记的图像
  • 将图表和索引发布到GH页

chartpress.yaml文件包含要生成的图表和图像的规范。

例如:

charts:# list of charts by name# each name should be a directory containing a helm chart-name:binderhub# the prefix to use for built imagesimagePrefix:jupyterhub/k8s-# the git repo whose gh-pages contains the chartsrepo:git:jupyterhub/helm-chartpublished:https://jupyterhub.github.io/helm-chart# additional paths (if any) relevant to the chart version# outside the chart directory itselfpaths:-../setup.py-../binderhub# images to build for this chart (optional)images:binderhub:# Context to send to docker build for use by the Dockerfile# (if different from the current directory)contextPath:..# Dockerfile path, if different from the default# (may be needed if contextPath is set)dockerfilePath:images/binderhub/Dockerfile# path in values.yaml to be updated with image name and tagvaluesPath:image# additional paths (if any) relevant to the image# outside the image directory itselfpaths:-../setup.py-../binderhub

用法

在包含chartpress.yaml的目录中,运行:

chartpress

建立图表和图像。添加--push将图像发布到Docker Hub,添加--publish-chart将图表和索引发布到GH页面。

usage: chartpress [-h] [--commit-range COMMIT_RANGE] [--push]
                  [--publish-chart] [--tag TAG]
                  [--extra-message EXTRA_MESSAGE]

Automate building and publishing helm charts and associated images. This is
used as part of the JupyterHub and Binder projects.

optional arguments:
  -h, --help            show this help message and exit
  --commit-range COMMIT_RANGE
                        Range of commits to consider when building images
  --push                push built images to docker hub
  --publish-chart       publish updated chart to gh-pages
  --tag TAG             Use this tag for images & charts
  --extra-message EXTRA_MESSAGE
                        extra message to add to the commit message when
                        publishing charts

注意事项

浅克隆

ChartPress在确定要用于图表和图像的标记时,会检测最新的更改目录或文件的提交。 这意味着不应使用浅层克隆,因为如果上次更改相关文件的提交超出浅层提交范围,则将分配错误的标记。

Travis默认使用50的克隆深度,这可能导致错误的图像标记。 你可以在你的.travis.ymldisable this shallow clone behavior

git:depth:false

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

推荐PyPI第三方库


热门话题
java中char的用途   swing修复,以便显示可以同时显示十进制数和整数   java给定一个场景,找到拥有的JFXPanel   java JPA 2标准获取路径导航   java如何用JUnit测试这个类?   JSF中的java请求作用域   Spring云Zuul代理背后的java Spring OAuth授权服务器   java限制聚合返回的存储桶大小   java如何在安卓应用程序中请求超级su权限   防止超级关键字的java Checkstyle规则   java 安卓。应用程序。应用程序无法强制转换到安卓。应用程序。在回收器适配器中使用FragmentManager时的活动   使用Java的Twitter广告API   切换到4.0.1版本后,java“JavaMailSenderImpl无法解析为类型”   java没有getter方法可用于名称下bean的属性   java 0/1背包堆空间   java我无法使用断点进行调试   Jar文件名表单java代码   java调用从扩展活动的MainActivity类扩展片段的类片段