You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These three upstream PRs interleave in the up/build feature paths, so they land
together.
#1225 — preserve a user Dockerfile's `LABEL devcontainer.metadata`: the parser
now captures LABEL instructions (Dockerfile.StageLabels), and build/up merge the
Dockerfile-declared metadata into the composed label so the CLI's own stamped
label no longer clobbers the user's entries.
#1078 — build secrets in features: FeatureBuildOptions gains Secrets, forwarded
to the feature-install image build (buildx `--secret id=KEY,env=KEY`) and mounted
into each feature-install RUN as `--mount=type=secret,id=KEY` (new
DockerfileBuilder.RunWithMounts), so a Feature's install.sh can read
/run/secrets/KEY. Threaded from --secrets-file at every up/build call site;
gated on buildx. Compose feature secrets stay unsupported (compose build does
not forward --secret).
#1241 — `devcontainer up --platform`: new flag, and for image-based configs the
platform is derived from a `--platform` in runArgs when the flag is unset, then
used to pull (EngineClient.PullImagePlatform) and feature-build the image for the
platform it will run on (e.g. amd64 forced via runArgs on an arm64 host).
Tests added for each; the flag inventory is updated for up --platform.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
f.StringVar(&opts.platform, "platform", "", "Target platform (e.g. linux/amd64). Used to resolve, pull and build the image; overrides a --platform in runArgs.")
0 commit comments