Skip to content

Commit 7b721be

Browse files
authored
docs: Update packer build instructions with Sequoia instructions (#4086)
1 parent 380245d commit 7b721be

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

ansible/packer/README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ This repository contains two Packer configuration files used for building virtua
44

55
## Configuration Files
66

7-
1. Base Image Creation (`orka-base.pkr.hcl`): This file is used to create a base image for sonoma-arm64 VMs. It installs Homebrew, Ansible, and specific versions of Xcode.
7+
1. Base Image Creation (`orka-base.pkr.hcl`): This file is used to create a base image for sonoma and sequoia arm64 and intel VMs. It installs Homebrew, Ansible, and specific versions of Xcode (only on arm64).
88

9-
1. Adoptium Image Creation (`orka.pkr.hcl`): This configuration builds upon the base image to create an Adoptium Sonoma ARM64 and Intel image, with a full Ansible playbook run excluding certain tags.
9+
2. Adoptium Image Creation (`orka.pkr.hcl`): This configuration builds upon the base image to create an Adoptium Sonoma and Sequoia ARM64 and Intel images, with a full Ansible playbook run excluding certain tags.
1010

1111
## Prerequisites
1212

@@ -28,20 +28,24 @@ export XCode15_2_SAS_TOKEN="your-xcode15.2-token"
2828

2929
### Running the Packer Builds
3030

31+
Below are instructions to build adoptium orka macos images. We first build a base image, which has only xcode installed, and then we build upon this base image by building a final image, which includes the rest of the ansible playbook. At the end of the build the produced image is automatically pushed to our orka cluster.
32+
33+
Use `sonoma` or `sequoia` in place of `MACOS` and `intel` or `arm64` in place of `ARCH`. All commands must be run from the `ansible/packer` directory.
34+
3135
1. Building the Base image
3236

3337
```bash
34-
packer init .
35-
packer build orka-base.pkr.hcl
38+
packer init orka-base.pkr.hcl
39+
packer build --only=macstadium-orka.MACOS-ARCH orka-base.pkr.hcl
3640
```
3741

38-
This will create the base image for sonoma-arm64 and somoma-intel VMs. The base step has a pause which allows users to manually make any required changes and then resume the build.
42+
The base step has a pause which allows users to manually make any required changes and then resume the build.
3943

40-
1. Building the Adoptium image
44+
2. Building the Adoptium image
4145

4246
The Adoptium image depends on the base image. This generates the images that we use in Jenkins and contains the full set of dependencies.
4347

4448
```bash
45-
packer init .
46-
packer build orka.pkr.hcl
49+
packer init orka.pkr.hcl
50+
packer build --only=macstadium-orka.MACOS-ARCH orka.pkr.hcl
4751
```

0 commit comments

Comments
 (0)