Skip to content

feat(run-mount): add support for variable expansion#2089

Merged
tonistiigi merged 1 commit intomoby:masterfrom
omermizr:feature/run-mount-variables
May 6, 2021
Merged

feat(run-mount): add support for variable expansion#2089
tonistiigi merged 1 commit intomoby:masterfrom
omermizr:feature/run-mount-variables

Conversation

@omermizr
Copy link

This PR adds support for variable expansion in RUN mounts.
Resolves #815

Caveats:

  • from expansion is not supported.
  • Expansion is not supported in ONBUILD RUN commands (I don't even think mounts work there).

@omermizr
Copy link
Author

@tonistiigi FYI

Copy link
Member

@tonistiigi tonistiigi left a comment

Choose a reason for hiding this comment

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

Missing DCO

I don't fully get the changes in convert.go. If it is just refactoring with no functional changes it should be in a different PR.

This doesn't fix the issues with output afaics. Fine by me if you want to tackle this in follow-up but should be fixed as well.

@omermizr omermizr force-pushed the feature/run-mount-variables branch from 4ca939e to 1f39eb8 Compare May 1, 2021 18:10
@omermizr
Copy link
Author

omermizr commented May 1, 2021

Added DCOs.
Removed changes in convert.go.
Regarding output formatting - I think it's beyond the scope of this PR, especially considering it's an existing problem. I also don't wanna mix a feature branch with a fix branch. I can make a separate PR to fix it, but I couldn't figure out where that code is. If you can send me on a path that'd be great :)

Copy link
Member

@tonistiigi tonistiigi left a comment

Choose a reason for hiding this comment

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

Only small comments left. Make sure to also squash commits and verify CI

@omermizr omermizr force-pushed the feature/run-mount-variables branch from 590ab7d to 7dd7a67 Compare May 3, 2021 07:08
@omermizr omermizr force-pushed the feature/run-mount-variables branch from 71c8bf4 to 1ac4230 Compare May 5, 2021 06:36
@omermizr omermizr force-pushed the feature/run-mount-variables branch from 1ac4230 to aa46719 Compare May 5, 2021 09:49
@tonistiigi tonistiigi merged commit 1465ce5 into moby:master May 6, 2021
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.

feature request: allow variables in the RUN --mount=type=bind values

2 participants