crosvm/tools/impl/cros_container
Christian Blichmann c53b40e455 Fix typos found by common-typos checker
Change-Id: Ie539304c85d0dc54bc1e17892db8bbbfb15b69ef
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4417934
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Dennis Kempin <denniskempin@google.com>
2023-04-12 16:58:51 +00:00
..
cloudbuild.yaml tools: Promote cros container out of experimental project 2023-04-05 18:28:31 +00:00
Dockerfile tools: Promote cros container out of experimental project 2023-04-05 18:28:31 +00:00
entrypoint.sh cros_container: Remove incremental setup 2023-01-03 22:51:36 +00:00
README.md Fix typos found by common-typos checker 2023-04-12 16:58:51 +00:00

Experimental Setup on Minimal Container to Build crosvm in chromeOS Tree

This folder contains a setup to build a container that includes initialized cros_sdk and precompiled dependencies of crosvm to speed up process of develop and test crosvm in the chromeOS tree. Currently, we aim to produce a fresh cros_container every week (about 20GB in size).

Usage Instruction

This container need to be built with docker buildx for its support of insecure builder (equivalent to docker run --privileged but for build) which is required for cros_sdk due to its usage of multiple linux namespaces and chroot.

Individual commands from the cloudbuild.yaml files can be executed locally. Note you need permission to access crosvm's Google Cloud project to push the container into artifact registry. For people without access but plan to push the finished container to a container registry, please substitute gcr.io/crosvm-infra/crosvm_cros_cloudbuild with your own container name.

To use it in Cloud Build, run gcloud builds submit --config=cloudbuild.yaml in your command line with this folder as working directory.