Skip to content

A backend plugin for Mise that allows you to install and manage packages using OCI

License

Notifications You must be signed in to change notification settings

jbadeau/mise-oci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mise-oci

A Mise backend plugin for installing tools from OCI registries.

Warning This plugin is under active development and is considered unstable. APIs, configuration options, and behavior may change without notice. Use at your own risk.

Installation

Requires Mise v2025.1.0+ and oras.

mise plugin install oci https://github.com/jbadeau/mise-oci.git

Configuration

Set your registry and repository:

export MISE_OCI_REGISTRY="docker.io"
export MISE_OCI_REPOSITORY="jbadeau"

For private registries, also set credentials or use oras login:

export MISE_OCI_USERNAME="user"
export MISE_OCI_PASSWORD="pass"

Usage

# Install and run
mise install oci:azul-zulu@17.60.17
mise exec oci:azul-zulu@17.60.17 -- java --version

# List versions
mise ls-remote oci:azul-zulu

In .mise.toml:

[tools]
"oci:azul-zulu" = "17.60.17"

Publishing Tools

See example/README.md for publishing tools and SPECIFICATION.md for the MTA specification.

Troubleshooting

Error Solution
Tool not found Verify OCI reference exists in registry
No layer found for platform Tool missing binary for your OS/arch
Authentication required Run oras login
Extraction failed Check archive format (tar.gz, tar.xz, zip supported)

Development

mise plugin link oci $PWD --force
mise install oci:azul-zulu@17.60.17

About

A backend plugin for Mise that allows you to install and manage packages using OCI

Resources

License

Stars

Watchers

Forks

Releases

No releases published