apt-transport-oci icon indicating copy to clipboard operation
apt-transport-oci copied to clipboard

Adding packages to an existing repo

Open russkel opened this issue 3 years ago • 5 comments

Hello,

Thanks a lot for your work on this. We are wanting to use this for package hosting but it looks like you have to push the entire repository each time you want to add a package. Am I missing something? The oras tool doesn't seem to offer a way to add layers to an image either.

Any insight you could offer would be appreciated, thanks.

Russ

russkel avatar Mar 29 '22 23:03 russkel

We are wanting to use this for package hosting but it looks like you have to push the entire repository each time you want to add a package.

Yes.

AkihiroSuda avatar Mar 30 '22 05:03 AkihiroSuda

Is there anything stopping adding additional packages via layers (if tooling can be found that actually does that)?

russkel avatar Mar 30 '22 05:03 russkel

In theory, oras could compare the existing remote OCI Image Config JSON with the new JSON, and skip checking remote existence and pushing blobs that are already referred by the existing JSON.

AkihiroSuda avatar Mar 31 '22 04:03 AkihiroSuda

I guess this is a suggestion for the Oras project. Although it doesn't seem under heavy development.

russkel avatar Mar 31 '22 22:03 russkel

I write a python script to do this: https://github.com/amazingfate/deb-repo

amazingfate avatar Apr 07 '24 02:04 amazingfate