-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Johan Forngren <[email protected]>
- Loading branch information
1 parent
312717f
commit 596663f
Showing
2 changed files
with
72 additions
and
2 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
python/packages/autogen-studio/.devcontainer/devcontainer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/python | ||
{ | ||
"name": "Python 3", | ||
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye", | ||
"features": { | ||
"ghcr.io/devcontainers/features/node:1": { | ||
"nodeGypDependencies": true, | ||
"installYarnUsingApt": true, | ||
"version": "lts", | ||
"pnpmVersion": "latest", | ||
"nvmVersion": "latest" | ||
} | ||
}, | ||
|
||
"portsAttributes": { | ||
"8000": { | ||
"label": "Frontend develop" | ||
}, | ||
"8081": { | ||
"label": "AutoGen Studio" | ||
} | ||
}, | ||
|
||
// Performance optimizations for Windows | ||
"mounts": [ | ||
"source=${localWorkspaceFolderBasename}-node_modules,target=/workspace/frontend/node_modules,type=volume", | ||
"source=${localWorkspaceFolderBasename}-yarn-cache,target=/usr/local/share/.cache/yarn,type=volume" | ||
], | ||
"containerEnv": { | ||
"npm_config_cache": "/tmp/.npm", | ||
"YARN_CACHE_FOLDER": "/tmp/.yarn-cache", | ||
"PYTHONUNBUFFERED": "1", | ||
"PIP_NO_CACHE_DIR": "false", | ||
// Use this to enable Gatsby polling when Docker is used | ||
"CHOKIDAR_USEPOLLING":"true", | ||
// This is used for Hot Module + Reloading with Gatsby | ||
"INTERNAL_STATUS_PORT":"5001" | ||
}, | ||
// Add workspaceMount for better performance | ||
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached", | ||
"workspaceFolder": "/workspace", | ||
|
||
// Use 'postCreateCommand' to install dependencies after the container is created. | ||
"postCreateCommand": "mkdir -p frontend/node_modules && sudo chown vscode frontend/node_modules && pip install --upgrade pip gunicorn && pip install -e . && npm install -g gatsby-cli && cd frontend && yarn install --cache-folder /tmp/.yarn-cache" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters