3 ms·
That's awesome. One step closer to treating infrastructure exactly as code. I'd imagine you could stop a build if the docker image generated doesn't have, say
by mooreds 9y ago
That's awesome. One step closer to treating infrastructure exactly as code.
I'd imagine you could stop a build if the docker image generated doesn't have, say, a valid python installation because someone mistyped a command, and that doing so would be quicker than standing up the image and running an external test against it.
- dboreham 9y agoTo me this sounds crazy. The possibilities from "mistyped commands" are essentially infinite. Instead, test that the container does what it is supposed to do, at least in some minimal way. Then if it doesn't do what it should do because there's no Python, it won't do what it should do and the test will fail. One test to catch the infinite number of typing errors.