From c1f77ba8f5eae6e07d7368c12ee30d1352d3e3e4 Mon Sep 17 00:00:00 2001 From: Joan Edwards Date: Wed, 11 Sep 2024 05:04:06 -0400 Subject: [PATCH] Updated content RHDEVDOCS-6207 Some minor updates --- installing/installing-openshift-builds.adoc | 2 ++ ...d-in-a-network-restricted-environment.adoc | 26 +++++++++++++++++++ ...d-in-a-network-restricted-environment.adoc | 26 +++++++++++++++++++ work_with_builds/using-builds.adoc | 7 ++++- 4 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 modules/ob-creating-buildah-build-in-a-network-restricted-environment.adoc create mode 100644 modules/ob-creating-s2i-build-in-a-network-restricted-environment.adoc diff --git a/installing/installing-openshift-builds.adoc b/installing/installing-openshift-builds.adoc index 171048d18b45..8e68879024e2 100644 --- a/installing/installing-openshift-builds.adoc +++ b/installing/installing-openshift-builds.adoc @@ -32,3 +32,5 @@ include::modules/ob-installing-builds-using-cli.adoc[leveloffset=+1] == Additional resources * link:https://docs.openshift.com/container-platform/latest/operators/admin/olm-adding-operators-to-cluster.html#olm-adding-operators-to-a-cluster[Adding Operators to a cluster] + + diff --git a/modules/ob-creating-buildah-build-in-a-network-restricted-environment.adoc b/modules/ob-creating-buildah-build-in-a-network-restricted-environment.adoc new file mode 100644 index 000000000000..b546f72cfc37 --- /dev/null +++ b/modules/ob-creating-buildah-build-in-a-network-restricted-environment.adoc @@ -0,0 +1,26 @@ +// Module included in the following assemblies: +// +//* builds/work-with-builds.adoc + +:_mod-docs-content-type: PROCEDURE +[id='ob-creating-buildah-build-in-a-network-restricted-environment_{context}'] += Creating buildah build in a network restricted environment + +You can create a `buildah` build in a network restricted environment by mirroring the images required by the `buildah` build strategy. + +.Prerequisites + +* Your cluster can connect and interact with the git source that you can use to create the buildah build. + +.Procedure + +. Run the following command to mirror the images required by the `buildah` build strategy: ++ +[source,terminal] +---- +$ oc image mirror --insecure -a registry.redhat.io/ubi8/buildah@sha256:1c89cc3cab0ac0fc7387c1fe5e63443468219aab6fd531c8dad6d22fd999819e //ubi8_buildah +---- ++ + +. Perform the steps mentioned in the "Creating a buildah build" section. + diff --git a/modules/ob-creating-s2i-build-in-a-network-restricted-environment.adoc b/modules/ob-creating-s2i-build-in-a-network-restricted-environment.adoc new file mode 100644 index 000000000000..6e2f1df57c8f --- /dev/null +++ b/modules/ob-creating-s2i-build-in-a-network-restricted-environment.adoc @@ -0,0 +1,26 @@ +// Module included in the following assemblies: +// +// * builds/work-with-builds.adoc + +:_mod-docs-content-type: PROCEDURE +[id='ob-creating-source-to-image-build-in-a-network-restricted-environment_{context}'] += Creating source-to-image build in a network restricted environment + +You can create a `source-to-image` build in a network restricted environment by mirroring the images required by the `source-to-image` build strategy. + +.Prerequisites + +* Your cluster can connect and interact with the git source that you can use to create the source-to-image build. +* You have the builder-image required to create the `source-to-image` build in your local registry. If you do not have the builder-image in the local registry, mirror the source image. + +.Procedure + +. Run the following command to mirror the images required by the `source-to-image` build strategy: ++ +[source,terminal] +---- +$ oc image mirror --insecure -a registry.redhat.io/source-to-image/source-to-image-rhel8@sha256:d041c1bbe503d152d0759598f79802e257816d674b342670ef61c6f9e6d401c5 //source-to-image-source-to-image-rhel8 +---- ++ + +. Perform the steps mentioned in the "Creating a source-to-image build" section. \ No newline at end of file diff --git a/work_with_builds/using-builds.adoc b/work_with_builds/using-builds.adoc index 9c30beab3147..1901ccf0efa6 100644 --- a/work_with_builds/using-builds.adoc +++ b/work_with_builds/using-builds.adoc @@ -12,8 +12,12 @@ After installing {builds-shortname}, you can create a `buildah` or `source-to-im include::modules/ob-creating-a-buildah-build.adoc[leveloffset=+1] +include::modules/ob-creating-buildah-build-in-a-network-restricted-environment.adoc[leveloffset=+2] + include::modules/ob-creating-a-s2i-build.adoc[leveloffset=+1] +include::modules/ob-creating-s2i-build-in-a-network-restricted-environment.adoc[leveloffset=+2] + include::modules/ob-viewing-logs.adoc[leveloffset=+1] include::modules/ob-deleting-a-resource.adoc[leveloffset=+1] @@ -25,4 +29,5 @@ include::modules/ob-deleting-a-resource.adoc[leveloffset=+1] == Additional resources * xref:../authenticating/understanding-authentication-at-runtime.adoc#ob-authentication-to-container-registries_understanding-authentication-at-runtime[Authentication to container registries] -* xref:../installing/installing-openshift-builds.adoc#creating-a-shipwright-build-resource-console_installing-openshift-builds[Creating a ShipwrightBuild resource by using the web console] \ No newline at end of file +* xref:../installing/installing-openshift-builds.adoc#creating-a-shipwright-build-resource-console_installing-openshift-builds[Creating a ShipwrightBuild resource by using the web console] +* xref:https://docs.openshift.com/container-platform/4.17/disconnected/mirroring/installing-mirroring-installation-images.html[Mirroring images for a disconnected installation by using the oc adm command]