You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! We're using ctf-cli for a fairly large repository of dockerfiles and related stuff. We want to invoke CTF in two different ways: via hooks in our CI, but also by hand. When run by hand, we just want to test a particular image, already built, with a particular set of tests/features.
We've written a quick wrapper script around ctf-cli that gives us this interface1.
One of the things we don't need for this approach is to specify the dockerfile, however it is mandatory in ctf-cli at the moment. As you can see in the wrapper, we can get around this at the moment by just specifying /dev/null, but it would be nicer if it wasn't mandated.
I've started working on fixes for this2 but there's nothing worth submitting a PR for yet.
Just a bit more on our repository structure: We do not have a top-level Dockerfile, we have categories of image types, with shared tests/features, arranged a bit like this
So we also don't have all the tests in a separate directory structure. Some tests apply to multiple images, e.g. webservers.feature in the above example to both of the images described; but type1.feature only to the type1 image.
Activity
jmtd commentedon Jun 5, 2015
Just a bit more on our repository structure: We do not have a top-level Dockerfile, we have categories of image types, with shared tests/features, arranged a bit like this
So we also don't have all the tests in a separate directory structure. Some tests apply to multiple images, e.g.
webservers.featurein the above example to both of the images described; buttype1.featureonly to the type1 image.vrutkovs commentedon Jun 5, 2015
Agreed, we shouldn't really require Dockerfile
Don't require -f parameter - we can work without a Dockerfile
Don't require -f parameter - we can work without a Dockerfile
Don't require -f parameter - we can work without a Dockerfile
Don't require -f parameter - we can work without a Dockerfile
Don't require -f parameter - we can work without a Dockerfile