🔧(devops) add devcontainer configuration for Zed and VS Code#620
Open
neilcroft wants to merge 3 commits intosuitenumerique:mainfrom
Open
🔧(devops) add devcontainer configuration for Zed and VS Code#620neilcroft wants to merge 3 commits intosuitenumerique:mainfrom
neilcroft wants to merge 3 commits intosuitenumerique:mainfrom
Conversation
Add a .devcontainer setup that extends the backend-development image with nodejs/npm/bash (needed for basedpyright LSP) and a named "default" user with a valid shell and writable HOME. The containerUser is set to "default" (a named user) to work around a devcontainer CLI bug that serializes numeric UIDs as YAML integers, which Docker Compose rejects. On startup, any existing app-dev container from `make run` is automatically replaced. The Django runserver starts in background via postStartCommand.
1e75f93 to
8982430
Compare
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



Purpose
Add a Dev Containers configuration so that developers can work on Drive directly inside a container from Zed or VS Code, with full LSP support
(basedpyright).
Proposal
.devcontainer/setup that adds a dedicateddevcontainerservice alongside the existing Compose stack:Dockerfile — extends
backend-developmentwithnodejs,npmandbash(required by basedpyright LSP), and creates a nameddefaultuser with a valid shell and writableHOMEdocker-compose.override.yml — defines the
devcontainerservice with the workspace volume mountdevcontainer.json — configures the IDE integration (Zed / VS Code)
README — documents the dev container workflow
Runs alongside
app-dev— the dev container is a dedicated IDE workspace, not a replacement for the application containerShared source files — volume mounts ensure changes in the IDE are immediately reflected in the running application
Rootless — runs as user 1000 via a named user (
default) to work around a devcontainer CLI bug that serializes numeric UIDs as YAML integersGeneric — uses
${DOCKER_USER:-1000}so it works for any developer