microsoft/TypeAgent
Publicmirrored fromhttps://github.com/microsoft/TypeAgentAvailable
.devcontainer/vnc/devcontainer.json
102lines · modecode
| 1 | { |
| 2 | "name": "TypeAgent Development (VNC Desktop)", |
| 3 | |
| 4 | // Use this configuration when you need GUI support in Codespaces |
| 5 | // or environments without WSLg. Access via http://localhost:6080 |
| 6 | |
| 7 | // Multi-arch base image (linux/amd64 and linux/arm64). Note: the |
| 8 | // desktop-lite feature historically supports amd64 only, so on Apple |
| 9 | // Silicon this config may still require Rosetta/QEMU emulation just for |
| 10 | // the VNC desktop. The standard (non-VNC) config runs natively on arm64. |
| 11 | "build": { "dockerfile": "../Dockerfile" }, |
| 12 | |
| 13 | "features": { |
| 14 | // VNC desktop for Electron shell support |
| 15 | "ghcr.io/devcontainers/features/desktop-lite:1": { |
| 16 | "password": "typeagent", |
| 17 | "webPort": "6080", |
| 18 | "vncPort": "5901" |
| 19 | }, |
| 20 | "ghcr.io/anthropics/devcontainer-features/claude-code:1.0": {}, |
| 21 | "ghcr.io/devcontainers/features/sshd:1": { |
| 22 | "version": "latest" |
| 23 | }, |
| 24 | "ghcr.io/devcontainers/features/git-lfs:1": { |
| 25 | "autoPull": false |
| 26 | }, |
| 27 | "ghcr.io/devcontainers/features/node:1": { |
| 28 | "version": "22", |
| 29 | "nodeGypDependencies": true |
| 30 | }, |
| 31 | "ghcr.io/devcontainers/features/python:1": { |
| 32 | "version": "3.12", |
| 33 | "installTools": true |
| 34 | }, |
| 35 | "ghcr.io/devcontainers/features/dotnet:2": { |
| 36 | "version": "8.0" |
| 37 | }, |
| 38 | "ghcr.io/devcontainers/features/azure-cli:1": {}, |
| 39 | "ghcr.io/devcontainers/features/github-cli:1": {}, |
| 40 | "ghcr.io/devcontainers/features/common-utils:2": { |
| 41 | "installZsh": true, |
| 42 | "configureZshAsDefaultShell": true, |
| 43 | "installOhMyZsh": true, |
| 44 | "username": "codespace", |
| 45 | "userUid": "1001", |
| 46 | "userGid": "1001" |
| 47 | } |
| 48 | }, |
| 49 | |
| 50 | // Publish SSH port on loopback only so host-side `ssh typeagent-devcontainer` |
| 51 | // works without exposing 2222 on the LAN. See standard devcontainer.json for details. |
| 52 | "appPort": ["127.0.0.1:2222:2222"], |
| 53 | |
| 54 | "forwardPorts": [6080, 5901, 8999, 8081, 8082, 3000, 3443], |
| 55 | "portsAttributes": { |
| 56 | "6080": { "label": "noVNC Web Desktop", "onAutoForward": "openBrowser" }, |
| 57 | "5901": { "label": "VNC Client" }, |
| 58 | "8999": { "label": "Agent Server (WebSocket)", "onAutoForward": "notify" }, |
| 59 | "8081": { "label": "Browser Agent (WebSocket)", "onAutoForward": "notify" }, |
| 60 | "8082": { "label": "Code Agent (WebSocket)", "onAutoForward": "notify" }, |
| 61 | "3000": { "label": "API Server (HTTP)", "onAutoForward": "notify" }, |
| 62 | "3443": { "label": "API Server (HTTPS)", "onAutoForward": "notify" } |
| 63 | }, |
| 64 | |
| 65 | "mounts": [ |
| 66 | "source=pnpm-global-store,target=/home/codespace/.local/share/pnpm/store,type=volume", |
| 67 | "source=typeagent-node_modules-${devcontainerId},target=${containerWorkspaceFolder}/ts/node_modules,type=volume", |
| 68 | "source=typeagent-agent-worktrees-${devcontainerId},target=/workspaces/${localWorkspaceFolderBasename}.worktrees,type=volume", |
| 69 | "source=claude-code-config-${devcontainerId},target=/home/codespace/.claude,type=volume" |
| 70 | ], |
| 71 | |
| 72 | "containerEnv": { |
| 73 | "LOCAL_GIT_USER_NAME": "${localEnv:LOCAL_GIT_USER_NAME}", |
| 74 | "LOCAL_GIT_USER_EMAIL": "${localEnv:LOCAL_GIT_USER_EMAIL}" |
| 75 | }, |
| 76 | |
| 77 | "postCreateCommand": "bash .devcontainer/scripts/post-create.sh && bash .devcontainer/scripts/install-electron-deps.sh", |
| 78 | "postStartCommand": "bash .devcontainer/scripts/post-start.sh", |
| 79 | |
| 80 | "customizations": { |
| 81 | "vscode": { |
| 82 | "extensions": [ |
| 83 | "dbaeumer.vscode-eslint", |
| 84 | "esbenp.prettier-vscode", |
| 85 | "ms-python.python", |
| 86 | "ms-dotnettools.csharp", |
| 87 | "ms-azuretools.vscode-azurefunctions", |
| 88 | "github.copilot", |
| 89 | "humao.rest-client" |
| 90 | ] |
| 91 | } |
| 92 | }, |
| 93 | |
| 94 | "remoteUser": "codespace", |
| 95 | |
| 96 | // VNC requires more resources |
| 97 | "hostRequirements": { |
| 98 | "cpus": 4, |
| 99 | "memory": "16gb", |
| 100 | "storage": "32gb" |
| 101 | } |
| 102 | } |
| 103 | |