-
Notifications
You must be signed in to change notification settings - Fork 252
ADDED DEVCONTAINER #487
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?
ADDED DEVCONTAINER #487
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,38 @@ | ||||||
| { | ||||||
| "name": "Robusta KRR Dev", | ||||||
| "image": "mcr.microsoft.com/devcontainers/python:3.10", | ||||||
| "features": { | ||||||
| "ghcr.io/devcontainers/features/docker-outside-of-docker:1": { | ||||||
| "moby": false | ||||||
| } | ||||||
| }, | ||||||
| "customizations": { | ||||||
| "vscode": { | ||||||
| "extensions": [ | ||||||
| "ms-python.python", | ||||||
| "ms-python.vscode-pylance", | ||||||
| "ms-python.debugpy", | ||||||
| "GitHub.copilot", | ||||||
| "GitHub.copilot-chat", | ||||||
| "EditorConfig.EditorConfig", | ||||||
| "dbaeumer.vscode-eslint", | ||||||
| "Orta.vscode-jest", | ||||||
|
Comment on lines
+18
to
+19
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Minor: ESLint and Jest extensions are not aligned with a Python project. Lines 18–19 include "EditorConfig.EditorConfig",
- "dbaeumer.vscode-eslint",
- "Orta.vscode-jest",
"eamodio.gitlens"📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| "eamodio.gitlens" | ||||||
| ], | ||||||
| "settings": { | ||||||
| "python.defaultInterpreterPath": "/usr/local/bin/python", | ||||||
| "python.analysis.typeCheckingMode": "basic" | ||||||
| } | ||||||
| } | ||||||
| }, | ||||||
| "remoteUser": "root", | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Major: Avoid running as root in development containers. Running the container as - "remoteUser": "root",
+ "remoteUser": "vscode",📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| "hostRequirements": { | ||||||
| "cpus": 2, | ||||||
| "memory": "2gb" | ||||||
| }, | ||||||
| "initializeCommand": "rm -rf build && rm -rf dist", | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Critical: initializeCommand runs on host machine and could delete build/dist directories. The - "initializeCommand": "rm -rf build && rm -rf dist",
+ "postCreateCommand": "set -e && apt-get update && apt-get install -y build-essential zip binutils && pip install poetry && poetry install && rm -rf build && rm -rf dist",📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| "postCreateCommand": "apt-get update && apt-get install -y build-essential zip binutils && pip install 'urllib3<2' && pip install -r requirements.txt && pip install poetry && poetry install", | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Critical: Don't mix pip and poetry for dependency management. Running both If 🤖 Prompt for AI AgentsMajor: Add error handling to postCreateCommand chain. The long command chain has no error handling. If any step fails (e.g., apt-get update times out), subsequent steps still execute, potentially leaving the container in an inconsistent state. Use - "postCreateCommand": "apt-get update && apt-get install -y build-essential zip binutils && pip install 'urllib3<2' && pip install -r requirements.txt && pip install poetry && poetry install",
+ "postCreateCommand": "set -e && apt-get update && apt-get install -y build-essential zip binutils && pip install poetry && poetry install",📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| "mounts": [ | ||||||
| "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" | ||||||
| ] | ||||||
| } | ||||||
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.
Minor: copilot-chat may assume unnecessary licensing.
Line 15–16 includes
GitHub.copilot-chatalong withGitHub.copilot. This assumes all developers have Copilot licenses. Consider removingcopilot-chator making it optional via a comment.🤖 Prompt for AI Agents