module Dockerspec::Builder::Matchers

Creates some RSpec have_ matchers for Docker builds.

Constants

PREDICATE_TYPES

The matcher list with the type it belongs to.

This is based on [the official Dockerfile parser code] (github.com/docker/docker/tree/master/builder/dockerfile/parser) .

The possible types are:

  • `:string`: A simple string. For example the `MAINTAINER` instruction.

  • `:json`: Can in JSON (a Ruby array) or in string format. For example

    the `CMD` or the `ENTRYPOINT` instructions.
  • `:hash`: A hash. For example the `ENV` or the `LABEL` instructions.

  • `:array`: A array of values. For example the `EXPOSE` instruction.