Add workspace config: docker build files, agent identity, user config, gitignore

This commit is contained in:
Klaatu
2026-02-20 18:39:22 +00:00
parent fdbac8136d
commit 8d30148e77
16 changed files with 446 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
#!/bin/bash
# healthcheck.sh - Quick container health check for OpenClaw gateway
# Usage: healthcheck [--wait]
set -e
WAIT_MODE=false
if [ "$1" == "--wait" ]; then
WAIT_MODE=true
fi
check_health() {
if curl -sf http://localhost:8080/health > /dev/null 2>&1; then
echo "✓ Gateway healthy"
return 0
else
return 1
fi
}
if [ "$WAIT_MODE" = true ]; then
echo "Waiting for gateway to be healthy..."
until check_health; do
sleep 1
done
else
if check_health; then
exit 0
else
echo "✗ Gateway not responding"
exit 1
fi
fi

24
docker/tools/setup-gog.sh Executable file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
# setup-gog.sh - Initialize gog with credentials from volume
# Run this after container starts and secrets are mounted
set -e
CREDS_FILE="/data/secrets/google-client-secret.json"
if [ ! -f "$CREDS_FILE" ]; then
echo "ERROR: Google client secret not found at $CREDS_FILE"
echo "Mount your secrets JSON to /data/secrets/google-client-secret.json"
exit 1
fi
echo "Setting up gog with credentials..."
gog auth credentials "$CREDS_FILE"
echo ""
echo "Available gog accounts:"
gog auth list 2>/dev/null || echo "No accounts configured yet."
echo ""
echo "To add an account, run:"
echo " gog auth add you@gmail.com --services gmail,calendar,drive"