gitlab-org--gitlab-foss/lib/container_registry
Stan Hu a40116065e Support Docker OCI images
Docker Distribution v2.7.0 shipped with OCI support, but our container
registry client was not updated to handle the manifest format in the
HTTP `Accept` header.  As a result, API calls to retrieve a manifest
would return with an error, "OCI manifest found, but accept header does
not support OCI manifests". This would result in blank fields in the
container registry page and prevent tags from being deleted.

To fix this, we just need to add
`application/vnd.oci.image.manifest.v1+json` to the `Accept` header and
configure Faraday to parse the response as JSON. The response structure
is the same as the standard Docker Distribution V2 manifest.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/58685

Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/12877
2019-07-25 04:11:38 -07:00
..
blob.rb Enable more frozen string in lib/**/*.rb 2018-10-06 17:02:50 -07:00
client.rb Support Docker OCI images 2019-07-25 04:11:38 -07:00
config.rb Enable more frozen string in lib/**/*.rb 2018-10-06 17:02:50 -07:00
path.rb Enable more frozen string in lib/**/*.rb 2018-10-06 17:02:50 -07:00
registry.rb Enable more frozen string in lib/**/*.rb 2018-10-06 17:02:50 -07:00
tag.rb Add Container Registry API 2019-01-25 13:13:48 +01:00