Skip to content

Translate localhost:32000 images if a registry isn't running #28

Description

@dwilding

In _cmd_deploy.py, before passing the OCI image to _docker_run, add a fallback for localhost:32000/... references. If an image is available from a registry on port 32000, use it as-is. Otherwise, strip the localhost:32000/ prefix and resolve the image from the local Docker image cache (e.g. localhost:32000/api-demo-server:integrationapi-demo-server:integration). This lets charm integration tests written for real Juju (which pulls OCI resources from a local registry) run unchanged under jjx, where the local Docker image cache acts as the registry. Scope the translation to port 32000 only.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions