Tuesday, September 1, 2015

Build Automation and Continuous Integration with Oracle SOA Suite 12c: Installation

Ensure you have read the Introduction.

In this post, we will install the requisite software to achieve build automation and continuous integration.
First, a directory to store the build and integration tools (excluding Oracle SOA Suite 12c) needs to be created. Login as the root user.

mkdir /ci
chown oracle:oinstall /ci

Login as the oracle user.

cd /ci
mkdir apps
cd apps

Oracle JDeveloper 12c

For whatever reason, Oracle decided that you can no longer install the SOA extension in JDeveloper and build a composite. Instead, the only way to obtain a JDeveloper 12c instance that can be used for SOA development is to install the SOA Suite Quick Start.

Once installed, navigate to ORACLE_HOME and rename the jdeveloper folder. Copy the Quick Start ../jdeveloper folder into the ORACLE_HOME.


Login as the oracle user.

Download Maven.

cd /ci/apps
tar -xzvf apache-maven-3.3.3-bin.tar.gz
ln -s /ci/apps/apache-maven-3.3.3 /ci/maven

Add the following to .bash_profile

vi /home/oracle/.bash_profile

export M2_HOME


Reload the profile or logout/login and check the Maven version.

mvn -v
Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T07:57:37-04:00)
Maven home: /ci/apps/apache-maven-3.3.3
Java version: 1.7.0_75, vendor: Oracle Corporation
Java home: /usr/java/jdk1.7.0_75/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.8.13-55.1.2.el6uek.x86_64", arch: "amd64", family: "unix"


cd /ci/apps
tar -xzvf apache-archiva-2.2.0-bin.tar.gz
ln -s /ci/apps/apache-archiva-2.2.0 /ci/archiva

Change the port that Archiva will listen on:

vi /ci/archiva/conf/jetty.xml

<SystemProperty name="jetty.port" default="8080"/> 


<SystemProperty name="jetty.port" default="8081"/>

Start Archiva

cd /ci/archiva/bin
./archiva start

Open a browser and navigate to http://[host]:8081.

You should see the Archiva landing page.


Git is installed via yum.

Login as the root user.

yum install git -y

Login as the oracle user.

cd /ci
mkdir git
cd /ci/git

Verify the installation.

git --version

git version 1.7.1


Jenkins is installed via yum.

Login as the root user.

wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo

rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key

yum install jenkins -y

Start Jenkins

service jenkins start

Stop Jenkins

service jenkins stop

Change the user that Jenkins runs as.

vi /etc/sysconfig/jenkins


Change ownership of jenkins home, webroot, and logs.

chown -R oracle:oinstall /var/lib/jenkins
chown -R oracle:oinstall /var/cache/jenkins
chown -R oracle:oinstall /var/log/jenkins

Start Jenkins

service jenkins start

Login as the oracle user.

Open a browser and navigate to http://[host]:8080.

You should see the Jenkins landing page.

1 comment:

  1. Are you looking to earn money from your websites or blogs via popup ads?
    If so, did you know about PopCash?