Esempio n. 1
0
    def __init__(self,
                 log,
                 descriptor,
                 output,
                 template=None,
                 scripts=None,
                 additional_scripts=None,
                 without_sources=False,
                 dist_git=False,
                 ssl_verify=None):
        self.log = log
        self.pwd = os.path.realpath(os.path.dirname(
            os.path.realpath(__file__)))
        self.descriptor = os.path.realpath(descriptor)
        self.without_sources = without_sources
        self.dist_git = dist_git
        self.output = output
        self.dockerfile = os.path.join(self.output, "Dockerfile")
        self.template = template
        self.scripts = scripts
        self.additional_scripts = additional_scripts
        self.ssl_verify = ssl_verify

        if self.dist_git:
            self.git = Git(self.log, os.path.dirname(self.descriptor),
                           self.output)