chore: add build-local.sh for manual node import via crictl

This commit is contained in:
Falkan
2026-03-19 02:09:13 -04:00
parent 1e7331d4fc
commit 8d2b838d84

20
build-local.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/env bash
# build-local.sh — import humor-units image on the local node via crictl
# Run this directly on each cluster node after copying humor-units.tar to /tmp/
# Usage: sudo ./build-local.sh
set -euo pipefail
ARCHIVE="${1:-/tmp/humor-units.tar}"
if [[ ! -f "$ARCHIVE" ]]; then
echo "Error: $ARCHIVE not found. Copy the tar first." >&2
exit 1
fi
echo "==> Importing $ARCHIVE via crictl..."
crictl image import "$ARCHIVE"
echo "==> Verifying..."
crictl images | grep humor
echo "==> Done."