oci-mirror

module
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2024 License: MIT

README

OCI Mirror

Container and OCI Image Mirror.

oci-mirror lets you mirror container images or any other oci artefact between registries. It is designed to run on a regular basis, as a CronJob in kubernetes for example. Under the hood it uses go-containerregistry to copy images directly from one registry to another.

Configuration

Configuration is done with a yaml configuration, defaults to oci-mirror.yaml.

Quickstart

First create a oci-mirror.yaml which matches your needs, then run it with the following command:

docker run -it -v $PWD/oci-mirror.yaml:/oci-mirror.yaml --rm ghcr.io/metal-stack/oci-mirror mirror

Kubernetes

There is a sample deployment manifest available, you can simple run:

kubectl apply -f deploy

TODO

  • support purging
  • eventually support http(s) artifacts to be stored as OCIs
  • ~~~support Regex Match for image tags~~~
  • store a OCI artifact which reflects all stored images ?

Directories

Path Synopsis
api
v1
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL