Update Zot installation: clone to ~/code/3rd/ and build from source

Zot isn't in homebrew. Following existing pattern (like kiwix-tools),
clone to ~/code/3rd/zot on indri and build with 'make binary'.
Updated defaults and LaunchAgent template to use built binary path.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Erich Blume 2026-01-17 13:56:17 -08:00
commit f064ba3afa

View file

@ -152,6 +152,20 @@ tailscale status | grep registry
### Step 0.3: Create Zot Registry Ansible Role
**Note:** Zot is NOT in homebrew (no formula or tap). Clone to `~/code/3rd/` on indri and build from source (requires Go).
**Prerequisites on indri:**
```bash
# Ensure Go is installed (via mise or homebrew)
ssh indri 'go version'
# Clone zot repository
ssh indri 'git clone https://github.com/project-zot/zot.git ~/code/3rd/zot'
# Build (creates bin/zot-darwin-arm64)
ssh indri 'cd ~/code/3rd/zot && make binary'
```
**New files:**
```
ansible/roles/zot/
@ -165,7 +179,8 @@ ansible/roles/zot/
**Key configuration (defaults/main.yml):**
```yaml
zot_version: "2.1.0"
zot_repo_dir: "/Users/erichblume/code/3rd/zot"
zot_binary: "{{ zot_repo_dir }}/bin/zot-darwin-arm64"
zot_data_dir: "/Users/erichblume/zot"
zot_config_dir: "/Users/erichblume/.config/zot"
zot_port: 5000
@ -238,8 +253,8 @@ zot_sync_registries:
<string>mcquack.eblume.zot</string>
<key>ProgramArguments</key>
<array>
<!-- ABSOLUTE PATH - LaunchAgents don't have homebrew in PATH -->
<string>/opt/homebrew/bin/zot</string>
<!-- ABSOLUTE PATH to built binary in ~/code/3rd/zot -->
<string>{{ zot_binary }}</string>
<string>serve</string>
<string>{{ zot_config_dir }}/config.json</string>
</array>