-
-
Notifications
You must be signed in to change notification settings - Fork 111
Add Dev Container Support #407
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
Open
RyanEwen
wants to merge
11
commits into
maziggy:0.2.1b3
Choose a base branch
from
RyanEwen:feature/add_devcontainer
base: 0.2.1b3
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
f50fe42
Add devcontainer
RyanEwen 5fd419e
Set default formatter to ruff
RyanEwen 5ff664f
Merge branch '0.2.0b' into feature/add_devcontainer
maziggy 6a9a3d4
Merge branch '0.2.0b' into feature/add_devcontainer
maziggy d9e4cd4
Pin dev container to proper versions of python and node.
RyanEwen c382cc7
Only bind to 0.0.0.0 in dev container
RyanEwen 7020d51
Merge branch 'maziggy:main' into feature/add_devcontainer
RyanEwen 5986081
Merge branch '0.2.1b' into feature/add_devcontainer
maziggy 4772010
Merge branch '0.2.1' into feature/add_devcontainer
maziggy dc3a85f
Merge branch '0.2.1b2' into feature/add_devcontainer
maziggy 57643d8
Merge branch '0.2.1b3' into feature/add_devcontainer
maziggy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,20 @@ | ||
| FROM mcr.microsoft.com/devcontainers/python:1-3.13-bookworm | ||
|
|
||
| RUN rm -f /etc/apt/sources.list.d/yarn.list /etc/apt/sources.list.d/nodesource.list \ | ||
| && apt-get update \ | ||
| && apt-get install -y --no-install-recommends \ | ||
| curl \ | ||
| git \ | ||
| bash \ | ||
| build-essential \ | ||
| libgl1 \ | ||
| libglib2.0-0 \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \ | ||
| && apt-get update \ | ||
| && apt-get install -y --no-install-recommends nodejs \ | ||
| && npm install -g npm@latest \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| WORKDIR /workspaces/bambuddy | ||
This file contains hidden or 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,43 @@ | ||
| { | ||
| "name": "Bambuddy Dev", | ||
| "dockerComposeFile": "docker-compose.yml", | ||
| "service": "app", | ||
| "workspaceFolder": "/workspaces/bambuddy", | ||
| "remoteUser": "vscode", | ||
| "forwardPorts": [8000, 5173], | ||
| "portsAttributes": { | ||
| "8000": { | ||
| "label": "Bambuddy Backend", | ||
| "onAutoForward": "notify" | ||
| }, | ||
| "5173": { | ||
| "label": "Vite Frontend", | ||
| "onAutoForward": "openPreview" | ||
| } | ||
| }, | ||
| "postCreateCommand": "python -m pip install --upgrade pip && pip install -r requirements.txt -r requirements-dev.txt && mkdir -p /home/vscode/.npm && sudo chown -R vscode:vscode /home/vscode/.npm && sudo rm -rf frontend/node_modules && cd frontend && npm ci", | ||
| "customizations": { | ||
| "vscode": { | ||
| "extensions": [ | ||
| "ms-python.python", | ||
| "ms-python.vscode-pylance", | ||
| "charliermarsh.ruff", | ||
| "ms-azuretools.vscode-docker", | ||
| "dbaeumer.vscode-eslint", | ||
| "esbenp.prettier-vscode" | ||
| ], | ||
| "settings": { | ||
| "python.defaultInterpreterPath": "/usr/local/bin/python", | ||
| "python.analysis.typeCheckingMode": "basic", | ||
| "editor.formatOnSave": true, | ||
| "[python]": { | ||
| "editor.defaultFormatter": "charliermarsh.ruff" | ||
| }, | ||
| "editor.codeActionsOnSave": { | ||
| "source.organizeImports": "explicit", | ||
| "source.fixAll.ruff": "explicit" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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,20 @@ | ||
| services: | ||
| app: | ||
| build: | ||
| context: .. | ||
| dockerfile: .devcontainer/Dockerfile | ||
| command: sleep infinity | ||
| volumes: | ||
| - ..:/workspaces/bambuddy:cached | ||
| - bambuddy-pip-cache:/home/vscode/.cache/pip | ||
| - bambuddy-npm-cache:/home/vscode/.npm | ||
| environment: | ||
| PYTHONUNBUFFERED: "1" | ||
| PIP_DISABLE_PIP_VERSION_CHECK: "1" | ||
| DEBUG: "true" | ||
| BACKEND_PORT: "8000" | ||
| DEVCONTAINER: "true" | ||
|
|
||
| volumes: | ||
| bambuddy-pip-cache: | ||
| bambuddy-npm-cache: |
This file contains hidden or 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
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check notice
Code scanning / Trivy
No HEALTHCHECK defined Low