Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,17 @@ Follow the guidelines below based on your language:

You can configure the environment variables necessary to build the component using the **Build Configurations Editor** on the component **Build** page.

For Buildpack components:
During the build process, the build-time environment variables and their values are passed to the build preset. Therefore, you can configure both build preset-specific environment variables and those required for the component build.

For example, if you want to override the Maven command of the **Java** build presets, you can use `GOOGLE_MAVEN_BUILD_ARGS` as the environment key and `clean install` as the value.
Comment thread
YashodhaSamarawickrama marked this conversation as resolved.
For example, if you want to override the Maven command of the **Java** build presets, you can use `GOOGLE_MAVEN_BUILD_ARGS` as the environment key and `clean install` as the value.

For more examples, see [Google Cloud's buildpacks documentation](https://cloud.google.com/docs/buildpacks/service-specific-configs).
Comment thread
YashodhaSamarawickrama marked this conversation as resolved.
For more examples, see [Google Cloud's buildpacks documentation](https://cloud.google.com/docs/buildpacks/service-specific-configs)..

For BYOC (Bring Your Own Container) components:
You can configure build-time environment variables that are passed as build arguments (ARG) during the Docker image build process. These variables are available during the build stage of your Dockerfile and can be used to customize the build behavior.

For example, you can set environment variables to configure build-specific settings such as build modes, feature flags, or dependency options that your Dockerfile references via ARG directives.

### Customize the Default Run Command

Expand Down