jib icon indicating copy to clipboard operation
jib copied to clipboard

[Question] Does jib support chunked layer (blob) uploading?

Open Rkuro opened this issue 4 years ago • 2 comments

This is not an issue, just a question. In the docker registry HTTP spec they mention that you can do chunked blob uploads in smaller PATCH requests and I'm trying to figure out whether jib supports this.

Looking at the BlobPusher class - it seems like it does use a PATCH request but I don't see any chunking mechanics being implemented inside of it which makes me think that jib does not currently support this. There's also this comment which also suggests that this is not a current feature but figured I'd ask in case I missed something.

Environment: N/A

  • Jib version: 0.20.0
  • Build tool: Gradle
  • OS: RHEL7

Rkuro avatar Jun 02 '22 14:06 Rkuro

No, it's not implemented.

About a year ago, a Jib user (@sineaggi) implemented and tested this feature, which seemed working. However, the user realized that GitHub doesn't support uploading chunks. The user filed a bug against them and stopped there. Definitely we didn't ever want to turn this feature on if it's going to break users who use a major registry like ghcr.io. But it sounds like they may have fixed this recently.

chanseokoh avatar Jun 02 '22 14:06 chanseokoh

I see - this is helpful and answers my question! Thank you @chanseokoh 🙏

Rkuro avatar Jun 02 '22 20:06 Rkuro