Repository navigation
Description
Friction
The published devcontainer image is a prebuild of the devops-cli workspace configuration, .devcontainer/devcontainer.json. The Dev Containers CLI writes that configuration's properties into the image label devcontainer.metadata, and every child repository that names the image reads the label. So a child gets the devops-cli workspace's own settings:
- The named volumes
devops-cli-venv,devops-cli-data,devops-cli-uvand the cache volumes, mounted on the child's own.venv,.data,.uvand cache folders. Two child repositories then share the devops-cli virtual environment and data volume. global-devcontainer-homeon/home/vscode.postCreateCommandandpostStartCommand, which run in addition to the child's own commands.- 18 editor extensions and the editor settings of the devops-cli workspace, among them the in-cluster
ollama.endpoint, andDEVOPS_K8S_AUTO_DEPLOY=true.
A child repository that devops devcontainer init scaffolds mounts only /tmp, /home/vscode and ~/.ssh (src/devops_cli/templates/devcontainer.json.j2:39-43), so it inherits every other mount above. A child that declares the same mount targets, such as gdot-local-dev, overrides them.
Evidence
- A local rehearsal of the fix(devcontainer): the published image applies the devcontainer features again, so remoteUser vscode exists #1895 build (
linux/amd64, Dev Containers CLI 0.89.0) randevcontainer upon a child configuration that holds onlyimageandupdateRemoteUserUID. Thedocker runcommand that the CLI logged mounteddevops-cli-venvon<child>/.venv,devops-cli-dataon<child>/.dataandglobal-devcontainer-homeon/home/vscode. It also setDEVOPS_K8S_AUTO_DEPLOY=trueand the full devops-cli editor customizations. - Images up to v0.2.34 were built from the same configuration with
devcontainers/ci, so they carried the same label. fix(devcontainer): the published image applies the devcontainer features again, so remoteUser vscode exists #1895 restores that build and does not change the label. - The upstream prebuild guide (https://containers.dev/guide/prebuild) uses two configurations: a detailed one with the features builds the image, and a simple one for the end user refers to it.
Proposed remedy
Follow the upstream two-configuration pattern. Add an image configuration, for example .devcontainer/image/devcontainer.json with its own devcontainer-lock.json, that holds the Dockerfile build, the features, remoteUser and only the container environment that every child needs. The shared action .github/actions/devcontainer-image builds that configuration. The workspace configuration keeps the devops-cli mounts, lifecycle commands and editor settings. Renovate's devcontainer manager already matches .devcontainer/<folder>/devcontainer.json. A test keeps the feature set of the two configurations equal, or the build derives one from the other.
Tests
- The image configuration holds no
mounts, no lifecycle command and nocustomizations. - The features of the image configuration equal those of the workspace configuration.
- The shared action builds the image configuration.
Acceptance criteria
- A child repository that names only the image gets the user
vscodeand the feature metadata, and no devops-cli volume, lifecycle command or editor setting. -
uv run devops cipasses.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNew
Activity
dan-petty commentedon Oct 22, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
The candidate describes a problem with the published image's metadata label not carrying expected settings into child repositories, which is a bug fix.This affects the usability and consistency of devcontainer configurations across repositories, but does not block functionality or introduce security issues.Fixes an issue that impacts multiple child repositories inheriting incorrect or unwanted configuration settings from the parent workspace.Requires restructuring the devcontainer setup to follow a two-configuration pattern, updating build processes and tests.fix(devcontainer): isolate image build metadata from workspace settin…