dockerfile-parse
dockerfile-parse copied to clipboard
Python library for parsing Dockerfile files.
See https://github.com/containerbuildsystem/atomic-reactor/pull/1896 Signed-off-by: Adam Cmiel # Maintainers will complete the following section - [ ] Commit messages are descriptive enough - [ ] Code coverage from testing does not decrease...
From the [docker docs](https://docs.docker.com/engine/reference/builder/#from) it says Dockerfile supports `--platform=` however when we try to reference the baseimage property of the parser, it reports the base image as the `--platform=` string....
The parser currently will always write out the content to the file when a value is assigned to a property. This is not immediately obvious, as it is only hinted...
Currently build arguments either have the value passed in with `build_args` in the constructor or the string value assigned in the dockerfile when the arg is defined. However, it is...
ARGs defined before first `FROM` in dockerfile are considered to be global ARGs and can be inherited into stages. https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact > An ARG declared before a FROM is outside of...
Currently dockerfile-parse focus only to work with the latest stage. Add support for doing modifications and reading content per dockerfile stage. See https://github.com/containerbuildsystem/dockerfile-parse/issues/116#issuecomment-794155530 for context
Adds some functions for getting & setting image tags. Adds a 'basetag' property for quickly adding/changing the tag of the baseimage. # Maintainers will complete the following section - [...
fixes: #124 # Maintainers will complete the following section - [ ] Commit messages are descriptive enough - [ ] Code coverage from testing does not decrease and new code...
Thanks for this project, it looks like it could be useful. I found it while looking for something which could parse out the files from the host system which the...
Support heredocs syntax when parsing the instructions https://docs.docker.com/engine/reference/builder/#here-documents