TIME TO ACCOMPLISH: 60 Minutes.
On your Mac or Windows machine, you can use brew or other package managers to manage different installations of scripting frameworks. I have a customer who is using OPC (Oracle Public Cloud) pretty heavily and I wanted to simplify access to the environment. I decided to take a look at the Oracle Compute CLI which was initially released in the Spring 2016.
This CLI rides on top of the REST API and is written using Python 2.6. The REST API is below.
I can also add the Database CLI features which as well. This is a java application and I will add this later.
The usability issue I had was that I didn’t want to deal with the REST API and the authentication with Postman. I know, it is not that hard, but having the Compute CLI is much easier and I can format responses as needed. There are some nice features in the CLI.
The downside to the Compute CLI is that it is certified on OL 6.7 and requires Python 2.6.6 or higher. I have a Mac and I don’t plan on re-formatting my drive anytime soon. This leaves me with Virtualbox, but I didn’t want to use the little window and do the complete ISO install and then configure. Quick, easy and agile is the way. This is where Vagrant comes in for Mac and Windows users.
The Database Cloud Service CLI is a Java 1.7 utility, so all I need to do is install Java on the OL 6.7 instance and run it from there. I have quick gist on installing the jdk or you can download and install the jdk in a similar method that you install the rpm in this blog post. It’s up to you.