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

support pure Dockerfile-AST building #2

Open
ryan-williams opened this issue Nov 18, 2020 · 0 comments
Open

support pure Dockerfile-AST building #2

ryan-williams opened this issue Nov 18, 2020 · 0 comments

Comments

@ryan-williams
Copy link
Member

current docker.File builder has messy logic around opening a temporary file and appending commands to it; if a final .build() call may be skipped by the caller, the caller needs to also __enter__ the File to ensure the tempfile can be GC'd.

It would be nicer to build (and be able to parse!) a pure AST representation of Dockerfiles, and then render that to a Dockerfile or other format.

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