Install oci cli using yum
[ds4docker]# yum install python36-oci-cli
Loaded plugins: langpacks, ulninfo
Resolving Dependencies
--> Running transaction check
---> Package python36-oci-cli.noarch 0:2.26.3-1.el7 will be updated
---> Package python36-oci-cli.noarch 0:3.3.1-1.el7 will be an update
--> Processing Dependency: python36-oci-sdk = 2.51.0 for package: python36-oci-cli-3.3.1-1.el7.noarch
--> Processing Dependency: python36-arrow >= 1.0.0 for package: python36-oci-cli-3.3.1-1.el7.noarch
--> Running transaction check
---> Package python36-arrow.noarch 0:0.17.0-1.0.2.el7 will be updated
---> Package python36-arrow.noarch 0:1.1.1-1.el7 will be an update
--> Processing Dependency: python36-typing-extensions for package: python36-arrow-1.1.1-1.el7.noarch
---> Package python36-oci-sdk.x86_64 0:2.43.0-1.el7 will be updated
---> Package python36-oci-sdk.x86_64 0:2.51.0-1.el7 will be an update
--> Processing Dependency: python36-circuitbreaker < 2 for package: python36-oci-sdk-2.51.0-1.el7.x86_64
--> Processing Dependency: python36-circuitbreaker >= 1.3.1 for package: python36-oci-sdk-2.51.0-1.el7.x86_64
--> Running transaction check
---> Package python36-circuitbreaker.noarch 0:1.3.1-1.el7 will be installed
---> Package python36-typing-extensions.noarch 0:3.7.4.2-1.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==========================================================================================================
Package Arch Version Repository Size
===========================================================================================================
Updating:
python36-oci-cli noarch 3.3.1-1.el7 ol7_oci_included 12 M
Installing for dependencies:
python36-circuitbreaker noarch 1.3.1-1.el7 ol7_oci_included 8.1 k
python36-typing-extensions noarch 3.7.4.2-1.el7 ol7_oci_included 2 k
Updating for dependencies:
python36-arrow noarch 1.1.1-1.el7 ol7_oci_included 115 k
python36-oci-sd x86_64 2.51.0-1.el7 ol7_oci_included 18 M
Transaction Summary
============================================================================================================
Install ( 2 Dependent packages)
Upgrade 1 Package (+2 Dependent packages)
Total download size: 30 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/5): python36-circuitbreaker-1.3.1-1.el7.noarch.rpm | 8.1 kB 00:00:00
(2/5): python36-arrow-1.1.1-1.el7.noarch.rpm | 115 kB 00:00:00
(3/5): python36-oci-cli-3.3.1-1.el7.noarch.rpm | 12 MB 00:00:00
(4/5): python36-typing-extensions-3.7.4.2-1.el7.noarch.rpm | 42 kB 00:00:00
(5/5): python36-oci-sdk-2.51.0-1.el7.x86_64.rpm | 18 MB 00:00:00
---------------------------------------------------------------------------------------------------------------
Total 57 MB/s | 30 MB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : python36-circuitbreaker-1.3.1-1.el7.noarch 1/8
Updating : python36-oci-sdk-2.51.0-1.el7.x86_64 2/8
Installing : python36-typing-extensions-3.7.4.2-1.el7.noarch 3/8
Updating : python36-arrow-1.1.1-1.el7.noarch 4/8
Updating : python36-oci-cli-3.3.1-1.el7.noarch 5/8
Cleanup : python36-oci-cli-2.26.3-1.el7.noarch 6/8
Cleanup : python36-arrow-0.17.0-1.0.2.el7.noarch 7/8
Cleanup : python36-oci-sdk-2.43.0-1.el7.x86_64 8/8
Verifying : python36-arrow-1.1.1-1.el7.noarch 1/8
Verifying : python36-typing-extensions-3.7.4.2-1.el7.noarch 2/8
Verifying : python36-oci-sdk-2.51.0-1.el7.x86_64 3/8
Verifying : python36-circuitbreaker-1.3.1-1.el7.noarch 4/8
Verifying : python36-oci-cli-3.3.1-1.el7.noarch 5/8
Verifying : python36-arrow-0.17.0-1.0.2.el7.noarch 6/8
Verifying : python36-oci-sdk-2.43.0-1.el7.x86_64 7/8
Verifying : python36-oci-cli-2.26.3-1.el7.noarch 8/8
Dependency Installed:
python36-circuitbreaker.noarch 0:1.3.1-1.el7 python36-typing-extensions.noarch 0:3.7.4.2-1.el7
Updated:
python36-oci-cli.noarch 0:3.3.1-1.el7
Dependency Updated:
python36-arrow.noarch 0:1.1.1-1.el7 python36-oci-sdk.x86_64 0:2.51.0-1.el7
Complete!
Set up oci config :
[root@oracle-zdmconfig .oci]# oci setup config
This command provides a walkthrough of creating a valid CLI config file.
The following links explain where to find the information required by this
script:
User API Signing Key, OCID and Tenancy OCID:
https://docs.cloud.oracle.com/Content/API/Concepts/apisigningkey.htm#Other
Region: https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm
General config documentation: https://docs.cloud.oracle.com/Content/API/Concepts/sdkconfig.htm
Enter a location for your config [/root/.oci/config]: /root/.oci/config
Enter a user OCID:
Enter a tenancy OCID:
Enter a region by index or name(e.g.
1: ap-chiyoda-1, 2: ap-chuncheon-1, 3: ap-hyderabad-1, 4: ap-ibaraki-1, 5: ap-melbourne-1,
6: ap-mumbai-1, 7: ap-osaka-1, 8: ap-seoul-1, 9: ap-singapore-1, 10: ap-sydney-1,
11: ap-tokyo-1, 12: ca-montreal-1, 13: ca-toronto-1, 14: eu-amsterdam-1, 15: eu-frankfurt-1,
16: eu-marseille-1, 17: eu-zurich-1, 18: il-jerusalem-1, 19: me-dubai-1, 20: me-jeddah-1,
21: sa-santiago-1, 22: sa-saopaulo-1, 23: sa-vinhedo-1, 24: uk-cardiff-1, 25: uk-gov-cardiff-1,
26: uk-gov-london-1, 27: uk-london-1, 28: us-ashburn-1, 29: us-gov-ashburn-1, 30: us-gov-chicago-1,
31: us-gov-phoenix-1, 32: us-langley-1, 33: us-luke-1, 34: us-phoenix-1, 35: us-sanjose-1): us-sanjose-1
Do you want to generate a new API Signing RSA key pair? (If you decline you will be asked to supply the path to an existing key.) [Y/n]: n
Enter the location of your API Signing private key file: /opt/ds4docker/private_key
Fingerprint:
Config written to /root/.oci/config
If you haven't already uploaded your API Signing public key through the
console, follow the instructions on the page linked below in the section
'How to upload the public key':
https://docs.cloud.oracle.com/Content/API/Concepts/apisigningkey.htm#How2