Skip to content

oci

OCI runtime. Provides runtime by running a container image from a registry.

This is an external provider: it registers as impl.<contract>.<name> and has no apps instance.

providers.runtime = impl.runtime.oci;
apps.myapp.main.needs.runtime.image = "ghcr.io/example/app:1.2.3";

Provides

runtime4 options
  • fragmentattribute set

    Bound pod rewrite from the runtime provider.

    Default
    { }
  • imagenull or string

    OCI image reference. Mutually exclusive with package.

    Default
    null
  • packagenull or package

    Nix package to run. Mutually exclusive with image.

    Default
    null
  • providernull or (podule provider reference (apps.<type>.<instance> or impl.<contract>.<name>))

    Overrides providers.runtime for this need.

    Default
    null

Needs

None.