chore(scripts): add compose, k3s, backup, and media helpers
Automate image load, Helm install, database backup, and sample video regeneration.
This commit is contained in:
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
# Build compose images and import them into local k3s containerd.
|
||||
set -euo pipefail
|
||||
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
cd "$ROOT"
|
||||
|
||||
if ! command -v k3s >/dev/null 2>&1; then
|
||||
echo "k3s not found. Install: https://docs.k3s.io/quick-start" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
./scripts/compose-dev.sh build backend frontend
|
||||
|
||||
echo "Importing images into k3s..."
|
||||
docker save pargar-backend:local pargar-frontend:local | sudo k3s ctr images import -
|
||||
echo "Done. Images: pargar-backend:local pargar-frontend:local"
|
||||
Reference in New Issue
Block a user