mirror of
https://github.com/recklessop/zroc.git
synced 2026-07-02 21:13:15 -04:00
450f50ddf4
- Replace ubuntu-26.04 (unreleased) with ubuntu-24.04 LTS throughout - Add file provisioner to Packer HCL to copy overlays/ into VM before provisioning (fixes missing zroc-setup binary in 03-setup-wizard.sh) - Rebuild root docker-compose.yaml: full stack with env vars — Caddy, zroc-ui, Authentik (server + worker + postgres + redis), Prometheus, Grafana, Zerto exporter, Watchtower; no hardcoded credentials - Add caddy/Caddyfile to repo root for reverse proxy / TLS - Update 02-zroc.sh to pre-pull all service images during OVA build - Update GitHub Actions workflow to reference ubuntu-2404.pkr.hcl Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
39 lines
1.0 KiB
Bash
39 lines
1.0 KiB
Bash
#!/usr/bin/env bash
|
|
# zroc-ova/scripts/02-zroc.sh
|
|
set -euo pipefail
|
|
echo "==> [02-zroc] Setting up zROC installation"
|
|
|
|
INSTALL_DIR=/opt/zroc
|
|
ZROC_REPO="https://github.com/recklessop/zroc.git"
|
|
|
|
git clone --depth=1 "$ZROC_REPO" "$INSTALL_DIR"
|
|
|
|
# Ensure expected directories exist
|
|
mkdir -p \
|
|
"$INSTALL_DIR/certs" \
|
|
"$INSTALL_DIR/zvmexporter" \
|
|
"$INSTALL_DIR/data"
|
|
|
|
cd "$INSTALL_DIR"
|
|
|
|
# Pre-pull all container images into the OVA image layer so first-boot is fast.
|
|
# Failures are non-fatal — any missing images will be pulled on first docker compose up.
|
|
echo "==> [02-zroc] Pre-pulling container images (this may take a while)…"
|
|
docker compose pull \
|
|
caddy \
|
|
zroc-ui \
|
|
authentik-postgresql \
|
|
authentik-redis \
|
|
authentik-server \
|
|
authentik-worker \
|
|
zertoexporter \
|
|
zroc-prometheus \
|
|
grafana \
|
|
watchtower \
|
|
|| echo "[02-zroc] Warning: some images could not be pre-pulled — they will pull on first start"
|
|
|
|
chown -R zroc:zroc "$INSTALL_DIR"
|
|
|
|
echo "==> [02-zroc] Installation directory: $INSTALL_DIR"
|
|
echo "==> [02-zroc] Done"
|