Categories: Devops

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'
Herbert Abdillah

Test

View Comments

Recent Posts

Disk 1 tb sisa 100 gb

Berikut ini detail breakdown nya Docker

1 week ago

Langchain JsonOutputParser Invalid json output Error

Sometimes json output from llm like this : {"key": "value"}``` that langchain JsonOutputParser regex cant…

1 month ago

Tontonan Bagus

https://www.youtube.com/watch?v=ZAqIoDhornk (more…)

1 month ago

Ada Apa Didalam Sistem Operasi (Linux). Apa yang membedakan distribusi Linux seperti Ubuntu, Redhat, Alpine?

#include <stdio.h> int main() { FILE *f_ptr; char f_content[256]; char output[512]; f_ptr = fopen("/tmp/1337", "r");…

4 months ago

Convert OpenSSL 1 in Ruby Gem to OpenSSL 3

Version 3 have different interface Example: https://github.com/herbertabdillah/fabric-gateway-ruby/commit/c7377aaf2e62de1e2ac309965a09b5c7c72a2c7e (more…)

2 years ago

Catatan Belajar Ruby on Rails dari aliran Java dan Php

Telah di edit. Sumber Asli : https://twitter.com/nateberkopec/status/1250603032523370496/photo/1 Ruby on Rails merupakan framework web MVC menggunakan…

2 years ago