with-features

command
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

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:

  1. Creates a temp workspace with devcontainer.json referencing a local feature at ./local-feature.
  2. Writes a tiny local feature whose install.sh writes a marker file at /etc/example-feature-marker.
  3. Up: the engine fetches the local feature, generates a wrapper Dockerfile, builds dc-go-final-<id>, runs it.
  4. Verifies the marker file exists (feature installed) and that $EXAMPLE_FROM_FEATURE is set in the container's environment.
  5. Tears it all down.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL