OCaml library and CLI for OCI and Docker image manipulation
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

OCaml 97.5%
Python 1.3%
Dune 0.3%
Shell 0.1%
Other 0.8%
81 1 0

Clone this repository

https://tangled.org/gazagnaire.org/ocaml-oci https://tangled.org/did:plc:jhift2vwcxhou52p3sewcrpx/ocaml-oci
git@git.recoil.org:gazagnaire.org/ocaml-oci git@git.recoil.org:did:plc:jhift2vwcxhou52p3sewcrpx/ocaml-oci

For self-hosted knots, clone URLs may differ based on your setup.

Download tar.gz
README.md

oci -- Manage OCI and Docker Images in OCaml#

OCaml library and CLI for interacting with OCI and Docker image specifications. The oci binary fetches image layers, inspects image contents on the local filesystem, and provides a git-backed view for comparing layers.

Features#

  • OCaml API for OCI and Docker image manifests
  • Fetch layers of an OCI or Docker image
  • Checkout image contents with git history for diff inspection between layers

Installation#

Install with opam:

$ opam install oci

If opam cannot find the package, it may not yet be released in the public opam-repository. Add the overlay repository, then install it:

$ opam repo add samoht https://tangled.org/gazagnaire.org/opam-overlay.git
$ opam update
$ opam install oci

Usage#

Fetching Image Layers#

$ oci fetch IMAGE_NAME[:TAG]

This command downloads the image layers to the current directory. By default TAG is latest.

Checking Out Image Contents#

$ oci checkout [TAG]

After running this command, you'll find the image's contents extracted to the current directory. The checkout includes a git history, allowing you to inspect the differences between layers.

Licence#

MIT