From e90a2fe55383944165ba5dd6090f3ca2bd5b3f77 Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Fri, 20 Feb 2026 15:22:19 -0500 Subject: [PATCH 1/2] fix: add --no-sandbox to antigravity launch command Electron apps crash in Docker without --no-sandbox and --disable-dev-shm-usage, same as Chrome. VSCode handles this internally; Antigravity does not. Co-Authored-By: Claude Sonnet 4.6 --- chart/Chart.yaml | 2 +- scripts/startapp.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/chart/Chart.yaml b/chart/Chart.yaml index f2ae509..f9b50f6 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.7 +version: 0.1.8 appVersion: "latest" diff --git a/scripts/startapp.sh b/scripts/startapp.sh index 7a781d4..73d11f5 100644 --- a/scripts/startapp.sh +++ b/scripts/startapp.sh @@ -21,7 +21,8 @@ echo "Workspace: $WORKSPACE_DIR" case "$IDE" in antigravity) echo "Opening Google Antigravity in: $WORKSPACE_DIR" - exec antigravity --new-window --wait "$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" ;; none) echo "IDE=none: no IDE launched, keeping container alive." From e860499757f179f50299947dc797773c92490088 Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Fri, 20 Feb 2026 15:24:15 -0500 Subject: [PATCH 2/2] fix: mount memory-backed emptyDir at /dev/shm for Electron apps Instead of disabling shared memory usage, mount a proper tmpfs at /dev/shm so Antigravity (and Chrome) have real shared memory available. Removes --disable-dev-shm-usage; keeps --no-sandbox (separate issue). Co-Authored-By: Claude Sonnet 4.6 --- chart/Chart.yaml | 2 +- chart/templates/deployment.yaml | 6 ++++++ chart/values.yaml | 5 +++++ scripts/startapp.sh | 4 ++-- 4 files changed, 14 insertions(+), 3 deletions(-) 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."