OpenShift Container Platform 4.4 构建(build)构建的命名空间 OPENSHIFT_BUILD_SOURCE 构建的源 URL OPENSHIFT_BUILD_REFERENCE 构建中使用的 Git 引用 OPENSHIFT_BUILD_COMMIT 构建中使用的源提交 此外,任何用户定义的环境变量(例如,使用S2I 或 Docker 策略选项配置的环境变量)也将是输出镜像 环境变量列表的一部分。 spec: output: build.commit.author 构建中使用的源提交的作者 io.openshift.build.commit.date 构建中使用的源提交的日期 io.openshift.build.commit.id 构建中使用的源提交的哈希值 io.openshift.build.commit.message 构建中使用的源提交的消息 io.openshift.build.commit.ref 源中指定的分支或引用 指定将成为构建源中唯一文件的单个文件。该文件放在空目录的根目录 中,其文件名与提供的原始文件相同。 --from-repo=指定用作构建二进制输入的本地存储库的路径。添加 --commit 选项以控 制要用于构建的分支、标签或提交。 将任何这些选项直接传递给构建时,内容将流传输到构建中并覆盖当前的构建源设置。 注意 注意 从二进制输入触发的构建不会在服务器上保留源,因此基础镜像更改触发的重新构建将使 0 码力 | 101 页 | 1.12 MB | 1 年前3
OpenShift Container Platform 4.13 CI/CDOPENSHIFT_BUILD_COMMIT 构建中使用的源提交 此外,任何用户定义的环境变量(例如,使用 S2I 或 docker 策略选项配置的环境变量)也将是输出镜像 环境变量列表的一部分。 2.4.3. 输出镜像标签 docker 和 Source-to-Image (S2I) 构建设置输出镜像的以下标签: 标签 标签 描述 描述 io.openshift.build.commit.author 构建中使用的源提交的作者 构建中使用的源提交的作者 io.openshift.build.commit.date 构建中使用的源提交的日期 io.openshift.build.commit.id 构建中使用的源提交的哈希值 io.openshift.build.commit.message 构建中使用的源提交的消息 io.openshift.build.commit.ref 源中指定的分支或引用 io.openshift 指定将成为构建源中唯一文件的单个文件。该文件放在空目录的根目录 中,其文件名与提供的原始文件相同。 --from-repo=指定用作构建二进制输入的本地存储库的路径。添加 --commit 选项以控 制要用于构建的分支、标签或提交。 将任何这些选项直接传递给构建时,内容将流传输到构建中并覆盖当前的构建源设置。 注意 注意 $ oc start-build 0 码力 | 129 页 | 1.37 MB | 1 年前3
OpenShift Container Platform 4.10 CLI 工具deployment-hook 更新部署配置上的部署 hook 用法示例 用法示例 # Clear post-commit hook on a build config oc set build-hook bc/mybuild --post-commit --remove # Set the post-commit hook to execute a test suite using a new entrypoint build-hook bc/mybuild --post-commit --command -- /bin/bash -c /var/lib/test-image.sh # Set the post-commit hook to execute a shell script oc set build-hook bc/mybuild --post-commit --script="/var/lib/test-image repository to the server from tag 'v2' oc start-build hello-world --from-repo=../hello-world --commit=v2 # Start a new build for build config "hello-world" and watch the logs until the build # completes0 码力 | 120 页 | 1.04 MB | 1 年前3
OpenShift Container Platform 4.13 CLI 工具secret-name another-secret-name ... # Clear post-commit hook on a build config oc set build-hook bc/mybuild --post-commit --remove # Set the post-commit hook to execute a test suite using a new entrypoint build-hook bc/mybuild --post-commit --command -- /bin/bash -c /var/lib/test-image.sh # Set the post-commit hook to execute a shell script oc set build-hook bc/mybuild --post-commit --script="/var/lib/test-image repository to the server from tag 'v2' oc start-build hello-world --from-repo=../hello-world --commit=v2 # Start a new build for build config "hello-world" and watch the logs until the build # completes0 码力 | 128 页 | 1.11 MB | 1 年前3
OpenShift Container Platform 4.8 CLI 工具deployment-hook 更新部署配置上的部署 hook 用法示例 用法示例 # Clear post-commit hook on a build config oc set build-hook bc/mybuild --post-commit --remove # Set the post-commit hook to execute a test suite using a new entrypoint build-hook bc/mybuild --post-commit --command -- /bin/bash -c /var/lib/test-image.sh # Set the post-commit hook to execute a shell script oc set build-hook bc/mybuild --post-commit --script="/var/lib/test-image repository to the server from tag 'v2' oc start-build hello-world --from-repo=../hello-world --commit=v2 # Start a new build for build config "hello-world" and watch the logs until the build # completes0 码力 | 152 页 | 1.24 MB | 1 年前3
OpenShift Container Platform 4.2 镜像io.openshift.build.commit.author: Ben Pareesio.openshift.build.commit.date: Wed Jan 20 10:14:27 2016 -0500 io.openshift.build.commit.id: 00cadc392d39d bc8a31db0889eedd442 io.openshift.build.commit.message: 'Merge pull request #51 from php-coder/fix_url_and_sti' io.openshift.build.commit.ref: master io.openshift.build.image: centos/ruby-22- test tmp vendor 2. 在 Rails 应用程序目录中运行以下命令,以便初始化代码并将其提交给 git: $ git init $ git add . $ git commit -m "initial commit" + 提交应用程序后,必须将其推送(push)到远程存储库。Github 帐户,您可使用它创建新的存储库。 1. 设置指向 git 存储库的远程存储库: $ git remote 0 码力 | 92 页 | 971.35 KB | 1 年前3
OpenShift Container Platform 4.14 镜像io.openshift.build.commit.author: Ben Pareesio.openshift.build.commit.date: Wed Jan 20 10:14:27 2016 -0500 io.openshift.build.commit.id: 00cadc392d39d bc8a31db0889eedd442 io.openshift.build.commit.message: 'Merge pull request #51 from php-coder/fix_url_and_sti' io.openshift.build.commit.ref: master io.openshift.build.image: centos/ruby-22- lock lib log public Rakefile README.rdoc test tmp vendor $ git init $ git add . $ git commit -m "initial commit" OpenShift Container Platform 4.14 镜 镜像 像 108 3. 设置指向 git 存储库的远程存储库: 4. 将应用程序推送(push)到远程 0 码力 | 118 页 | 1.13 MB | 1 年前3
OpenShift Container Platform 4.7 镜像io.openshift.build.commit.author: Ben Pareesio.openshift.build.commit.date: Wed Jan 20 10:14:27 2016 -0500 io.openshift.build.commit.id: 00cadc392d39d bc8a31db0889eedd442 io.openshift.build.commit.message: 'Merge pull request #51 from php-coder/fix_url_and_sti' io.openshift.build.commit.ref: master io.openshift.build.image: centos/ruby-22- lock lib log public Rakefile README.rdoc test tmp vendor $ git init $ git add . $ git commit -m "initial commit" 第 第 11 章 章 使用 使用 RUBY ON RAILS 97 3. 设置指向 git 存储库的远程存储库: 4. 将应用程序推送(push)到远程 git 存储库。 0 码力 | 123 页 | 1.20 MB | 1 年前3
OpenShift Container Platform 4.8 容器镜像仓库(Registry)# HELP imageregistry_build_info A metric with a constant '1' value labeled by major, minor, git commit & git version from which the image registry was built. # TYPE imageregistry_build_info gauge ima0 码力 | 39 页 | 415.94 KB | 1 年前3
OpenShift Container Platform 3.11 CLI 参考start-build --env= $ oc start-build --build-loglevel [0-5] $ oc start-build --commit= $ oc start-build --from-build= $ oc start-build --from-dir= $ oc 0 码力 | 45 页 | 737.95 KB | 1 年前3
共 21 条
- 1
- 2
- 3













