Documentation
¶
Overview ¶
with-features adds a local devcontainer feature on top of an image- source devcontainer, proves the feature's install.sh ran inside the container, and confirms the feature's containerEnv was applied.
Run:
go run ./examples/with-features
What happens:
- Creates a temp workspace with devcontainer.json referencing a local feature at ./local-feature.
- Writes a tiny local feature whose install.sh writes a marker file at /etc/example-feature-marker.
- Up: the engine fetches the local feature, generates a wrapper Dockerfile, builds dc-go-final-<id>, runs it.
- Verifies the marker file exists (feature installed) and that $EXAMPLE_FROM_FEATURE is set in the container's environment.
- Tears it all down.
Click to show internal directories.
Click to hide internal directories.