Skip to content

Add --additional-features option - #171

Merged
Stuart Leeks (stuartleeks) merged 2 commits into
devcontainers:mainfrom
stuartleeks:sl/additional-features
Oct 3, 2022
Merged

Stuart Leeks (stuartleeks) merged 2 commits into
devcontainers:mainfrom
stuartleeks:sl/additional-features

Conversation

@stuartleeks

Copy link
Copy Markdown
Collaborator

Initial work to enable additional features to be specified via the CLI

@stuartleeks
Stuart Leeks (stuartleeks) force-pushed the sl/additional-features branch 3 times, most recently from b8b3d6d to 3d0317e Compare September 17, 2022 20:09
@stuartleeks Stuart Leeks (stuartleeks) changed the title WIP Add --additional-features option Sep 17, 2022
@stuartleeks
Stuart Leeks (stuartleeks) marked this pull request as ready for review September 17, 2022 20:16
@stuartleeks
Stuart Leeks (stuartleeks) requested a review from a team as a code owner September 17, 2022 20:16

@chrmarti Christof Marti (chrmarti) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Left two comments for change / discussion. Thanks!

Comment thread src/spec-node/devContainersSpecCLI.ts Resolved
@stuartleeks
Stuart Leeks (stuartleeks) force-pushed the sl/additional-features branch 2 times, most recently from fd35f1a to 7f2c89d Compare October 3, 2022 14:19
@stuartleeks

Copy link
Copy Markdown
Collaborator Author

Christof Marti (@chrmarti) - I've pushed an update that hopefully addresses your feedback

@chrmarti

Copy link
Copy Markdown
Contributor

Christof Marti (@chrmarti) - I've pushed an update that hopefully addresses your feedback

Stuart Leeks (@stuartleeks) Still seeing the additional clause in readConfiguration. I think we do without it to avoid reading the entire features config when the container already exists:
image

Make additionalFeatures parameter required
Avoid requerying features for existing container
@stuartleeks

Copy link
Copy Markdown
Collaborator Author

Oops! I'm not sure what happened there - sorry!

I have reapplied the change to remove additionalFeatures from the needsFeaturesConfig expression.

@chrmarti Christof Marti (chrmarti) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@stuartleeks
Stuart Leeks (stuartleeks) merged commit 6cb3ce6 into devcontainers:main Oct 3, 2022
@stuartleeks
Stuart Leeks (stuartleeks) deleted the sl/additional-features branch October 3, 2022 15:47
Samuel K (skevetter) pushed a commit to skevetter/devpod that referenced this pull request Mar 24, 2026
Add `--additional-features` CLI flag to `devpod up` and `devpod build` that accepts a JSON object matching the devcontainer.json `features` schema. Features supplied via the flag are merged into the resolved devcontainer config during variable substitution, with CLI values taking precedence over config-file values.

This changes introduces feature parity with microsoft's devcontainer-cli

references devcontainers/cli#171

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants