Skip to main content

Module image_rewrite

Module image_rewrite 

Source
Expand description

Image URI utilities for the registry proxy.

The manager IS the container registry — its /v2/ endpoint serves images. Releases store proxy URIs (e.g., manager.alien.dev/my-app:v1). Only Lambda and Cloud Run need native registry URIs (ECR/GAR).

Functions§

resolve_native_image_uri
Resolve a proxy image URI to a native registry URI.
rewrite_to_site_registry
image moved to the site registry registry_prefix, keeping its tag or digest. Local paths come back unchanged.
site_repository
Registry host and repository an image with repository path repository is stored at under a site registry registry_prefix (host[/path]).
strip_registry_host
Strip the registry hostname from an image URI, returning just the repo path.
strip_url_scheme
Strip URL scheme and trailing slash from a URL, returning just host[:port].