mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
37 lines
957 B
Plaintext
37 lines
957 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * cli_reference/openshift_developer_cli/creating-a-single-component-application-with-odo.adoc
|
|
|
|
[id="adding-a-custom-builder-to-specify-a-build-image_{context}"]
|
|
= Adding a custom builder to specify a build image
|
|
|
|
{product-title} enables you to add a custom image to bridge the gap between the creation of custom images.
|
|
|
|
The following example demonstrates the successful import and use of the `redhat-openjdk-18` image:
|
|
|
|
.Prerequisites
|
|
* The OpenShift CLI (oc) is installed.
|
|
|
|
.Procedure
|
|
|
|
. Import the image into {product-title}:
|
|
+
|
|
----
|
|
$ oc import-image openjdk18 --from=registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift --confirm
|
|
----
|
|
. Tag the image to make it accessible to {odo-title}:
|
|
+
|
|
----
|
|
$ oc annotate istag/openjdk18:latest tags=builder
|
|
----
|
|
. Deploy it with {odo-title}:
|
|
+
|
|
----
|
|
$ odo create openjdk18 --git https://github.com/openshift-evangelists/Wild-West-Backend
|
|
----
|
|
|
|
|
|
|
|
|
|
|