Open
Description
Problem
How do we know after building a container that it results in an image that starts properly and that it does not have some stupid showstopper problem?
Solution
Smoke testing
Smoke testing implementation
After container has been built, if smoke test defined for DockerImageSpec
(add new field):
turbobob/pkg/bobfile/bobfile.go
Lines 160 to 166 in 0e6e5bc
Then run smoke test. Smoke test could be:
- start container, expect it to stay up for at least 5 seconds (server-type containers that don't exit in the happy path can only be asserted as "looks like it stays up")
- for expected-to-exit containers => run container, expect ~immediate successful exit
Features:
- Ability to give command line parameters
- Ability to assert stdout to contain something