Turn an image into a static, read-only registry a dumb web server can serve.
tree/3 copies a source into a Stevedore.Transport.Static directory layout
(v2/<name>/manifests|blobs/...) and returns the per-manifest response headers a pull client
needs but a static server can't infer — Content-Type and Docker-Content-Digest.
nginx_config/2 and caddy_config/2 emit a server config that serves the tree at /v2/...
with those headers (plus Docker-Distribution-Api-Version).
Spec: Docker Registry HTTP API v2 — the headers a pull client requires.
Summary
Functions
Generates a Caddy config serving the tree at out as a read-only /v2 registry.
Generates an nginx config serving the tree at out as a read-only /v2 registry.
Copies source into a static registry tree at out and returns the manifest header map.
Types
Functions
Generates a Caddy config serving the tree at out as a read-only /v2 registry.
Generates an nginx config serving the tree at out as a read-only /v2 registry.
Copies source into a static registry tree at out and returns the manifest header map.
opts: :name (repository; derived from a registry source otherwise), and any Stevedore.copy/3
option (:all, :platform, :scheme, :creds).