コード例 #1
0
ファイル: image.py プロジェクト: kosciCZ/conu
    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
コード例 #2
0
    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
コード例 #3
0
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()