コード例 #1
0
 def _handle_output(self, output_generator,
                    image_info: ImageInfo,
                    log_file_path: luigi.LocalTarget):
     log_file_path = log_file_path.joinpath("docker-build.log")
     with BuildLogHandler(log_file_path, self.logger, self._task_id, image_info) as log_hanlder:
         still_running_logger = StillRunningLogger(
             self.logger, self._task_id, "build image %s" % image_info.get_target_complete_name())
         for log_line in output_generator:
             still_running_logger.log()
             log_hanlder.handle_log_line(log_line)