-
Notifications
You must be signed in to change notification settings - Fork 0
Update devcontainer.json with additional features #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Added extensions for Python, Docker, Node.js, and GitHub CLI to enhance the development container.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances the dev container configuration by adding essential development tools and features needed for the Flask/Astro project stack.
- Adds VSCode extensions for Python, Docker, and Remote Containers
- Configures features for Node.js (v20), Python (v3.11), and GitHub CLI
- Adds development settings including port forwarding and workspace configuration
| }, | ||
| // Add Python for Python development | ||
| "ghcr.io/devcontainers/features/python:1": { | ||
| "version": "3.11" |
Copilot
AI
Oct 29, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Python version is inconsistent with the CI/CD workflows. The GitHub Actions workflows use Python 3.13 (see .github/workflows/copilot-setup-steps.yml and .github/workflows/run-tests.yml), but this devcontainer specifies Python 3.11. This version mismatch could lead to compatibility issues between local development and CI/CD environments. Update to "3.13" to match the workflow configurations.
| "version": "3.11" | |
| "version": "3.13" |
| // Optionally set container settings for improved dev experience | ||
| "settings": { | ||
| "terminal.integrated.defaultProfile.linux": "bash", | ||
| "python.pythonPath": "/usr/local/bin/python3" |
Copilot
AI
Oct 29, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The python.pythonPath setting is deprecated in recent versions of the Python extension for VS Code. Use python.defaultInterpreterPath instead.
| "python.pythonPath": "/usr/local/bin/python3" | |
| "python.defaultInterpreterPath": "/usr/local/bin/python3" |
| }, | ||
| // Add Node.js for JavaScript/TypeScript development | ||
| "ghcr.io/devcontainers/features/node:1": { | ||
| "version": "20" |
Copilot
AI
Oct 29, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Node.js version is inconsistent with the CI/CD workflows. The GitHub Actions workflows use Node.js version 22 (see .github/workflows/copilot-setup-steps.yml and .github/workflows/run-tests.yml), but this devcontainer specifies version 20. This version mismatch could lead to compatibility issues. Update to "22" to match the workflow configurations.
| "version": "20" | |
| "version": "22" |
| "workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached", | ||
| "workspaceFolder": "/workspace" |
Copilot
AI
Oct 29, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The workspaceMount and workspaceFolder settings override the default mount behavior, which may cause issues with the universal devcontainer image being used. The mcr.microsoft.com/devcontainers/universal:latest image already has a predefined workspace location at /workspaces/<repository-name>. Unless there's a specific reason to override this, these settings should be removed to avoid potential path conflicts.
| "workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached", | |
| "workspaceFolder": "/workspace" |
Added extensions for Python, Docker, Node.js, and GitHub CLI to enhance the development container.