Repository navigation
Conversation
… checks in BuildImage - Add CreateImageOpts (DestProject and Labels) to GceHelper.CreateImage and wait on the destination project's global operation. - Add GetImage helper to GceHelper. - Add DestImageProject and Labels fields to BuildImageOpts. - Centralize pre-flight source and destination ImageExists checks in GceHelper.BuildImage so all image-building commands fail fast before creating builder instances or disks.
Add cmd/gce_resize_image to create a resized copy of a GCE image (defaulting to 160GB and <source-image>--<size-gb>gb) using GceHelper while preserving source image labels.
…e creation in gce_install_cuttlefish_packages Replicate the release host image creation workflow inside gce_install_cuttlefish_packages in a single builder VM pass without requiring a second builder VM pass: - Add -debs-dir to auto-discover the 6 required Cuttlefish Debian packages (cuttlefish-base, cuttlefish-defaults, cuttlefish-integration, cuttlefish-metrics, cuttlefish-user, cuttlefish-orchestration), failing fast if any package is missing or duplicated, and rejecting simultaneous -debs-dir and -deb flags. - Add -use-gce-metadata (defaulting to true) to uncomment build_api_credentials_use_gce_metadata=true in-place in /etc/default/cuttlefish-host_orchestrator installed by the cuttlefish-orchestration package, plus optional -cuttlefish-ho-defaults-src to override that config from a local file using install -m 0644 -o root -g root. - Add -dest-image-project and attach the base_image=<source-image> label to the output GCE image. - Auto-generate cuttlefish-image-<YYYYMMDDHHMMSS>--cvd<major>-<minor> from the cuttlefish-base .deb filename when -image-name is omitted.
rmuthiah
force-pushed
the
baseimage-final-image-workflow
branch
from
October 31, 2026 02:49
631a0c7 to
068e2d8
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #3486 (part 3 of 3).
Replicate the release host image creation workflow inside
gce_install_cuttlefish_packagesin a single builder VM pass without requiring a second builder VM pass:-debs-dirto auto-discover the 6 required Cuttlefish Debian packages (cuttlefish-base,cuttlefish-defaults,cuttlefish-integration,cuttlefish-metrics,cuttlefish-user,cuttlefish-orchestration), failing fast if any package is missing or duplicated, and rejecting simultaneous-debs-dirand-debflags.-use-gce-metadata(defaulting totrue) to uncommentbuild_api_credentials_use_gce_metadata=truein-place in/etc/default/cuttlefish-host_orchestratorinstalled bycuttlefish-orchestration, plus optional-cuttlefish-ho-defaults-srcto override that config from a local file usinginstall -m 0644 -o root -g root.-dest-image-projectand attach thebase_image=<source-image>label to the output GCE image.cuttlefish-image-<YYYYMMDDHHMMSS>--cvd<major>-<minor>from thecuttlefish-base.debfilename when-image-nameis omitted.