Skip to content

Commit 56e4c9d

Browse files
committed
Add initial sdk-build-macos image Packer script
This commit adds the Packer script for building the sdk-build-macos Tart OCI image. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent 03d3c36 commit 56e4c9d

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

sdk-build-macos.pkr.hcl

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
packer {
2+
required_plugins {
3+
tart = {
4+
version = ">= 1.12.0"
5+
source = "github.com/cirruslabs/tart"
6+
}
7+
}
8+
}
9+
10+
source "tart-cli" "tart" {
11+
vm_base_name = "ghcr.io/cirruslabs/macos-sonoma-xcode:15.3"
12+
vm_name = "sdk-build-macos"
13+
cpu_count = 4
14+
memory_gb = 8
15+
disk_size_gb = 100
16+
headless = true
17+
ssh_password = "admin"
18+
ssh_username = "admin"
19+
ssh_timeout = "120s"
20+
}
21+
22+
build {
23+
sources = ["source.tart-cli.tart"]
24+
25+
# Update Homebrew packages
26+
provisioner "shell" {
27+
inline = [
28+
"source ~/.zprofile",
29+
"brew --version",
30+
"brew update",
31+
"brew upgrade",
32+
]
33+
}
34+
35+
# Install bash
36+
provisioner "shell" {
37+
inline = [
38+
"source ~/.zprofile",
39+
"brew install bash",
40+
]
41+
}
42+
43+
# Install base packages (equivalent to GitHub-hosted runners)
44+
provisioner "shell" {
45+
inline = [
46+
"source ~/.zprofile",
47+
"brew install cmake jq git-lfs gnu-tar gnupg wget xz",
48+
]
49+
}
50+
51+
# Install additional packages for SDK build
52+
provisioner "shell" {
53+
inline = [
54+
"source ~/.zprofile",
55+
"brew install awscli autoconf automake binutils boost ccache coreutils",
56+
"brew install dos2unix dtc gawk gnu-sed gperf help2man meson ncurses",
57+
"brew install ninja pkg-config [email protected] texinfo",
58+
]
59+
}
60+
}

0 commit comments

Comments
 (0)