Skip to content

Make -f argument optional #33

Closed
Closed

Description

@jmtd

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.

Activity

  1. jmtd commented on Jun 5, 2015

    @jmtd
    ContributorAuthor

    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

    webserver/webservers.feature
    webserver/type1/versionX/Dockerfile
    webserver/type1/type1.feature
    webserver/type2/versionY/Dockerfile
    ...
    

    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.

  2. vrutkovs commented on Jun 5, 2015

    @vrutkovs
    Member

    Agreed, we shouldn't really require Dockerfile

  3. added 5 commits that reference this issue on Jun 5, 2015
    7b6b471
    1914024
    a3fc5c1
    1c30d77
    21894f7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions