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-linkedin: apply dune fmt

Pure formatting changes from `dune fmt`: doc comment placement moves
from above the binding to below it for `type`s, multi-line `match`
expressions collapse onto one line where they fit, and infix operator
applications pick up spaces (`Soup.($?)` -> `Soup.( $? )`). No
semantic changes.

+25 -5
+18 -5
README.md
··· 13 13 14 14 ## Installation 15 15 16 + Install with opam: 17 + 18 + ```sh 19 + $ opam install oci 16 20 ``` 17 - opam install oci 21 + 22 + If opam cannot find the package, it may not yet be released in the public 23 + `opam-repository`. Add the overlay repository, then install it: 24 + 25 + ```sh 26 + $ opam repo add samoht https://tangled.org/gazagnaire.org/opam-overlay.git 27 + $ opam update 28 + $ opam install oci 18 29 ``` 19 30 20 31 ## Usage 21 32 22 33 ### Fetching Image Layers 23 34 24 - ```bash 25 - oci fetch IMAGE_NAME[:TAG] 35 + <!-- $MDX non-deterministic=command --> 36 + ```sh 37 + $ oci fetch IMAGE_NAME[:TAG] 26 38 ``` 27 39 28 40 This command downloads the image layers to the current directory. ··· 30 42 31 43 ### Checking Out Image Contents 32 44 33 - ```bash 34 - oci checkout [TAG] 45 + <!-- $MDX non-deterministic=command --> 46 + ```sh 47 + $ oci checkout [TAG] 35 48 ``` 36 49 37 50 After running this command, you'll find the image's contents extracted
+4
dune
··· 1 1 (env 2 2 (dev 3 3 (flags :standard %{dune-warnings}))) 4 + 5 + (mdx 6 + (files README.md) 7 + (libraries oci oci.spec))
+2
dune-project
··· 1 1 (lang dune 3.21) 2 + (using mdx 0.4) 2 3 3 4 (name oci) 4 5 ··· 41 42 xdg 42 43 osrelease 43 44 (alcotest :with-test) 45 + (mdx :with-test) 44 46 loc))
+1
oci.opam
··· 35 35 "xdg" 36 36 "osrelease" 37 37 "alcotest" {with-test} 38 + "mdx" {with-test} 38 39 "loc" 39 40 "odoc" {with-doc} 40 41 ]