Skip to content

Commit b45cd06

Browse files
committed
Moved templates back to top level
1 parent 0363c11 commit b45cd06

7 files changed

+25
-17
lines changed

anka/README.md Anka.md

+4-16
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,13 @@
1-
# osx-images
2-
3-
Packer templates to build [macOS Anka images](https://veertu.com/anka-technology/) to use in CI:
4-
5-
* `catalina-base` image has only `brew` pre-installed
6-
* `catalina-xcode-12.2` image is based of `catalina-base` and has `Xcode 12.2` with [`Flutter`](https://flutter.dev/) pre-installed
7-
* `big-sur-base` image has only `brew` pre-installed
8-
* `big-sur-xcode-12.3` image is based of `big-sur-base` and has `Xcode 12.3` with [`Flutter`](https://flutter.dev/) pre-installed
9-
101
## Building Base Image
112

12-
First, convert a macOS installation in Anka format:
13-
14-
```bash
15-
anka create --ram-size 8G --cpu-count 2 --disk-size 80G --app /Applications/Install\ macOS\ Big\ Sur.app big-sur-vanilla
16-
```
3+
First, download macOS from App Store to have a `*.app` installation in `/Applications` folder.
174

185
Then run `./scripts/install-anka-builder.sh` to install Anka builder for Packer.
196

207
To build the base image (you need to have `/Applications/Install macOS Big Sur.app/` installed from App Store):
218

229
```bash
23-
packer build templates/big-sur-base.json
10+
packer build -only=anka templates/big-sur-base.json
2411
```
2512

2613
We also need to add a port forwarding rule so VMs based of `catalina-base` image can be SSHable:
@@ -35,7 +22,8 @@ To build an Xcode image (don't forget to setup `FASTLANE_USER` and `FASTLANE_PAS
3522
[xcode-install](https://github.com/KrauseFx/xcode-install#usage)):
3623

3724
```bash
38-
packer build -var xcode_version="12.3" \
25+
packer build -only=anka \
26+
-var xcode_version="12.3" \
3927
-var fastlane_user="$FASTLANE_USER" \
4028
-var fastlane_password="$FASTLANE_PASSWORD" \
4129
templates/big-sur-xcode.json

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# macOS Packer Templates for Cirrus CI
2+
3+
Repository with Packer templates to build VMs to use with [Cirrus CI](https://cirrus-ci.org/).
4+
5+
* `catalina-base` image has only `brew` pre-installed
6+
* `catalina-xcode-N` image is based of `catalina-base` and has `Xcode N` with [`Flutter`](https://flutter.dev/) pre-installed
7+
* `big-sur-base` image has only `brew` pre-installed
8+
* `big-sur-xcode-N` image is based of `big-sur-base` and has `Xcode N` with [`Flutter`](https://flutter.dev/) pre-installed
9+
10+
See a full list of VMs available on Cirrus CI [here](https://cirrus-ci.org/guide/macOS/#list-of-available-images).
11+
12+
# Supported Virtualization Technologies
13+
14+
## Anka
15+
16+
Please see [`Anka.md`](Anka.md) for details on how to build Anka VMs.
File renamed without changes.

anka/templates/big-sur-base.json templates/big-sur-base.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"builders": [
33
{
4+
"name": "anka",
45
"type": "veertu-anka",
56
"vm_name": "big-sur-base",
6-
"source_vm_name": "big-sur-vanilla",
7+
"installer_app": "/Applications/Install macOS Big Sur.app/",
78
"cpu_count": "2",
89
"enable_htt": true,
910
"ram_size": "8G",

anka/templates/big-sur-xcode.json templates/big-sur-xcode.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"builders": [
33
{
4+
"name": "anka",
45
"type": "veertu-anka",
56
"vm_name": "big-sur-xcode-{{user `xcode_version`}}",
67
"source_vm_name": "big-sur-base",

anka/templates/catalina-base.json templates/catalina-base.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"builders": [
33
{
4+
"name": "anka",
45
"type": "veertu-anka",
56
"vm_name": "catalina-base",
67
"installer_app": "/Applications/Install macOS Catalina.app/",

anka/templates/catalina-xcode.json templates/catalina-xcode.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"builders": [
33
{
4+
"name": "anka",
45
"type": "veertu-anka",
56
"vm_name": "catalina-xcode-{{user `xcode_version`}}",
67
"source_vm_name": "catalina-base",

0 commit comments

Comments
 (0)