At a high level, the OpenShift build process transforms source code into a container image deployable across your front-end, middleware, and back-end. This process is analogous to executing a Dockerfile with the “docker build” command but is fully integrated within the OpenShift environment through a BuildConfig. A BuildConfig defines the step-by-step instructions required to convert your application’s source code—often hosted on a Git repository—into a container image. Typically, BuildConfigs are generated automatically based on predefined build strategies, which means manual creation is rarely necessary.Documentation Index
Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
Use this file to discover all available pages before exploring further.
A BuildConfig streamlines your CI/CD pipeline by integrating source control, automated builds, and deployment into one seamless workflow.
- Source Definition: Points to the Git repository containing the source code.
- Build Strategy: Utilizes a specified base image from an ImageStreamTag.
- Output Configuration: Determines where the newly created container image is stored.
- Triggers: Automatically initiates builds when code changes are detected, using GitHub, Generic, or ImageChange events.
- Post-Commit Actions: Executes a test script after the build completes to ensure application integrity.
Ensure that your repository URIs and secret tokens are correctly configured to maintain the security and integrity of your builds.