libera_utils.aws.ecr_upload.push_image_to_ecr#
- libera_utils.aws.ecr_upload.push_image_to_ecr(image_name: str, image_tag: str, algorithm_name: str | ProcessingStepIdentifier, *, ecr_image_tags: List[str] | None = None, region_name: str = 'us-west-2', ignore_docker_config: bool = False) None #
Programmatically upload a docker image for a science algorithm to an ECR. ECR name is determined based on the algorithm name.
- Parameters:
image_name (str) – Local name of the image
image_tag (str) – Local tag of the image (often latest)
algorithm_name (Union[str, constants.ProcessingStepIdentifier]) – Processing step ID string or object. Used to infer the ECR repository name. L0 processing step IDs are not allowed because they have no associated ECR.
ecr_image_tags (Optional[List[str]]) – List of tags to apply to the pushed image in the ECR (e.g. [“1.3.4”, “latest”]). Default None, results in pushing only as “latest”.
region_name (str) – AWS region. Used to infer the ECR name.
ignore_docker_config (bool) – Default False. If True, creates a temporary docker config.json file to prevent using stored credentials.
- Return type:
None