Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for heredocs in the ONBUILD command #2209

Merged
merged 1 commit into from
Jun 30, 2021

Conversation

jedevc
Copy link
Member

@jedevc jedevc commented Jun 29, 2021

This start to address some of #2170, extending heredoc support into the ONBUILD command. This pretty much just lets heredocs work exactly as expected when combined with ONBUILD.

ONBUILD RUN <<EOF
echo "thing to do as on-build trigger"
EOF

With this structure, it should be possible to extend this in the future to HEALTHCHECK, however, we'd need some support for heredocs in CMD (which I think works nicer in a separate PR, since it's actually unrelated to this).

Signed-off-by: Justin Chadwell <me@jedevc.com>
@jedevc jedevc requested a review from tonistiigi June 29, 2021 10:36
@tonistiigi tonistiigi added this to the v0.9.0 milestone Jun 29, 2021
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.

Thanks!

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.

2 participants