3.8. 将蓝图添加到镜像构建器并构建 ISO
运行以下命令,将蓝图添加到镜像构建器中:
$ sudo composer-cli blueprints push microshift-installer.toml
运行以下命令来启动
ostree
ISO 构建:$ BUILDID=$(sudo composer-cli compose start-ostree --url http://localhost:8085/repo/ --ref "rhel/9/$(uname -m)/edge" microshift-installer edge-installer | awk '{print $2}')
此命令还会返回要监控的构建的标识(ID)。
您可以运行以下命令来定期检查构建的状态:
$ sudo composer-cli compose status
正在运行的构建的输出示例
ID Status Time Blueprint Version Type Size c793c24f-ca2c-4c79-b5b7-ba36f5078e8d RUNNING Wed Jun 7 13:22:20 2023 microshift-installer 0.0.0 edge-installer
已完成构建的输出示例
ID Status Time Blueprint Version Type Size c793c24f-ca2c-4c79-b5b7-ba36f5078e8d FINISHED Wed Jun 7 13:34:49 2023 microshift-installer 0.0.0 edge-installer