cloudfunc

package module
v0.0.0-...-f662359 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2025 License: BSD-3-Clause Imports: 8 Imported by: 0

README

Submit the builder

gcloud --project=chromeos-audio-qv builds submit builders/archlinux-builder --tag gcr.io/chromeos-audio-qv/adhd-archlinux-builder

For kythe

gcloud --project=chromeos-audio-kythe builds submit builders/archlinux-builder --tag gcr.io/chromeos-audio-kythe/adhd-kzip-builder

Submit the scheduler

gcloud --project=chromeos-audio-qv builds submit . --tag gcr.io/chromeos-audio-qv/scheduler

Reset the VM

gcloud --project=chromeos-audio-qv compute instances reset instance-2

"Equivalent code" that used to create the VM instance:

gcloud compute instances create-with-container instance-2  \
    --project=chromeos-audio-qv \
    --zone=us-central1-a \
    --machine-type=e2-micro \
    --network-interface=network-tier=PREMIUM,subnet=default \
    --maintenance-policy=MIGRATE \
    --provisioning-model=STANDARD \
    --service-account=audio-qv@chromeos-audio-qv.iam.gserviceaccount.com \
    --scopes=https://www.googleapis.com/auth/cloud-platform \
    --image=projects/cos-cloud/global/images/cos-stable-101-17162-127-8 \
    --boot-disk-size=10GB \
    --boot-disk-type=pd-balanced \
    --boot-disk-device-name=instance-2 \
    --container-image=gcr.io/chromeos-audio-qv/scheduler \
    --container-restart-policy=never \
    --no-shielded-secure-boot \
    --shielded-vtpm \
    --shielded-integrity-monitoring \
    --labels=container-vm=cos-stable-101-17162-127-8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(ctx context.Context, event struct{}) error

Types

This section is empty.

Directories

Path Synopsis
cmd
copgen
Generate go/cros-cop compatible build configurations.
Generate go/cros-cop compatible build configurations.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL