Beispiel #1
0
    def __deploy_base_layout(self):
        """
        Deploy localscripts

        copy tar to various containers
        """
        if os.path.exists('baselayout.tar') and self.image_config['baselayout']:
            dockerfiles = Dockerfile.find_by_image(self.dockerfile, "Dockerfile", [self.image_name])
            dockerfiles = [os.path.dirname(image_path) for image_path in dockerfiles]
            for target_path in dockerfiles:
                if Output.VERBOSITY_VERBOSE <= self.output.get_verbosity():
                    self.line('<comment>copy baselayout to </comment> %s ' % target_path)
                shutil.copy2('baselayout.tar', target_path)
Beispiel #2
0
    def __deploy_base_layout(self):
        """
        Deploy localscripts

        copy tar to various containers
        """
        if os.path.exists(
                'baselayout.tar') and self.image_config['baselayout']:
            dockerfiles = Dockerfile.find_by_image(self.dockerfile,
                                                   "Dockerfile",
                                                   [self.image_name])
            dockerfiles = [
                os.path.dirname(image_path) for image_path in dockerfiles
            ]
            for target_path in dockerfiles:
                if Output.VERBOSITY_VERBOSE <= self.output.get_verbosity():
                    self.line('<comment>copy baselayout to </comment> %s ' %
                              target_path)
                shutil.copy2('baselayout.tar', target_path)