Which command configures the build config phpbuild to trigger whenever the base image newapp/php:1 changes?

Prepare for the Red Hat Openshift Developer EX288 Exam. Study with comprehensive quizzes and flashcards. Each question includes hints and explanations to enhance your understanding. Ace your exam with confidence!

Multiple Choice

Which command configures the build config phpbuild to trigger whenever the base image newapp/php:1 changes?

Explanation:
OpenShift builds can automatically start when the image they rely on changes. This is done by configuring an ImageChange trigger on the BuildConfig, specifying which image stream and tag to watch. The correct command targets the BuildConfig by name and attaches a trigger that watches the image newapp/php:1. When that image tag updates (a new image is pushed for that tag), a new build for phpbuild will be triggered automatically. The other options would either watch a different tag (which wouldn’t respond to changes to tag 1) or use a variant of the command that doesn’t apply the same trigger in this context.

OpenShift builds can automatically start when the image they rely on changes. This is done by configuring an ImageChange trigger on the BuildConfig, specifying which image stream and tag to watch. The correct command targets the BuildConfig by name and attaches a trigger that watches the image newapp/php:1. When that image tag updates (a new image is pushed for that tag), a new build for phpbuild will be triggered automatically. The other options would either watch a different tag (which wouldn’t respond to changes to tag 1) or use a variant of the command that doesn’t apply the same trigger in this context.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy