fix: Remove fake HAPPY_CODER_API_KEY, use actual Happy Coder env vars
Happy Coder does not require an API key. It uses these environment variables: - HAPPY_SERVER_URL (optional custom server) - HAPPY_WEBAPP_URL (optional custom webapp) - HAPPY_HOME_DIR (data directory) - HAPPY_EXPERIMENTAL (enable experimental features) Changes: - Remove HAPPY_CODER_API_KEY from all files - Add proper Happy Coder environment variables to StatefulSet - Add Happy Coder config options to ConfigMap - Update README with correct Happy Coder configuration - Update Makefile and docker-compose examples - Update secrets-example.yaml 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>
This commit is contained in:
@@ -25,8 +25,8 @@ run:
|
||||
-p 5800:5800 \
|
||||
-e GITHUB_REPO="${GITHUB_REPO}" \
|
||||
-e GITHUB_TOKEN="${GITHUB_TOKEN}" \
|
||||
-e HAPPY_CODER_API_KEY="${HAPPY_CODER_API_KEY}" \
|
||||
-e VNC_PASSWORD="${VNC_PASSWORD}" \
|
||||
-e HAPPY_EXPERIMENTAL="true" \
|
||||
-v $(PWD)/home:/home \
|
||||
-v $(PWD)/workspace:/workspace \
|
||||
--name antigravity \
|
||||
@@ -93,7 +93,6 @@ help:
|
||||
@echo "Environment Variables for 'make run':"
|
||||
@echo " GITHUB_REPO - GitHub repository URL"
|
||||
@echo " GITHUB_TOKEN - GitHub token (optional)"
|
||||
@echo " HAPPY_CODER_API_KEY - Happy Coder API key"
|
||||
@echo " VNC_PASSWORD - VNC password (optional)"
|
||||
@echo ""
|
||||
@echo "Example:"
|
||||
|
||||
@@ -49,7 +49,6 @@ Edit `k8s/secrets-example.yaml` and create a sealed secret:
|
||||
```bash
|
||||
kubectl create secret generic antigravity-secrets \
|
||||
--from-literal=github-token='ghp_your_token' \
|
||||
--from-literal=happy-coder-api-key='your_key' \
|
||||
--from-literal=vnc-password='your_password' \
|
||||
--dry-run=client -o yaml | \
|
||||
kubeseal --format=yaml > k8s/sealedsecrets.yaml
|
||||
@@ -89,13 +88,18 @@ Or configure HTTPRoute (Gateway API) for external access via your domain.
|
||||
|
||||
### Optional
|
||||
- `GITHUB_TOKEN` - GitHub Personal Access Token (for private repos)
|
||||
- `HAPPY_CODER_API_KEY` - API key for Happy Coder
|
||||
- `VNC_PASSWORD` - Password for VNC access
|
||||
- `USER_ID` - UID for claude user (default: 1000)
|
||||
- `GROUP_ID` - GID for claude user (default: 1000)
|
||||
- `DISPLAY_WIDTH` - VNC display width (default: 1920)
|
||||
- `DISPLAY_HEIGHT` - VNC display height (default: 1080)
|
||||
|
||||
### Happy Coder Configuration (Optional)
|
||||
- `HAPPY_SERVER_URL` - Custom Happy server URL (default: https://api.cluster-fluster.com)
|
||||
- `HAPPY_WEBAPP_URL` - Custom Happy webapp URL (default: https://app.happy.engineering)
|
||||
- `HAPPY_HOME_DIR` - Happy data directory (default: /home/claude/.happy)
|
||||
- `HAPPY_EXPERIMENTAL` - Enable experimental features (default: true in container)
|
||||
|
||||
## Architecture
|
||||
|
||||
```
|
||||
@@ -170,8 +174,8 @@ services:
|
||||
environment:
|
||||
- GITHUB_REPO=https://github.com/yourusername/yourrepo
|
||||
- GITHUB_TOKEN=ghp_your_token
|
||||
- HAPPY_CODER_API_KEY=your_key
|
||||
- VNC_PASSWORD=yourpassword
|
||||
- HAPPY_EXPERIMENTAL=true
|
||||
volumes:
|
||||
- ./home:/home
|
||||
- ./workspace:/workspace
|
||||
@@ -188,8 +192,8 @@ docker run -d \
|
||||
-p 5800:5800 \
|
||||
-e GITHUB_REPO="https://github.com/yourusername/yourrepo" \
|
||||
-e GITHUB_TOKEN="ghp_your_token" \
|
||||
-e HAPPY_CODER_API_KEY="your_key" \
|
||||
-e VNC_PASSWORD="yourpassword" \
|
||||
-e HAPPY_EXPERIMENTAL="true" \
|
||||
-v $(pwd)/home:/home \
|
||||
-v $(pwd)/workspace:/workspace \
|
||||
ghcr.io/cpfarhood/antigravity:latest
|
||||
|
||||
@@ -7,3 +7,7 @@ data:
|
||||
# GitHub repository to clone on startup
|
||||
# Example: "https://github.com/username/repository"
|
||||
github-repo: ""
|
||||
|
||||
# Happy Coder configuration (optional)
|
||||
# happy-server-url: "https://api.cluster-fluster.com"
|
||||
# happy-webapp-url: "https://app.happy.engineering"
|
||||
|
||||
@@ -14,7 +14,6 @@ resources:
|
||||
# - name: antigravity-secrets
|
||||
# literals:
|
||||
# - github-token=ghp_your_token
|
||||
# - happy-coder-api-key=your_key
|
||||
# - vnc-password=your_password
|
||||
|
||||
commonLabels:
|
||||
|
||||
@@ -11,8 +11,5 @@ stringData:
|
||||
# GitHub Personal Access Token (for private repos)
|
||||
github-token: "ghp_your_token_here"
|
||||
|
||||
# Happy Coder API Key
|
||||
happy-coder-api-key: "your_happy_coder_api_key"
|
||||
|
||||
# VNC Password (optional, for secure VNC access)
|
||||
vnc-password: "your_vnc_password"
|
||||
|
||||
+14
-4
@@ -77,13 +77,23 @@ spec:
|
||||
name: antigravity
|
||||
key: github-token
|
||||
optional: true
|
||||
# Happy Coder configuration
|
||||
- name: HAPPY_CODER_API_KEY
|
||||
# Happy Coder configuration (optional)
|
||||
- name: HAPPY_SERVER_URL
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
configMapKeyRef:
|
||||
name: antigravity
|
||||
key: happy-coder-api-key
|
||||
key: happy-server-url
|
||||
optional: true
|
||||
- name: HAPPY_WEBAPP_URL
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: antigravity
|
||||
key: happy-webapp-url
|
||||
optional: true
|
||||
- name: HAPPY_HOME_DIR
|
||||
value: "/home/claude/.happy"
|
||||
- name: HAPPY_EXPERIMENTAL
|
||||
value: "true"
|
||||
resources:
|
||||
requests:
|
||||
memory: "2Gi"
|
||||
|
||||
Reference in New Issue
Block a user