How do YOU validate the structure of your containers?
Speaking for myself, the phases I went through looked something like 1) “Wut?” 2) “Notify me if/when the build fails” 3) “Notify me if/when it fails during use” 4) “I’ve done all that I can do, now leave me the f**k alone.” The thing is, going from -1- to -4- is really pretty damn rapid, since, at scale all ”IF”s become “WHEN”s (and rapidly at that) And now, finally, a solution (or a very promising start to one) — Google’s Container Structure Test — https://goo.gl/spNXEq — which promises to verify and validate the contents and structure of containers. It’s declarative (YAML!), and is really quite clever covering the following aspects • File Existence and Contents : Checks that a file exists (or doesn’t!) in the image, and has the correct contents/metadata • Commands : It’ll run a command inside the image (with setup/teardown!) and validate the output • Metadata ...