helpers icon indicating copy to clipboard operation
helpers copied to clipboard

Explore Docker Build checks

Open gpsaggese opened this issue 7 months ago • 1 comments

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 Linter checks for Dockerfiles. WDYT @samarth9008 ?

Originally posted by @dremdem in #615

gpsaggese avatar May 06 '25 15:05 gpsaggese

@sandeepthalapanane let's figure out:

  1. what it does, e.g., run it manually and see what exactly gets us
  2. 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

gpsaggese avatar May 06 '25 15:05 gpsaggese