Run Oracle Cloud Infrastructure CLI from Docker
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Dockerfile
README.md
requirements.txt

README.md

Instructions

Running oci-cli

  1. Make sure you have Docker installed.

  2. Make sure that your OCI configuration in ~/.oci/config does not have any absolute path references to your OCI key. For example:

[DEFAULT]
key_file=~/.oci/oci_api_key.pem
user=<USER_OCID>
fingerprint=<USER_FINGERPRINT>
tenancy=<TENANCY_OCID>
region=us-phoenix-1
  1. Add this to your .profile:
oci() { docker run --rm --mount type=bind,source=$HOME/.oci,target=/root/.oci stephenpearson/oci-cli:latest "$@"; }

Building oci-cli

docker build .
docker tag <image-id> my_hub_user/oci-cli
docker push my_hub_user/oci-cli