57.8. Overcloud 容器镜像构建
使用 kolla-build 构建 overcloud 容器镜像。
使用方法:
openstack overcloud container image build [-h] [--config-file <yaml config file>] --kolla-config-file <config file> [--list-images] [--list-dependencies] [--exclude <container-name>] [--use-buildah] [--work-dir <container builds directory>] [--build-timeout <build timeout in seconds>]
值 | 概述 |
---|---|
-h, --help | 显示帮助信息并退出 |
--config-file <yaml config file> | yaml 配置文件,指定要构建的镜像。可多次指定。订购会被保留,之后的文件将覆盖之前文件中的一些选项。其他选项将附加。如果没有指定,则会构建默认容器集合。 |
--kolla-config-file <config file> | 要使用的 kolla 配置文件的路径。可以指定多个配置文件,后面文件中的值优先。默认情况下,添加了 tripleo kolla conf 文件 /usr/share/tripleo-common/container- images/tripleo_kolla_config_overrides.conf。 |
--list-images | 显示将要构建的镜像,而不是构建它们。 |
--list-dependencies | 显示镜像构建依赖项,而不是构建它们。 |
--exclude <container-name> | 要跳过的容器列表要匹配的容器名称。可多次指定。 |
--use-buildah | 使用 buildah 而不是 docker 来使用 Kolla 构建镜像。 |
--work-dir <container builds directory> | tripleo 容器构建目录,存储各个镜像及其依赖项的配置和日志。 |
--build-timeout <build timeout (以秒为单位)> | 构建超时(以秒为单位)。 |