mirror of
https://github.com/nlewo/nix2container.git
synced 2024-09-11 16:36:39 +03:00
Add example getManifest invocation.
This commit is contained in:
parent
25045ea2f3
commit
3fc3cd45ff
@ -155,7 +155,12 @@ hashes contained within it. The advantages of this over the basic `pullImage`:
|
||||
image just to compute a new narhash for it.
|
||||
|
||||
With this function the `manifest.json` functions as a lockfile meant to be stored in
|
||||
source control alongside the Nix container definitions.
|
||||
source control alongside the Nix container definitions. As a convenience, the manifest
|
||||
can be fetched/updated using the supplied passthru script, eg:
|
||||
|
||||
```
|
||||
nix run .#examples.fromImageManifest.fromImage.getManifest > examples/alpine-manifest.json
|
||||
```
|
||||
|
||||
Function arguments are:
|
||||
|
||||
|
@ -4,13 +4,13 @@
|
||||
"config": {
|
||||
"mediaType": "application/vnd.docker.container.image.v1+json",
|
||||
"size": 1472,
|
||||
"digest": "sha256:5e2b554c1c45d22c9d1aa836828828e320a26011b76c08631ac896cbc3625e3e"
|
||||
"digest": "sha256:c1aabb73d2339c5ebaa3681de2e9d9c18d57485045a4e311d9f8004bec208d67"
|
||||
},
|
||||
"layers": [
|
||||
{
|
||||
"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
|
||||
"size": 3397490,
|
||||
"digest": "sha256:8a49fdb3b6a5ff2bd8ec6a86c05b2922a0f7454579ecc07637e94dfd1d0639b6"
|
||||
"size": 3397879,
|
||||
"digest": "sha256:31e352740f534f9ad170f75378a84fe453d6156e40700b882d737a8f4a6988a3"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user