예제 #1
0
 def __init__(self, *args, **kwargs):
     super().__init__(*args, **kwargs)
     self.client = docker_client_config().get_client()
     self.image_info = ImageInfo.from_json(self.image_info_json)
     self.image_target = DockerImageTarget(
         self.image_info.target_repository_name,
         self.image_info.get_target_complete_tag())
     self.remove_image()
예제 #2
0
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.image_info = ImageInfo.from_json(self.image_info_json)

        self._prepare_outputs()
예제 #3
0
 def read_info(self, value) -> ImageInfo:
     with value[IMAGE_INFO].open("r") as file:
         return ImageInfo.from_json(file.read())