{"id":28194301,"url":"https://github.com/monkey-projects/oci-container-instance","last_synced_at":"2026-02-20T19:04:31.716Z","repository":{"id":203473348,"uuid":"709358744","full_name":"monkey-projects/oci-container-instance","owner":"monkey-projects","description":"Clojure library to invoke the OCI container instance API","archived":false,"fork":false,"pushed_at":"2025-07-09T11:37:06.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-29T18:52:18.604Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/monkey-projects.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-10-24T14:57:44.000Z","updated_at":"2025-07-09T11:37:09.000Z","dependencies_parsed_at":"2024-01-12T19:29:24.287Z","dependency_job_id":"222410f7-ee99-40b1-a7b8-97b3c71897c3","html_url":"https://github.com/monkey-projects/oci-container-instance","commit_stats":null,"previous_names":["monkey-projects/oci-container-instance"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/monkey-projects/oci-container-instance","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkey-projects%2Foci-container-instance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkey-projects%2Foci-container-instance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkey-projects%2Foci-container-instance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkey-projects%2Foci-container-instance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monkey-projects","download_url":"https://codeload.github.com/monkey-projects/oci-container-instance/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkey-projects%2Foci-container-instance/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29661585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T16:33:43.953Z","status":"ssl_error","status_checked_at":"2026-02-20T16:33:43.598Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-16T13:11:51.605Z","updated_at":"2026-02-20T19:04:31.701Z","avatar_url":"https://github.com/monkey-projects.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OCI Container Instances\n\nThis is a Clojure library that allows you to access the [Oracle Container\nInstance API](https://docs.oracle.com/en-us/iaas/Content/container-instances/home.htm)\nin an idiomatic fashion.  There already exists a Java library, provided\nby Oracle itself, but I think it's not very efficient to first call a\nbunch of Java classes, marshalling all the JSON stuff into POJOs and then\nconverting them back to Clojure maps.  This library uses [Martian](https://github.com/oliyh/martian)\ninstead, to directly call the REST API.\n\n## Usage\n\nFirst include the library in your project:\n```clojure\n;; deps.edn\n{com.monkeyprojects/oci-container-instance {:mvn/version \"\u003cversion\u003e\"}}\n```\nOr\n```clojure\n;; Leiningen\n[com.monkeyprojects/oci-container-instance \"\u003cversion\u003e\"]\n```\n\nInclude the namespace, and create a client using your OCI credentials:\n```clojure\n(require '[monkey.oci.container-instance.core :as ci])\n\n;; Create a Martian client (aka context)\n(def ctx (ci/make-context {:tenancy-ocid \"my-tenancy-ocid\"\n                           :user-ocid \"my-user-ocid\"\n\t\t\t   :key-fingerprint \"fingerprint\"\n\t\t\t   :private-key my-private-key\n\t\t\t   :region \"oci-region\"}))\n\n;; Start sending requests\n(ci/create-container-instance ctx {:container-instance {...}})\n```\n\nSee the [API documentation](https://docs.oracle.com/en-us/iaas/api/#/en/container-instances/20210415/)\nto see which calls are available and which body parameters you need to pass in.\nFor some calls you will need to specify the `:compartment-id` which is the\nOCID of the compartment.  For others you only need the `:instance-id`.\nSometimes you also need to pass in a body, for example when creating an new\ncontainer instance.\n\nEach request returns a `future` to the result, because in the background\nwe are using [http-kit](https://github.com/http-kit/http-kit).  It emphasises\nthe remote nature of the functions and also allows you to implement an async\nflow using [Manifold](https://github.com/clj-commons/manifold).\n\n## License\n\nCopyright (c) 2023 by [Monkey Projects](https://www.monkey-projects.be).\nLicensed under [MIT license](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonkey-projects%2Foci-container-instance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonkey-projects%2Foci-container-instance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonkey-projects%2Foci-container-instance/lists"}