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

Doesn't work with DOCKER_BUILDKIT=1 and heredocs #28

Open
budney opened this issue Sep 29, 2022 · 0 comments
Open

Doesn't work with DOCKER_BUILDKIT=1 and heredocs #28

budney opened this issue Sep 29, 2022 · 0 comments

Comments

@budney
Copy link

budney commented Sep 29, 2022

I'm using INCLUDE+ to include a Dockerfile that includes heredocs, which means that I'm setting DOCKER_BUILDKIT=1 before invoking docker build. I'm getting the same error as when I run the included Dockerfile without setting DOCKER_BUILDKIT: namely, docker build is choking on the contents of the heredoc because it's trying to parse them as if they're part of the Dockerfile.

My best guess as to what's going on is that heredocs are processed at some early stage of Dockerfile parsing, and the INCLUDE+ directive is getting parsed later -- so when it interpolates the contents of the included file, they're not being parsed correctly. Not being expert in ruby OR Docker, that's about as far as I can get in tracking down the problem.

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

No branches or pull requests

1 participant