In BuildConfig, which strategy uses a builder image to assemble application code?

Prepare for the Red Hat OpenShift Developer II DO288 Exam with our quizzes. Study with flashcards and multiple choice questions, each with hints and explanations. Get ready for your certification!

Multiple Choice

In BuildConfig, which strategy uses a builder image to assemble application code?

Explanation:
Source-to-Image builds rely on a builder image that contains the language runtime and the build tools. In this approach, OpenShift takes your source code, injects it into the builder image, and runs the image’s assemble script to create the final runnable image. This reuse of a dedicated builder image lets you tailor builds by simply swapping the builder for a different language or framework, without altering your source or build steps. In contrast, a Docker strategy builds from a Dockerfile, not from an external builder image executing an assemble process; a Binary strategy uses prebuilt artifacts without an assemble step; and a Git strategy pulls code from a repository and relies on the repository’s own build logic rather than a standardized builder image. So the builder-image–driven assembly is the hallmark of the Source-to-Image strategy.

Source-to-Image builds rely on a builder image that contains the language runtime and the build tools. In this approach, OpenShift takes your source code, injects it into the builder image, and runs the image’s assemble script to create the final runnable image. This reuse of a dedicated builder image lets you tailor builds by simply swapping the builder for a different language or framework, without altering your source or build steps. In contrast, a Docker strategy builds from a Dockerfile, not from an external builder image executing an assemble process; a Binary strategy uses prebuilt artifacts without an assemble step; and a Git strategy pulls code from a repository and relies on the repository’s own build logic rather than a standardized builder image. So the builder-image–driven assembly is the hallmark of the Source-to-Image strategy.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy