码头用品与蟒蛇
pyocker的Python项目详细描述
说明
- Docker映像有base images,一个基本映像也有另一个 基本图像。
- 在构建imageb之前,您可能需要重新构建imagea 基于ImageA构建。
Pyocker启用静态 dockerfile依赖关系的定义和docker的选择性构建/推送 图像。
待办事项
- []为每个用户选择的目录启用Dockerfiles 图像
- []与dockerfile_composer 集成
- []注册表验证
- []检查Dockerfiles中描述的实际依赖项是否匹配 依赖项定义
- []添加评论
- []登录到文件中
要求
- 码头工人
安装
pip install pyocker
用法
build
pyocker build --file docker-dependency.yml # Basic pyocker build --file docker-dependency.yml --dry-run # Dry-Run
选项
Usage: pyocker build [OPTIONS] Options: --file TEXT Path to config file [default="docker-dependency.yml"] --verbose / --quiet Make lots of noise or not [default=verbose] --dry-run Dry Run -h, --help Show this message and exit.
配置
# Built-in variables:
# * $date - current date in format `yyyy.mm.dd`
---
registry: # name of public|private registry
images: # Required
-
name: fluentd # Required
tags: # Tags to build with
- latest
- production
- development
use_cache: yes # Disable `--no-cache` option [default: yes]
build: no
push: no
-
name: my-image
tags:
- $date-dev # Using a built-in variable
use_cache: no
build: yes
push: yes
dependencies: # Images required by `my-image`
-
name: base-image1
tags:
- latest
use_cache: yes
build: yes
push: no
-
name: base-image2
tags:
- latest
use_cache: yes
build: yes
push: no
compose
即将到来。