Files
dickloads/build-local.sh

21 lines
512 B
Bash
Executable File

#!/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."