Skip to content

Container: add withExec(skipEntrypoint: Boolean) - #4919

Merged
vito merged 1 commit into
dagger:mainfrom
vito:skip-entrypoint
Apr 11, 2023
Merged

vito merged 1 commit into
dagger:mainfrom
vito:skip-entrypoint

Conversation

@vito

@vito vito commented Apr 10, 2023 •

Copy link
Copy Markdown
Contributor

Allows an exec to skip the entrypoint. This allows folks to implement Dockerfile semantics (e.g. RUN, which skips entrypoint) without having to collect the current value, remove it, and add it back afterwards.

Example use case

Allows an exec to skip the entrypoint. This allows folks to implement
Dockerfile semantics (RUN skips entrypoint) without having to collect
the current value, remove it, and add it back afterwards.

Signed-off-by: Alex Suraci <[email protected]>
@vito
vito requested review from helderco, shykes and sipsma April 10, 2023 15:18

@helderco helderco 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 useful to me 👍 But I defer to @shykes since he has strong opinions when using entrypoint.

@shykes

shykes commented Apr 10, 2023

Copy link
Copy Markdown
Contributor

Looks good to me too! Does this change the default behavior, or is it opt-in?

@vito

vito commented Apr 10, 2023 •

Copy link
Copy Markdown
Contributor Author

Looks good to me too! Does this change the default behavior, or is it opt-in?

@shykes Opt-in; I went with skipEntrypoint rather than useEntrypoint so the default will always be false when omitted (typical Go style).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants