mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
- Add .devcontainer configuration with Chrome dependencies - Create post-create script to install Chrome and required libraries - Update BrowserSession.ts with sandbox flags for container environments - Update UrlContentFetcher.ts with container-specific Chrome flags - Add documentation for Codespaces setup This fixes the issue where the browser tool would fail in GitHub Codespaces due to missing Chrome/Chromium dependencies like libatk-1.0.so.0. Fixes #7990
64 lines
1.7 KiB
JSON
64 lines
1.7 KiB
JSON
{
|
|
"name": "Roo Code Development",
|
|
"image": "mcr.microsoft.com/devcontainers/typescript-node:20",
|
|
"features": {
|
|
"ghcr.io/devcontainers/features/common-utils:2": {
|
|
"installZsh": true,
|
|
"configureZshAsDefaultShell": true,
|
|
"installOhMyZsh": true,
|
|
"upgradePackages": true,
|
|
"username": "automatic",
|
|
"userUid": "automatic",
|
|
"userGid": "automatic"
|
|
},
|
|
"ghcr.io/devcontainers/features/git:1": {
|
|
"version": "latest",
|
|
"ppa": false
|
|
},
|
|
"ghcr.io/devcontainers/features/github-cli:1": {
|
|
"installDirectlyFromGitHubRelease": true,
|
|
"version": "latest"
|
|
}
|
|
},
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"dbaeumer.vscode-eslint",
|
|
"esbenp.prettier-vscode",
|
|
"ms-vscode.vscode-typescript-next",
|
|
"vitest.explorer",
|
|
"zixuanchen.vitest-explorer"
|
|
],
|
|
"settings": {
|
|
"terminal.integrated.defaultProfile.linux": "zsh",
|
|
"editor.formatOnSave": true,
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
"editor.codeActionsOnSave": {
|
|
"source.fixAll.eslint": "explicit"
|
|
},
|
|
"typescript.updateImportsOnFileMove.enabled": "always",
|
|
"typescript.preferences.includePackageJsonAutoImports": "auto"
|
|
}
|
|
}
|
|
},
|
|
"postCreateCommand": "bash .devcontainer/post-create.sh",
|
|
"postStartCommand": "pnpm install",
|
|
"remoteUser": "node",
|
|
"mounts": [],
|
|
"runArgs": ["--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"],
|
|
"containerEnv": {
|
|
"PUPPETEER_SKIP_CHROMIUM_DOWNLOAD": "false",
|
|
"PUPPETEER_EXECUTABLE_PATH": "/usr/bin/google-chrome-stable"
|
|
},
|
|
"portsAttributes": {
|
|
"3000": {
|
|
"label": "Web App",
|
|
"onAutoForward": "notify"
|
|
},
|
|
"5173": {
|
|
"label": "Vite Dev Server",
|
|
"onAutoForward": "notify"
|
|
}
|
|
},
|
|
"forwardPorts": [3000, 5173]
|
|
}
|