Class DockerRequirement

  • All Implemented Interfaces:
    Requirement

    public class DockerRequirement
    extends AbstractRequirement
    This class define a Docker requirement.
    Since:
    2.0
    Author:
    Laurent Jourdren
    • Constructor Detail

      • DockerRequirement

        public DockerRequirement()
    • Method Detail

      • getName

        public String getName()
        Description copied from interface: Requirement
        The name of the requirement.
        Returns:
        the name of the requirement
      • isAvailable

        public boolean isAvailable()
        Description copied from interface: Requirement
        Test if the requirement is available.
        Returns:
        true if he requirement is optional
      • newDockerRequirement

        public static Requirement newDockerRequirement​(String dockerImage)
                                                throws EoulsanException
        Create a new docker image as mandatory requirement.
        Parameters:
        dockerImage - the docker image name.
        Throws:
        EoulsanException - if an error occurs while configuring the requirement
      • newDockerRequirement

        public static Requirement newDockerRequirement​(String dockerImage,
                                                       boolean optional)
                                                throws EoulsanException
        Create a new docker image requirement.
        Parameters:
        dockerImage - the docker image
        optional - true if the docker image is a mandatory requirement
        Throws:
        EoulsanException - if an error occurs while configuring the requirement