{"id":19325967,"url":"https://github.com/alephao/macos-packer-anka","last_synced_at":"2025-10-04T08:56:21.002Z","repository":{"id":87475955,"uuid":"247888361","full_name":"alephao/macos-packer-anka","owner":"alephao","description":"Packer templates for building macOS images with Anka","archived":false,"fork":false,"pushed_at":"2020-03-17T05:45:45.000Z","size":3,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-20T09:59:55.102Z","etag":null,"topics":["anka","ci","macos","packer"],"latest_commit_sha":null,"homepage":null,"language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alephao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-17T05:39:18.000Z","updated_at":"2022-09-09T10:39:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"839320a2-3c02-4263-b716-6dfaefbefee9","html_url":"https://github.com/alephao/macos-packer-anka","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alephao/macos-packer-anka","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alephao%2Fmacos-packer-anka","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alephao%2Fmacos-packer-anka/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alephao%2Fmacos-packer-anka/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alephao%2Fmacos-packer-anka/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alephao","download_url":"https://codeload.github.com/alephao/macos-packer-anka/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alephao%2Fmacos-packer-anka/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278289498,"owners_count":25962356,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anka","ci","macos","packer"],"created_at":"2024-11-10T02:12:03.812Z","updated_at":"2025-10-04T08:56:20.965Z","avatar_url":"https://github.com/alephao.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"## What's in this repo?\n\nThis repo contains the [Packer](packer.io) templates for building images for a macOS build environment.\n\nThis repo uses [Anka](https://veertu.com/anka-build-page/) to build the macOS images. For packer to work with anka, we need to install a the packer-anka plugin as well. Follow the installation instructions are below.\n\n## Getting started\n\nTo start building macOS images, first you need to install a few tools:\n\n1. Anka\n2. Packer v1.4.5 (anka plugin don't work in greater versions at the moment)\n3. Packer Builder for Veertu Anka\n\nClone this repo, cd to this folder and follow the instructions:\n\n**Install Packer**\n\nTo install packer 1.4.5, open terminal, cd to this foler and run the command below:\n\n```shell\nmake install-packer \n```\n\nVerify if the installation was successful by running `packer version`\n\n**Installing Anka**\n\nTo install Anka, open terminal, cd to this folder and run the command below:\n\n```shell\n# Note: it runs a sudo command so you might need to type your password\nmake install-anka\n```\n\nAfter installing anka, you'll need to activate your license and accept eula. [You can get a trial license here](https://veertu.com/anka-build-trial/).\n\nOnce you have your license, run:\n\n```shell\nsudo anka license activate \u003cyour license\u003e\nsudo anka license accept-eula\n```\n\n**Install Packer Builder for Veertu Anka**\n\nTo install packer builder for anka, open terminal, cd to this folder and run the command below:\n\n```shell\nmake install-packer-anka-plugin\n```\n\n**Download a macOS installer**\n\nTo create an image from scratch you need a macOS installer.\n\nYou can download catalina installer from the appstore [here](https://apps.apple.com/au/app/macos-catalina/id1466841314?mt=12). The installer will be dowloaded to the `/Applications` folder.\n\n\n## How to use\n\nNow that you have all the tools necessary, run packer commands to build the images.\n\nThere are a couple of template files inside the `templates/` directory.\n\n**01-ruby.json**\n\nThe `01-ruby.json` template creates an image containing homebrew, ruby and bundler. The versions are defined on `templates/variables.json`.\n\nThe first time you build this template, it will create a new image on anka called `catalina-base`. Then it will copy the `catalina-base` image and install the software defined inside this template.\n\nTo build this image run:\n\n```shell\npacker build -var-file templates/variables.json templates/01-ruby.json\n```\n\n**02-xcode.json**\n\nThe `02-xcode.json` template creates an image containing xcode-install and xcode. You need to provide an apple developer account without 2FA, the version of xcode installed is defined on `templates/variables.json`.\n\nIf you don't have an apple developer account without 2FA, just create one. If your e-mail provider accepts aliases, you can use your current apple id e-mail with an alias, for example, if your apple id is my_mail@example.com you can create a new account using my_email+no2fa@example.com, this way you don't need to create a new e-mail account.\n\nThis image depends on the image generated by the `01-ruby.json` template, so you'll need to build the ruby image before building this one.\n\nTo build this image run:\n\n```shell\npacker build -var-file templates/variables.json \\\n    -var XCODE_INSTALL_USER=\u003capple developer user\u003e \\\n    -var XCODE_INSTALL_PASSWORD=\u003capple developer password\u003e \\\n    templates/02-xcode.json\n```\n\n**complete.json**\n\nThe `complete.json` template will generate everything in one go.\n\n```\npacker build -var-file templates/variables.json \\\n    -var anka_license=\u003cyour license\u003e \\\n    -var XCODE_INSTALL_USER=\u003capple developer user\u003e \\\n    -var XCODE_INSTALL_PASSWORD=\u003capple developer password\u003e \\\n    templates/complete.json\n```\n\n## Contributing\n\nFeel free to open issues if you want to propose an enhancement or if you find a bug.\n\n## Attributions\n\nTook inspiration from\n\n* [travis-ci/packer-templates-mac](https://github.com/travis-ci/packer-templates-mac)\n* [Shopify Engineering: Scaling iOS CI with Anka](https://engineering.shopify.com/blogs/engineering/scaling-ios-ci-with-anka)\n* [MacStadium's Customers Stories](https://www.macstadium.com/company/customers)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falephao%2Fmacos-packer-anka","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falephao%2Fmacos-packer-anka","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falephao%2Fmacos-packer-anka/lists"}