Files
agent0/start.sh
T

33 lines
1.0 KiB
Bash
Raw Normal View History

2026-04-14 21:24:40 +02:00
#!/usr/bin/env bash
# start.sh — start Agent0 and the glitch-tunnel.
#
# Run this every time (after reboots, etc.).
# Run bootstrap.sh once first to set everything up.
set -euo pipefail
REPO_DIR="$(cd "$(dirname "$0")" && pwd)"
OS="$(uname -s)"
GREEN='\033[0;32m'; YELLOW='\033[1;33m'; NC='\033[0m'
info() { echo -e "${GREEN}${NC} $*"; }
warn() { echo -e "${YELLOW}!${NC} $*"; }
cd "$REPO_DIR"
# ── Sanity check ──────────────────────────────────────────────────────────────
if [[ ! -f "${REPO_DIR}/.env" ]]; then
echo "No .env found. Run bootstrap.sh first."
exit 1
fi
# ── Docker containers ─────────────────────────────────────────────────────────
2026-04-18 16:09:47 +02:00
info "Starting agents and glitch-tunnel..."
docker compose up -d
2026-04-14 21:24:40 +02:00
echo ""
docker compose ps
echo ""
2026-04-18 16:09:47 +02:00
info "Agents are up. Open https://agent0.glitch.university"