instance_types

package
v0.0.0-...-33de393 Latest Latest
Warning

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

Go to latest
Published: May 9, 2021 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEV_NAME_PREFIX      = "skia-d-"
	INTERNAL_NAME_PREFIX = "skia-i-"

	USER_CHROME_BOT = gce.USER_CHROME_BOT

	DEBIAN_SOURCE_IMAGE_EXTERNAL = "skia-swarming-base-v2020-03-31-000"
	DEBIAN_SOURCE_IMAGE_INTERNAL = "skia-swarming-base-v2020-03-31-000"
	WIN_SOURCE_IMAGE             = "projects/windows-cloud/global/images/windows-server-2019-dc-v20200114"

	INSTANCE_TYPE_CT            = "ct"
	INSTANCE_TYPE_LINUX_SMALL   = "linux-small"
	INSTANCE_TYPE_LINUX_MEDIUM  = "linux-medium"
	INSTANCE_TYPE_LINUX_LARGE   = "linux-large"
	INSTANCE_TYPE_LINUX_GPU     = "linux-gpu"
	INSTANCE_TYPE_LINUX_AMD     = "linux-amd"
	INSTANCE_TYPE_LINUX_SKYLAKE = "linux-skylake"
	INSTANCE_TYPE_WIN_MEDIUM    = "win-medium"
	INSTANCE_TYPE_WIN_LARGE     = "win-large"
)

Variables

View Source
var (
	// "Constants"
	SETUP_SCRIPT_LINUX_PATH    = filepath.Join("go", "gce", "swarming", "setup-script-linux.sh")
	SETUP_SCRIPT_WIN_PATH      = filepath.Join("scripts", "win_setup.ps1")
	STARTUP_SCRIPT_WIN_PATH    = filepath.Join("scripts", "win_startup.ps1")
	CHROME_BOT_SCRIPT_WIN_PATH = filepath.Join("scripts", "chromebot-schtask.ps1")
)

Functions

func AddWinConfigs

func AddWinConfigs(vm *gce.Instance, startupScriptPath, chromebotScript, bootDiskType string) *gce.Instance

Configs for Windows GCE instances.

func Dev

func Dev(vm *gce.Instance) *gce.Instance

Dev instances.

func GetLinuxScripts

func GetLinuxScripts(ctx context.Context, checkoutRoot, workdir string) (string, error)

Returns the path to the setup script, given a local checkout.

func GetWindowsScripts

func GetWindowsScripts(ctx context.Context, checkoutRoot, workdir string) (string, string, string, error)

Returns the setup, startup, and chrome-bot scripts, given a local checkout. Writes the scripts into the given workdir.

func Internal

func Internal(vm *gce.Instance) *gce.Instance

Internal instances.

func LinuxAmd

func LinuxAmd(num int, setupScriptPath string) *gce.Instance

Linux GCE instances with AMD CPUs (skbug.com/10269).

func LinuxGpu

func LinuxGpu(num int, setupScriptPath string) *gce.Instance

Linux GCE instances with GPUs.

func LinuxLarge

func LinuxLarge(num int, setupScriptPath string) *gce.Instance

Large Linux GCE instances.

func LinuxMedium

func LinuxMedium(num int, setupScriptPath string) *gce.Instance

Medium Linux GCE instances.

func LinuxMicro

func LinuxMicro(num int, setupScriptPath string) *gce.Instance

Micro Linux GCE instances.

func LinuxSkylake

func LinuxSkylake(num int, setupScriptPath string) *gce.Instance

Linux GCE instances with Skylake CPUs.

func LinuxSmall

func LinuxSmall(num int, setupScriptPath string) *gce.Instance

Small Linux GCE instances.

func SkiaCT

func SkiaCT(num int, setupScriptPath string) *gce.Instance

Skia CT bots.

func Swarming20180406

func Swarming20180406(name string, machineType, serviceAccount, setupScriptPath, sourceImage string) *gce.Instance

Base configs for Swarming GCE instances.

func WinLarge

func WinLarge(num int, setupScriptPath, startupScriptPath, chromebotScript string) *gce.Instance

Large Windows GCE instances.

func WinMedium

func WinMedium(num int, setupScriptPath, startupScriptPath, chromebotScript string) *gce.Instance

Medium Windows GCE instances.

func WinSwarmingBot

func WinSwarmingBot(name, machineType, setupScriptPath, startupScriptPath, chromebotScript, bootDiskType string) *gce.Instance

Windows GCE instances.

Types

This section is empty.

Jump to

Keyboard shortcuts

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