trow
trow copied to clipboard
OCI Index Building Service
At the moment, building a multi-arch image puts a lot of responsibility on the client. They have to build the separate images and then create an OCI index that points to the separate images. This is particularly problematic in CI builds, where servers of different archs are used to create the builds and you need to run a secondary pass to put them all together.
A lot of the problems could be alleviated by having an endpoint that automatically adds images to the appropriate OCI index e.g. docker push myreg:5000/_builder/arm64/linux/myrepo/myimage:test would add an entry for arm64 and linux that can be pulled via
docker pull myreg:5000/myrepo/myimage:test`.
I have created a Google doc that should be worked into a proper RFC.