keilerkonzept / dockerfile-json

🐳 parse & print a Dockerfile as JSON, or query (e.g. extract base images) using JSONPath. #golang #cli - single binary, no dependencies. linux, osx, windows.
MIT License
20 stars 4 forks source link

Flag "security" not implemented #18

Open pitfallincode opened 1 year ago

pitfallincode commented 1 year ago

Hello,

I found that flag "security" for RUN command is not recognized. I would like to catch option like "insecure" in that flag. I use version 1.0.8. You can reproduce the issue with "RUN --security=insecure some_command" https://docs.docker.com/engine/reference/builder/#run---security

Regards,

mckern commented 1 year ago

I took a quick look at this for my own needs, and it looks like this is a shortcoming in https://github.com/moby/buildkit, not in dockerfile-json; the error being raised is coming directly from buildkit. For my own needs, this is something I'll be keeping an eye on but I don't know that there's much that can be done with dockerfile-json.