chore: add build-local.sh for manual node import via crictl
This commit is contained in:
20
build-local.sh
Executable file
20
build-local.sh
Executable 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."
|
||||
Reference in New Issue
Block a user