Configuring container image build preferences

To run or debug an application on Kubernetes, you'll need to set your preference for how your container image is built, by configuring it in the Develop on Kubernetes and Run on Kubernetes run configurations.

Specifying how your images are built

Once you set your container image, you can configure its build settings. Cloud Code supports Docker, Jib, and Buildpacks artifact types.

Navigate to the Run/Debug configurations dialog on the top taskbar or the top-level main menu: Run > Edit Configurations... > Develop on Kubernetes or Run on Kubernetes and choose the Build/Deploy tab.

Without skaffold.yaml

When importing an existing application without a skaffold.yaml file or running an application that doesn't have a skaffold.yaml, you'll be prompted to specify settings when initializing.

'Initialize' button in Build/Deploy tab

To edit the builder for an image, follow these steps:

  1. Click on the 'Initialize' button.
  2. Select the image name and click on the edit pencil icon Edit pencil icon.
  3. Once you specify builder and its settings, they'll be stored in your Skaffold configuration as your default build preference.
  4. Click 'Initialize' to return to your Run Configuration dialog with your new settings.

    Specify build settings to be used in your Skaffold configuration

With an existing skaffold.yaml

In the 'Build/Deploy' tab of your Run configuration settings, you can configure the build settings for your default profile.

You can also view the image name, builder, and builder arguments for all your existing images.

Build settings displayed in Build/Deploy tab.