From 8d2b838d843531dc6512317fefd57118161414f6 Mon Sep 17 00:00:00 2001 From: Falkan Date: Thu, 19 Mar 2026 02:09:13 -0400 Subject: [PATCH] chore: add build-local.sh for manual node import via crictl --- build-local.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 build-local.sh diff --git a/build-local.sh b/build-local.sh new file mode 100755 index 0000000..6e3e995 --- /dev/null +++ b/build-local.sh @@ -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."