Open termoshtt opened 2 years ago
On https://github.com/termoshtt/ocipkg/commit/fe607df8aff71b7ea9f1fbed221d251efe574b41
cd examples/rust-lib cargo ocipkg build
will generates target/debug/ocipkg-lib-example.tar, and it can be read from podman:
target/debug/ocipkg-lib-example.tar
podman
$ podman load < target/debug/ocipkg-lib-example.tar Getting image source signatures Copying blob a9e4b2e88cdf done Copying config 62f91216a7 done Writing manifest to image destination Storing signatures Loaded image: ghcr.io/termoshtt/ocipkg/rust-lib:fe607df8aff71b7ea9f1fbed221d251efe574b41
Then, it can be pushed to ghcr.io:
$ podman push ghcr.io/termoshtt/ocipkg/rust-lib:fe607df8aff71b7ea9f1fbed221d251efe574b41 Getting image source signatures Copying blob 8bc21c49c28e done Copying config f7e44d8877 done Writing manifest to image destination Storing signatures
But, we cannot pull it using docker:
docker
$ docker pull ghcr.io/termoshtt/ocipkg/rust-lib:fe607df8aff71b7ea9f1fbed221d251efe574b41 fe607df8aff71b7ea9f1fbed221d251efe574b41: Pulling from termoshtt/ocipkg/rust-lib 55a302df70e5: Pull complete layers from manifest don't match image configuration
It seems that we still make some misunderstanding while creating ImageConfiguration.
ImageConfiguration
This is not a necessary feature. Drop from 0.1.0
On https://github.com/termoshtt/ocipkg/commit/fe607df8aff71b7ea9f1fbed221d251efe574b41
will generates
target/debug/ocipkg-lib-example.tar
, and it can be read frompodman
:Then, it can be pushed to ghcr.io:
But, we cannot pull it using
docker
:It seems that we still make some misunderstanding while creating
ImageConfiguration
.