Go to file
Fedor Korotkov 91c1ea27d7
No need for virtual audio devices
Tart now has it since https://github.com/cirruslabs/tart/pull/78
2022-05-16 12:50:51 -04:00
scripts Monterey images 2021-10-28 17:57:59 +02:00
templates No need for virtual audio devices 2022-05-16 12:50:51 -04:00
.gitignore install anka builder script 2018-04-16 13:58:47 -04:00
LICENSE Initial commit 2018-04-13 10:47:36 -04:00
README.md Clarify vanilla image 2022-05-10 14:54:26 -04:00

README.md

macOS Packer Templates for Cirrus CI

Repository with Packer templates to build VMs to use with Cirrus CI.

  • macos-monterey-vanilla image nothing pre-installed
  • macos-monterey-base image has only brew pre-installed
  • macos-monterey-xcode:N image is based of macos-monterey-base and has Xcode N with Flutter pre-installed

See a full list of VMs available on Cirrus CI here.

Building Vanilla Image

First, create a monterey-vanilla VM from the latest available IPSW with following command:

tart create --from-ipsw=latest --disk-size=25 monterey-vanilla

Start the VM and use UI to change some settings:

tart run monterey-vanilla
  1. Disable Lock Screen. Preferences -> Lock Screen -> disable "Require Password" after 5.
  2. Disable Screen Saver.
  3. Enable Auto-Login. Users & Groups -> Login Options -> Automatic login -> admin.
  4. Allow SSH. Sharing -> Remote Login
  5. Open Safari. Preferences -> Advanced -> Show Developer menu. Develop -> Allow Remote Automation.
  6. Run sudo visudo in Terminal, find %admin ALL=(ALL) ALL add admin ALL=(ALL) NOPASSWD: ALL to allow sudo without a password.

Shutdown macOS.

Building Base Image

packer build templates/base.pkr.hcl

Building Xcode Images

packer build -var xcode_version="13.3.1" templates/xcode.pkr.hcl