Category Archives: Oracle Public Cloud

Using OPC CLI and Vagrant to Ease Access to Oracle Public Cloud


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.


Continue reading

Oracle Java Cloud Service Make a MultiVM DataGrid with One Call – Run this from your Firefox REST Client or cURL

We have all read about AWS instance creation and saving steps….;-)
This single REST call makes a scale out datagrid in one call. (Well you do need a DB instance and storage container in place…ok. three calls and some patience).



Authorization:  {hash of username and password}

BODY (You can also put this in a create.json file):
"serviceName" : "fmw02",
"level" : "PAAS",
"subscriptionType" : "MONTHLY",
"description" : "DevOps and Coherence Demo",
"provisionOTD" : false,
"cloudStorageUser" : “YOUR_USER_ID",
"cloudStoragePassword" : “YOUR_IDENTITY_DOMAIN_PASSWORD",
"sampleAppDeploymentRequests" : false,
"parameters" : [
"type" : "weblogic",
"version" : "",
"edition" : "SUITE",
"domainMode" : "PRODUCTION",
"managedServerCount" : "2",
"adminPort" : "7001",
"deploymentChannelPort" : "9001",
"securedAdminPort" : "7002",
"contentPort" : "8001",
"securedContentPort" : "8002",
"domainName" : "fmw02",
"clusterName" : "FMW02_Cluster",
"adminUserName" : "weblogic",
"adminPassword" : "Welcome_111",
"nodeManagerPort" : "6555",
"nodeManagerUserName" : "nodeMangerAdmin",
"nodeManagerPassword" : "Welcome_111",
"dbServiceName" : “YOUR_DBSERVICE",
"dbaName" : "SYS",
"dbaPassword" : “YOUR_DBPASSWORD",
"shape" : "oc3",
"VMsPublicKey" : "ssh-rsa YOUR SSH KEY"
"type" : "datagrid",
"scalingUnitCount" : "1",
"clusterName" : "CoherenceDGCluster",
"scalingUnit" :
"shape" : "oc3",
"vmCount" : "1",
"heapSize" : "4G",
"jvmCount" : "1"

If you want to avoid the REST Client then do this:

curl -i -X POST -u YOU@ORACLE.COM:YOUR_ACCOUNT_PASSWORD -d @create.json -H "Content-Type:application/" -H "X-ID-TENANT-NAME:YOUR_IDENITY_DOMAIN"
Have fun..
Tagged ,

How to use Selenium with Oracle Developer Cloud Service

Colleague of mine wrote about how he used Oracle Developer Cloud Service configuring Selenium tests.

First he set the below screenshot variables in the hudson job configuration.


Next , in the selenium java test case , he set the proxy with below code.

String PROXY = “″;
org.openqa.selenium.Proxy proxy = new org.openqa.selenium.Proxy();
DesiredCapabilities cap = new DesiredCapabilities();
cap.setCapability(CapabilityType.PROXY, proxy);

Last, executed the test with Maven 3 with the selenium dependencies included.


Tagged ,