diff --git a/chart/Chart.yaml b/chart/Chart.yaml index f9b50f6..73ff2b0 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: devcontainer description: Antigravity Dev Container with Happy Coder AI assistant type: application -version: 0.1.8 +version: 0.1.9 appVersion: "latest" diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml index 0afd5a4..20b8cb4 100644 --- a/chart/templates/deployment.yaml +++ b/chart/templates/deployment.yaml @@ -71,6 +71,8 @@ spec: mountPath: /home - name: workspace mountPath: /workspace + - name: shm + mountPath: /dev/shm {{- if ne (.Values.ide | default "vscode") "none" }} livenessProbe: httpGet: @@ -99,6 +101,10 @@ spec: volumes: - name: workspace emptyDir: {} + - name: shm + emptyDir: + medium: Memory + sizeLimit: {{ .Values.shm.sizeLimit }} - name: userhome persistentVolumeClaim: claimName: {{ include "antigravity.pvcName" . }} diff --git a/chart/values.yaml b/chart/values.yaml index 680d068..d5aefa6 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -41,6 +41,11 @@ storage: size: 32Gi className: ceph-filesystem +# Shared memory size — mounted at /dev/shm as a memory-backed emptyDir. +# Electron apps (Antigravity, Chrome) use /dev/shm for GPU/IPC buffers. +shm: + sizeLimit: 2Gi + resources: requests: memory: "2Gi" diff --git a/scripts/startapp.sh b/scripts/startapp.sh index 73d11f5..7a5a887 100644 --- a/scripts/startapp.sh +++ b/scripts/startapp.sh @@ -21,8 +21,8 @@ echo "Workspace: $WORKSPACE_DIR" case "$IDE" in antigravity) echo "Opening Google Antigravity in: $WORKSPACE_DIR" - # --no-sandbox and --disable-dev-shm-usage are required for Electron apps in Docker - exec antigravity --no-sandbox --disable-dev-shm-usage --new-window --wait "$WORKSPACE_DIR" + # --no-sandbox is required for Electron apps in Docker (no kernel sandbox available) + exec antigravity --no-sandbox --new-window --wait "$WORKSPACE_DIR" ;; none) echo "IDE=none: no IDE launched, keeping container alive."