-
Notifications
You must be signed in to change notification settings - Fork 805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
skopeo sync: Support incremental updates to dir storage #1237
Comments
Thanks for reaching out. What is the exact error you are getting? Which version of Skopeo are you using? |
1.2.2 |
Yes, it would be nice to have that, but I'm somehow concerned about the amount of code to introduce. IMHO a "real" sync would probably require at least:
It feels like we're reimplementing rsync 😅 |
otherwise what's the current use case for sync?
anyway this is also the case when the destination is a docker registry. |
No. This only happens for the |
🤣 I think we should keep it simple. The destination will be removed and recreated (i.e., full overwrite)? |
for me it'd be even better the the current behaviour. |
@vrothberg You must be a better typer then me. --dest-overwrite={true,false} How about --force. |
I love typing but |
A friendly reminder that this issue had no activity for 30 days. |
my 2c is that making If a full overwrite would be equivalent to |
I |
… and then |
IMHO Anyway, let’s figure out 1) what is the need, and 2) what do we want to do about that need, before tinkering with the UI of an unknown feature. |
Yeah, I’m torn. Skopeo originally was a noddy wrapper around c/image with basically nothing to worry about or design; Pragmatically, I think clean PRs are welcome, and if contributors or drive-by users want to take it much further than originally anticipated (and the maintainers have the bandwidth to keep up with those PRs), that’s great. (By “clean PRs” I mean not to hand off quick hacks and technical-debt to others to maintain.) Alternatively, some users may be much better served with calling c/image directly from a much larger program, e.g. a build system / pipeline that does already have a database of artifacts and their known locations. (Or Skopeo would be forked if the maintainers couldn’t do a good enough job, of course.) E.g. |
A friendly reminder that this issue had no activity for 30 days. |
It seems like a necessary feature to me. Force overwrite seems like a good interim solution. I agree though, the terminology "sync" makes you think it is actually syncing. |
|
Bump: Ran into this fairly hard when working on containers/podman#19796 Scenario: You need to sync a huge number of images across multiple registry namespaces. It breaks somewhere in the middle or right at the end. Or, something it previously sync'd has become corrupted for some reason or another. Could skopeo sync be made to do some minimal checking on the destination, and if it's borkd in some obvious way, clobber and re-sync it? I would also be in support of some kind of |
A friendly reminder that this issue had no activity for 30 days. |
I'm try to copy a full registry with skopeo and keep it sync. but it's not possible or...at least only once.
unfortunately it's work for the first run but not in the second case. it's be very useful to be an overwrite and a delete option. in this case we can overwrite a local directory and keep updated with a given registry. of course i can write a more complicated shell script and it'll work but imho this would be a very useful feature.
The text was updated successfully, but these errors were encountered: