Skip to content

Packer templates for building macOS images for Anka

Notifications You must be signed in to change notification settings

dquills/anka-packer-templates

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

anka-packer-templates

Hashicorp Packer templates for building Veertu Anka virtual machine images.

Requirements

  1. Install asdf for tool version management (Recommended)
  2. Install Veertu Anka Flow
    brew cask install anka-flow
    
  3. License Anka Flow
    sudo anka license activate <key>
    
  4. Install Packer (<= v1.4.5, See packer-builder-veertu-anka#16)
    asdf plugin-add packer && asdf install packer 1.4.5
    
  5. Install Packer Builder for Anka
  6. Ensure you have the macOS Catalina installer locally at /Applications/Install macOS Catalina.app
  7. To build the Xcode image, ensure $FASTLANE_USER and $FASTLANE_PASSWORD are set in your local dev environment. Fastlane uses Apple Developer credentials to fetch Xcode from developer.apple.com.
    export FASTLANE_USER=johnny@appleseed.com && export FASTLANE_PASSWORD=p@$$WorD
    

Notes

VPN software is known to interfere with VM interaction; please disable it before continuing.

Build

To run packer build commands, first cd to the packer/ directory in this repository.

  • All images are ultimately based on a vanilla image, which must be build first:

    ⚠️ Requires 30GB free disk space and takes ~30 minutes!
    packer build macos-vanilla-10.15.json
    
  • To build the general CI image (Uses Vanilla as base):

    ⚠️ Requires 30GB free disk space and takes ~15 minutes!
    packer build macos-ci-10.15.json
    
  • To build the Xcode image (Uses CI as base):

    ⚠️ Requires 40GB free disk space and takes ~45 minutes!
    packer build macos-xcode-10.15.json
    

About

Packer templates for building macOS images for Anka

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 74.6%
  • Puppet 25.4%