def __init__(self, image, mount_point=None): """ Raises CommandDoesNotExistException if the command is not present on the system. :param image: instance of DockerImage :param mount_point: str, directory where the filesystem will be mounted """ atomic_command_exists() super(DockerImageFS, self).__init__(image, mount_point=mount_point) self.image = image
def __init__(self, container, mount_point=None): """ Raises CommandDoesNotExistException if the command is not present on the system. :param container: instance of DockerContainer :param mount_point: str, directory where the filesystem will be mounted """ atomic_command_exists() super(DockerContainerFS, self).__init__(container, mount_point=mount_point) self.container = container # convenience
def test_required_binaries_exist(): # should work since we have all the deps installed assert s2i_command_exists() assert atomic_command_exists() assert getenforce_command_exists() assert chcon_command_exists() assert setfacl_command_exists()