makemac

command
v0.0.0-...-16694d9 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: BSD-3-Clause Imports: 19 Imported by: 0

README

Go Reference

golang.org/x/build/cmd/makemac

The makemac command manages creating & destroying macOS VMs for the builders. See the README in x/build/env/darwin/macstadium for some more background.

Deploying makemac

* On Linux,
  $ go install golang.org/x/build/cmd/makemac
  $ scp -i ~/.ssh/id_ed25519_golang1 $GOPATH/bin/makemac gopher@macstadiumd.golang.org:makemac.new
  $ ssh -i ~/.ssh/id_ed25519_golang1 gopher@macstadiumd.golang.org 'cp makemac makemac.old; install makemac.new makemac'
  $ ssh -i ~/.ssh/id_ed25519_golang1 gopher@macstadiumd.golang.org

On that host,
  * sudo systemctl restart makemac
  $ sudo journalctl -f -u makemac     # watch it

Updating makemac.service

* On Linux,
  $ scp -i ~/.ssh/id_ed25519_golang1 cmd/makemac/makemac.service gopher@macstadiumd.golang.org:makemac.service

On that host,
  $ sudo mv makemac.service /etc/systemd/system/makemac.service
  $ sudo systemctl daemon-reload
  $ sudo systemctl restart makemac
  $ sudo journalctl -f -u makemac     # watch it

Checking that it's running:

$ curl -v http://macstadiumd.golang.org:8713

(Note that URL won't work in a browser due to HSTS requirements on *.golang.org)

Documentation

Overview

The makemac command starts OS X VMs for the builders. It is currently just a thin wrapper around govc.

See https://github.com/vmware/govmomi/tree/master/govc

Usage:

$ makemac <osx_minor_version>  # e.g, 8, 9, 10, 11, 12

Jump to

Keyboard shortcuts

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