In recent previous articles I have discussed the use of Vagrant and Puppet for the automated creation of Virtual Machines, for example with various Oracle software components completely installed into them. In this article, I am merely the consumer of goodies. Edwin Biemond published on GitHub the complete set of Vagrant and Puppet configuration files for creating VMs with the SOA Infra database (Oracle Database 188.8.131.52, populated with the RCU installer) and the SOA Suite 12.1.3 run time environment – including Service Bus, see: WebLogic 12.1.3 infra (JRF) with SOA,OSB.
In this article, I will describe the steps I took to actually produce the two VMs using Edwin’s scripts. The visual description of the whole process looks something like the next figure:
Prepare your host environment
First of all, prepare your local environment for the use of Vagrant and Oracle VirtualBox, if you have not already done so. The required actions are described in this article -Fastest way to a Virtual Machine with JDeveloper 12.1.3 and Oracle Database XE 11gR2 – on Ubuntu Linux 64 bit – under steps 1 through 4.
Downloaded required software
Next you will have to download the installation files for Java (JDK 7u55), Oracle Database 184.108.40.206, FMW 12.1.3 Infrastructure, SOA Suite 12.1.3 and Service Bus 12.1.3. In my case, all files are downloaded into a single directory:
the file fmw_220.127.116.11.0_infrastructure.jar was extracted from the V44416-01.zip file that I downloaded from eDelivery (for the FMW 12.1.3 Infrastructure)
the files fmw_18.104.22.168.0_osb_Disk1_1of1.zip and fmw_22.214.171.124.0_soa_Disk1_1of1.zip are actually the renamed versions of V44423_01.zip and V44420_01.zip that I downloaded from eDelivery:
tips for downloading:
The specific database software for 126.96.36.199 can only be downloaded from Oracle Support at this time. Go to https://support.oracle.com and search for patch 13390677 (also see instructions in this article: http://www.snapdba.com/2014/01/oracle-database-11gr2-11-2-0-4-installation-on-oracle-linux-6-4/). Download the software for Linux x86-64.
Then click on Download.
Note: you really only have to download two files (out of 7):
The Java 7 JDK Update 55 can be downloaded from eDelivery, as part of the Fusion Middleware 12c Media Pack. Alternatively, the download site is: http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html#jdk-7u55-oth-JPR:
make sure you download the JDK for Linux x86-64 (the guest OS) and use the JDK 1.7u55 jdk-7u55-linux-x64.tar.gz file.
The required file JDK 7 JCE policy UnlimitedJCEPolicyJDK7.zip can be downloaded here: http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html
The required files for Fusion Middleware are available from the eDelivery cloud at Oracle: https://edelivery.oracle.com.
Search for Fusion Middleware on platform Linux x86-64:
Click on the Oracle Fusion Middleware 12c Media Pack. On the next page, click the Download button for three items:
After downloading, extract fmw_188.8.131.52.0_infrastructure.jar from the V44416-01.zip file. Rename V44423_01.zip and V44420_01.zip to fmw_184.108.40.206.0_osb_Disk1_1of1.zip and fmw_220.127.116.11.0_soa_Disk1_1of1.zip respectively.
Download Edwin’s Configuration Files
You can download the required files from GitHub in a ZIP-archive using: https://github.com/biemond/biemond-orawls-vagrant-12.1.3-infra-soa/archive/master.zip or you can use Git (related tools) and clone the repository at https://github.com/biemond/biemond-orawls-vagrant-12.1.3-infra-soa.git.
We’ll assume a simple download as ZIP file:
Extract the content from the zip file to any directory you fancy, for example c:\temp:
Edit the Vagrantfile – configure the correct software directory
The Vagrantfile contains two vm.synced_folder definitions – one in the soa2admin2 VM and one in the soadb VM. Ensure that both refer the directory on your host system into which you have downloaded the installation software:
Note: you may want to set up an additional shared folder for use later on to exchange files between guest (VM) and host.
Create the two VMs using Vagrant
Open a command line window and navigate to the biemond-orawls-vagrant-12.1.3-infra-soa-master directory that was extracted from the GIT zip archive.
vagrant up soadb
This will start the creation of the first VM – with the Oracle Database 18.104.22.168 environment. The RCU installer is executed during the creation of the second VM and then the SOA Infra database schema are created into this database.
In under 10 minutes, the first VM is done:
The VirtualBox manager shows the details for this machine:
Let’s now have Vagrant create the second VM, with the SOA Suite run time middleware components (and install the SOA Infra database at the same time):
vagrant up soa2admin2
This will start the creation of the second VM.
after 15 minutes and a bit, the second VM is created as well.
The VirtualBox dashboard shows its details:
Testing the SOA Suite 12.1.3 run time environment
A quick test of our new environment is done from the browser. The middleware VM – soa2admin2 – runs on IP address 10.10.10.21. The WebLogic Admin Server is started and can be accessed through the Admin console – http://10.10.10.21:7001/console – and the Enterprise Manager FMW Control 12c: http://10.10.10.21:7001/em.
After logging in with weblogic/weblogic1, the Enterprise Manager dashboard shows up:
In the console, we can inspect the details for the three WLS Managed Servers that were created, and we can start them, for example soa_server1
Once the soa_server1 is running – listening on port 8001 – we can see this reflected in the EM FMW Control:
Note that a sample composite is pre-installed: SimpleApproval.
The SOA Composer application can be accessed at http://10.10.10.21:8001/soa/composer
and likewise the BPM Worklist application for controlling Human Tasks as http://10.10.10.21:8001/integration/worklistapp
As always – big kudos to Edwin Biemond for sharing his Vagrant & Puppet configuration with the community. Once all downloads are done, you can create the VMs with a complete running SOA Suite 12c environment within 30 minutes waiting time (and with less than one minute of your personal time. Impressive!