9535886945
Removes unreliable automatic Happy Coder daemon startup, allowing users to start it manually when needed for better reliability and control. **Changes:** - scripts/init-repo.sh: Removed Happy daemon startup code and lock cleanup - scripts/startapp.sh: Updated comment to reflect init-repo only handles git - README.md: Updated startup flow documentation and troubleshooting section - CLAUDE.md: Updated startup flow and file descriptions **Benefits:** - No more unreliable automatic daemon startup failures - Users can start Happy daemon manually when needed: `happy daemon start` - Cleaner container startup without Happy-related delays or errors - Happy configuration and credentials still persist on PVC when used **Usage:** Users can now manually start Happy Coder when needed: ```bash happy daemon start # Start when needed happy daemon status # Check status happy daemon stop # Stop if needed ``` Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
#!/bin/bash
|
|
# Start application script for baseimage-gui
|
|
set -e
|
|
|
|
echo "=== Starting Dev Container ==="
|
|
|
|
# Initialize repository
|
|
/usr/local/bin/init-repo
|
|
|
|
# Get workspace directory
|
|
if [ -f /tmp/workspace-dir ]; then
|
|
WORKSPACE_DIR=$(cat /tmp/workspace-dir)
|
|
else
|
|
WORKSPACE_DIR="/workspace/default"
|
|
fi
|
|
|
|
IDE="${IDE:-vscode}"
|
|
echo "IDE mode: $IDE"
|
|
echo "Workspace: $WORKSPACE_DIR"
|
|
|
|
case "$IDE" in
|
|
antigravity)
|
|
echo "Opening Google Antigravity in: $WORKSPACE_DIR"
|
|
# --no-sandbox is required for Electron apps in Docker (no kernel sandbox available).
|
|
# Explicit --user-data-dir and --extensions-dir pin config to the home PVC so
|
|
# settings and the setup wizard state survive pod restarts.
|
|
exec antigravity --no-sandbox \
|
|
--user-data-dir "$HOME/.config/antigravity" \
|
|
--extensions-dir "$HOME/.antigravity/extensions" \
|
|
--new-window --wait "$WORKSPACE_DIR"
|
|
;;
|
|
none)
|
|
echo "IDE=none: no IDE launched, keeping container alive."
|
|
exec sleep infinity
|
|
;;
|
|
*)
|
|
echo "Opening VSCode in: $WORKSPACE_DIR"
|
|
exec code --new-window --wait "$WORKSPACE_DIR"
|
|
;;
|
|
esac
|