CICD-407 · Dev Container validation
Encyclopedia · Preview environments and developer experience · All snippets
Previous · CICD-406 · Next · CICD-408
1. Where it fits
- Placement CI run step.
- Prerequisites trusted preview controller, disposable environment and scoped identities for external resources.
- Platforms kubernetes, local-lab.
2. Copy the snippet
bash
devcontainer build --workspace-folder .
devcontainer up --workspace-folder .
devcontainer exec --workspace-folder . python --version3. How it works
The first command builds the Dev Container from declared configuration. Startup and the in-container command verify initialization that image build alone cannot exercise.
4. Verify the result
Use a disposable CI runner and repository-pinned Dev Container definition. Build success alone misses startup hooks.
Validation syntax-validated (Bash parse). Status definitions.