Skip to content

Add build options - #324

Merged
Christof Marti (chrmarti) merged 2 commits into
devcontainers:mainfrom
Roemer:feature/build-cli-options
Jan 17, 2024
Merged

Christof Marti (chrmarti) merged 2 commits into
devcontainers:mainfrom
Roemer:feature/build-cli-options

Conversation

@Roemer

Copy link
Copy Markdown
Contributor

As in discussion #301, I would like to propose a way to add cli arguments to a build command, similar how runArgs add cli arguments to the run command.
This is needed for example for overriding the network eg. network=host or for adding additional hosts. There is also a discussion about it over at vscode-remote: microsoft/vscode-remote-release#3545

Unfortunately, build.args is already used for Docker ARGuments so we need to use something else.
I am open for naming proposals.

Things I thought about are:

  • build.buildArgs
  • build.cliArgs
  • build.cliOptions
  • build.options
  • build.commandArgs
  • build.commandOptions
@Roemer
Roman (Roemer) requested a review from a team as a code owner October 27, 2023 12:55

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hi 👋

We appreciate your proposal of adding a new build.cliOptions property. However, I believe we are still missing the CLI changes?

We update the schema only after we release the respective CLI changes. I wonder if you were hoping to create a PR with a proposal ? (eg. #196)

Feel free to look at https://containers.dev/implementors/contributing/#contribution-approaches for more details.

@Roemer

Roman (Roemer) commented Oct 27, 2023 •

Copy link
Copy Markdown
Contributor Author

So I should create a proposal markdown file similar to #196? Or what did you mean with CLI changes? Can do. That should be in its own PR I suppose.

@samruddhikhandale

Copy link
Copy Markdown
Member

As this was discussed in #301 and has decent amount of upvotes, I believe it should be alright not creating a spec issue (or maybe create one and link it to the discussion)

So I should create a proposal markdown file similar to #196?

Said that, it would be great if you can create a similar PR, if the proposal looks good then we can start thinking about the CLI code changes.

// cc Brigit Murtaugh (@bamurtaugh) Feel free to correct my understanding, if needed.

@Roemer

Copy link
Copy Markdown
Contributor Author

I created a simple proposal for the spec change: #328

@fossum

Copy link
Copy Markdown

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thank you

@chrmarti

Copy link
Copy Markdown
Contributor

Updating the property name as agreed on in #328.

@chrmarti Christof Marti (chrmarti) changed the title [proposal] Adding build.cliOptions Jan 15, 2024
@chrmarti
Christof Marti (chrmarti) merged commit d424cc1 into devcontainers:main Jan 17, 2024
@Roemer
Roman (Roemer) deleted the feature/build-cli-options branch January 17, 2024 07:35
@johnadames18-glitch

Copy link
Copy Markdown

``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

8 participants