sh 使用OpenShift集群构建oc客户端

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 使用OpenShift集群构建oc客户端相关的知识,希望对你有一定的参考价值。

#/bin/bash

# NOTE: Create a separate project for each platform/branch you're building

# For a Mac client (substitute SOURCE_URL and SOURCE_REF to build a specific PR or fork):
oc new-app -f https://raw.githubusercontent.com/csrwng/build-origin/master/origin-builder.yaml \
   -p SOURCE_URL=https://github.com/openshift/origin.git \
   -p SOURCE_REF=master \
   -p PLATFORM=darwin/amd64
   
# For a Windows client:
oc new-app -f https://raw.githubusercontent.com/csrwng/build-origin/master/origin-builder.yaml \
   -p SOURCE_URL=https://github.com/openshift/origin.git \
   -p SOURCE_REF=master \
   -p PLATFORM=windows/amd64
   
# For Linux client:
oc new-app -f https://raw.githubusercontent.com/csrwng/build-origin/master/origin-builder.yaml \
   -p SOURCE_URL=https://github.com/openshift/origin.git \
   -p SOURCE_REF=master \
   -p PLATFORM=windows/amd64
   
# Watch for endpoints of the service to be available... when available, the build is finished.
oc get endpoints build-origin --watch
   
# Once the build is finished, the oc binary can be downloaded via HTTP via an exposed route
oc get route build-origin

# Download from the route host:
curl -O http://[route-host]/[platform]/amd64/oc[.exe]

# To rebuild from the same branch/ref, simple start the build again (no need to recreate artifacts):
oc start-build build-origin

以上是关于sh 使用OpenShift集群构建oc客户端的主要内容,如果未能解决你的问题,请参考以下文章

Openshift CLI - 使用模板和 oc new-app 更新应用程序

sh 安装openshift 3.11集群(主服务器+节点)

openshift上传java web项目

OpenShift:构建失败,带有“无效的输出引用”

004.OpenShift命令及故障排查

带有 Cygwin 的 OpenShift oc 命令行