You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

devcontainer.json 1.3 kB

PoC AGS dev container (#5026) * Add tiktoken as a dependency in pyproject.toml Signed-off-by: Johan Forngren <johan.forngren@decerno.se> Update uv.lock with tiktoken dependency from fbfdc9f652384b70f7461c90ada13f87e83677e0 Signed-off-by: Johan Forngren <johan.forngren@decerno.se> * Updating autogen-ext dependencies per https://github.com/microsoft/autogen/pull/5008#issuecomment-2585383877 Signed-off-by: Johan Forngren <johan.forngren@decerno.se> * PoC dev container Signed-off-by: Johan Forngren <johan.forngren@decerno.se> * Enhance devcontainer setup with post-create script for dependency installation and improved performance. Removed partial hot reload setup, as it required bigger changes to the project. Improved documentation, and fixed markdown lint issues. Signed-off-by: Johan Forngren <johan.forngren@decerno.se> * Update installation documentation for AutoGen Studio, clarifying installation methods and improving formatting. Adjusted notes for Windows users and corrected minor grammatical issues. Signed-off-by: Johan Forngren <johan.forngren@decerno.se> * Fixing typos. Restructuring text to avoid consecutive markdown quote blocks separated only by a blank line to avoid MD028 - Blank line inside blockquote. Signed-off-by: Johan Forngren <johan.forngren@decerno.se> * Include dev containers tutorial Signed-off-by: Johan Forngren <johan.forngren@decerno.se> * Update dev container installation instructions Signed-off-by: Johan Forngren <johan.forngren@decerno.se> --------- Signed-off-by: Johan Forngren <johan.forngren@decerno.se> Co-authored-by: Victor Dibia <victordibia@microsoft.com>
1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // For format details, see https://aka.ms/devcontainer.json. For config options, see the
  2. // README at: https://github.com/devcontainers/templates/tree/main/src/python
  3. {
  4. "name": "Python 3",
  5. "image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",
  6. "features": {
  7. "ghcr.io/devcontainers/features/node:1": {
  8. "nodeGypDependencies": true,
  9. "installYarnUsingApt": true,
  10. "version": "lts",
  11. "pnpmVersion": "latest",
  12. "nvmVersion": "latest"
  13. }
  14. },
  15. "portsAttributes": {
  16. "8000": {
  17. "label": "Frontend develop"
  18. },
  19. "8081": {
  20. "label": "AutoGen Studio"
  21. },
  22. "9000": {
  23. "label": "Frontend serve (production)"
  24. }
  25. },
  26. // Use 'postCreateCommand' to install dependencies after the container is created.
  27. "postCreateCommand": "bash .devcontainer/post-create-command.sh",
  28. // Performance optimizations for Windows
  29. "mounts": [
  30. "source=node_modules,target=/workspace/frontend/node_modules,type=volume",
  31. "source=yarn-cache,target=/usr/local/share/.cache/yarn,type=volume"
  32. ],
  33. // Add workspaceMount for better performance
  34. "workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind",
  35. "workspaceFolder": "/workspace",
  36. "containerEnv": {
  37. "npm_config_cache": "/tmp/.npm",
  38. "YARN_CACHE_FOLDER": "/tmp/.yarn-cache",
  39. "PYTHONUNBUFFERED": "1",
  40. "PIP_NO_CACHE_DIR": "false"
  41. }
  42. }