Skip to content

Update "oci-image.sh" to allow directory output#149

Merged
tianon merged 1 commit intodebuerreotype:masterfrom
tianon:oci-image
Dec 22, 2022
Merged

Update "oci-image.sh" to allow directory output#149
tianon merged 1 commit intodebuerreotype:masterfrom
tianon:oci-image

Conversation

@tianon
Copy link
Copy Markdown
Collaborator

@tianon tianon commented Dec 22, 2022

This drops the fallback behaviors that we shouldn't need anymore, allows us to generate our OCI contents to a directory instead of a tarball, and updates our blobs/sha256/xxx entries to instead be symlinks to files with better names under blobs/ (blobs/image-manifest.json, etc).

$ find -ls
 42995983      4 drwxrwxr-x   3 tianon   tianon       4096 Oct  2 17:00 .
 42995984      4 drwxrwxr-x   3 tianon   tianon       4096 Oct  2 17:00 ./blobs
 42995989      4 drwxrwxr-x   2 tianon   tianon       4096 Oct  2 17:00 ./blobs/sha256
 42996020      0 lrwxrwxrwx   1 tianon   tianon         16 Oct  2 17:00 ./blobs/sha256/0449b3622c2481758a471eb896afc4f61395ce504b442bc06630f1a16792c54f -> ../rootfs.tar.gz
 42996007      0 lrwxrwxrwx   1 tianon   tianon         22 Oct  2 17:00 ./blobs/sha256/e796f760c82ae1ba99bdc4780b31cd341a6fcd17df5266f1b2274692bc20afed -> ../image-manifest.json
 42996005      0 lrwxrwxrwx   1 tianon   tianon         20 Oct  2 17:00 ./blobs/sha256/1a2ed76cb6224a2389f49e29b55b48f911c26b4680dd711ad51ff53c5a4ecf93 -> ../image-config.json
 42996008      4 -rw-rw-r--   1 tianon   tianon        457 Oct  2 17:00 ./blobs/image-config.json
 42996067      4 -rw-rw-r--   1 tianon   tianon        407 Oct  2 17:00 ./blobs/image-manifest.json
 42996068  27596 -rw-rw-r--   1 tianon   tianon   28257302 Oct  2 17:00 ./blobs/rootfs.tar.gz
 42995995      4 -rw-rw-r--   1 tianon   tianon        360 Oct  2 17:00 ./index.json
 42996003      4 -rw-rw-r--   1 tianon   tianon         31 Oct  2 17:00 ./oci-layout
 42995999      4 -rw-rw-r--   1 tianon   tianon        226 Oct  2 17:00 ./manifest.json

(docker-library/bashbrew#51, docker-library/bashbrew#61, docker-library/official-images#13769 👀)

This drops the fallback behaviors that we shouldn't need anymore, allows us to generate our OCI contents to a directory instead of a tarball, and updates our `blobs/sha256/xxx` entries to instead be symlinks to files with better names under `blobs/` (`blobs/image-manifest.json`, etc).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant