OCI Container Registry API (Oracle Cloud)

Docker container registry menyediakan restful API sebagaimana yang ditulis disini

https://docs.docker.com/registry/spec/api/

Salah satu private registry, yaitu OCI Container Registry (OCIR) juga menggunakan repository docker-compatible. di dokumentasi OCIR, untuk API sama dengan API yang digunakan repository docker pada umumnya

https://docs.oracle.com/en-us/iaas/Content/Registry/Concepts/registryprerequisites.htm

Namun ketika dicoba sign in menggunakan user password untuk mendapatkan token, malah error, Errornya bukan unauthorized/bad request, tapi not found. berarti endpoint nya beda.

Kalau kita lihat di dokumentasi oracle, untuk melakukan restful API perlu header authorization khusus

https://docs.oracle.com/en-us/iaas/Content/API/Concepts/signingrequests.htm#seven__Bash

Contoh untuk bash

Pastikan anda sudah menginstall oci-cli dan mengconfig kredensial nya.

TARGET_URI='https://ap-sydney-1.ocir.io/v2/_catalog'
HTTP_METHOD='GET'

oci raw-request --target-uri ${TARGET_URI} --http-method ${HTTP_METHOD} | jq -r '.data'
Subscribe
Notify of
guest
1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
herbertabdillah17

test login pake wordpress.com account