Explore Docker Build checks
Found one interesting Docker feature: https://docs.docker.com/build/checks/ https://www.docker.com/blog/introducing-docker-build-checks/
Check a build without building To run build checks without actually building, you can use the docker build command as you typically would, but with the addition of the --check flag. Here's an example: docker build --check . Instead of executing the build steps, this command only runs the checks and reports any issues it finds. If there are any issues, they will be reported in the output.
It might be worth adding this to our tests and even including it in the
Linterchecks for Dockerfiles. WDYT @samarth9008 ?
Originally posted by @dremdem in #615
@sandeepthalapanane let's figure out:
- what it does, e.g., run it manually and see what exactly gets us
- if we agree it's interesting, make a proposal on how to integrate it in our flow
- E.g., we can have unit tests running this and add it as a step in the linter flow
FYI @heanhsok and @sonniki