A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cloud.google.com/code/docs/vscode/image-build-settings below:

Explore your build options with buildpacks, Jib, or Docker | Cloud Code for VS Code

Explore your build options with buildpacks, Jib, or Docker

Stay organized with collections Save and categorize content based on your 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 run configuration.

In a project that doesn't contain a skaffold.yaml file at the root or doesn't reference skaffold.yaml you can use the Cloud Code UI to choose a builder and build environment.

Building locally is free of charge since it uses your own resources. Building with Cloud Build is good for slower machines or machines that don't match the processor architecture of the target cluster. For information about the cost of building your application using Cloud Build, see Cloud Build Pricing.

Specify how your images are built

Cloud Code supports Docker, Jib, and Buildpacks artifact types.

Without a skaffold.yaml

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

If you're using one of the Cloud Code sample applications, to use the UI, delete the skaffold.yaml file before running a build action. For steps to choose a builder and build environment without the UI, see Manually creating a Skaffold configuration.

  1. In a project without a skaffold.yaml file, open the command palette (press Ctrl/Cmd+Shift+P or click View > Command Palette) and then run Cloud Code: Run on Kubernetes or Cloud Code: Debug on Kubernetes.
  2. In the Build environment section, choose a build environment.
  3. In the Deploy settings section, if you chose Cloud Build, specify the image registry you want Cloud Build to push images to.
  4. In the Build settings section, specify a builder (Docker, Jib, or buildpacks) for each image and its settings.
  5. Select or clear any of the configuration options and then click Debug or Run.

The options you choose are saved to a skaffold.yaml file that you can edit directly for further customization.

With an existing skaffold.yaml

For a project with an existing

skaffold.yaml

file, you need to manually edit your build options. Cloud Code provides snippets for common YAML schema viewable by pressing

Command/Ctrl + Space

. See the the

Skaffold Build documentation

for more details.

Use Skaffold profiles in Cloud Code

Cloud Code uses the Skaffold tool under the hood to power Cloud Code's build functionality. To configure Cloud Code for different build or deploy environments such as local or remote builds,

Skaffold profiles

are used

Create a new skaffold profile

If you'd like to define build, test and deployment configurations for different contexts, you can have different Skaffold profiles.

The following sample shows a profile named

cloudbuild

used to to build images with Cloud Build:

profiles:
# use the cloudbuild profile to build images using Google Cloud Build
- name: cloudbuild
   build:
   googleCloudBuild: {}

If you have multiple profiles, add the profile you want to use to your

launch.json

file. For more information on Skaffold profiles, see the

Skaffold profiles documentation What's next

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-08-07 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["You can configure how container images are built when running or debugging applications on Kubernetes through the \"Develop on Kubernetes\" run configuration."],["Cloud Code supports various builders like Docker, Jib, and Buildpacks, and the selection can be made through the UI if a `skaffold.yaml` file is not present."],["Building locally uses your own resources and is free, while Cloud Build is suitable for slower machines or different processor architectures, and is cost-based."],["Skaffold profiles enable the configuration of different build or deployment environments and can be added to your `launch.json` file for multiple profile use."],["When importing or running an application without a `skaffold.yaml` file, you will be prompted to specify settings during initialization via the Cloud Code UI, and the settings will be saved to a `skaffold.yaml` file."]]],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4