|
|
||
|---|---|---|
| scripts | ||
| templates | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
README.md
osx-images
Packer templates to build macOS Anka images to use in CI:
mojave-baseimage has onlybrewpre-installedmojave-xcode-10.1image is based ofmojave-baseand has onlyXcode 10.1pre-installedmojave-xcode-10.2image is based ofmojave-baseand has onlyXcode 10.2pre-installedmojave-xcode-11.1image is based ofmojave-baseand has onlyXcode 11.1pre-installedmojave-flutterimage is based ofmojave-xcode-11.1and has onlyFlutterpre-installed
Building Base Image
First, run ./scripts/install-anka-builder.sh to install Anka builder for Packer.
To build the base image (you need to have /Applications/Install macOS High Sierra.app/ installed from App Store):
packer build templates/mojave-base.json
We also need to add a port forwarding rule so VMs based of mojave-base image can be SSHable:
anka modify mojave-base add port-forwarding --host-port 0 --guest-port 22 --protocol tcp ssh
Building Xcode Images
To build an Xcode image (don't forget to setup FASTLANE_USER and FASTLANE_PASSWORD since they are required by
xcode-install):
packer build -var xcode_version="10.3" templates/mojave-xcode.json