This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.第 10 章 Using Red Hat subscriptions in builds
Use the following sections to run entitled builds on OpenShift Container Platform.
To use Red Hat subscriptions within a build, you create an image stream tag to reference the Universal Base Image (UBI).
To make the UBI available in every project in the cluster, you add the image stream tag to the openshift
namespace. Otherwise, to make it available in a specific project, you add the image stream tag to that project.
The benefit of using image stream tags this way is that doing so grants access to the UBI based on the registry.redhat.io
credentials in the install pull secret without exposing the pull secret to other users. This is more convenient than requiring each developer to install pull secrets with registry.redhat.io
credentials in each project.
Procedure
To create an
ImageStreamTag
in theopenshift
namespace, so it is available to developers in all projects, enter:oc tag --source=docker registry.redhat.io/ubi7/ubi:latest ubi:latest -n openshift
$ oc tag --source=docker registry.redhat.io/ubi7/ubi:latest ubi:latest -n openshift
Copy to Clipboard Copied! Toggle word wrap Toggle overflow To create an
ImageStreamTag
in a single project, enter:oc tag --source=docker registry.redhat.io/ubi7/ubi:latest ubi:latest
$ oc tag --source=docker registry.redhat.io/ubi7/ubi:latest ubi:latest
Copy to Clipboard Copied! Toggle word wrap Toggle overflow