Posts

Ansible automation for WebLogic - Part 2: Unarchive and Copy WebLogic installers

Image
This post is continuous learning " Ansible automation for WebLogic " series. If you are not read the previous post please go through it which will be telling you that Java installation using Ansible . That same play book you can use it for CPU patches. The objective of this post is to use the ansible playbook for unzip the WebLogic installer and run the silent mode installer. As we have explored in the last post unarchive module used for the Java installer which had tar.gz extension.  There are multiple modules in ansible which are very powerful. In this post I would like to share my experiments with the following: unarchive module copy module Unarchive module in Ansible We can use the unarchive module for Zip files and also for tar.gz files. When we use this module need to provide the src, dest values that is source and destination. This module automatically copies the zip file and unzip it in the remote The copy module in Ansible The copy module is works similar...

Ansible automation for WebLogic - Part1 Java Installation

Image
Ansible is a task execution engine. Ansible is designed to work on multiple machines to execute the batch of simple task to scale. Ansible is written in Python language, it uses Python 2.6 above is supported platform as requirement. No Agents required! Ansible is simple language that is started as opensource and later it is acquired by Red Hat. The core communication happens with SSH. SSH widely available trusted in all UNIX and Linux systems. Ansible can be run any system as it doesn't relay on central machine. Ansible automation for Java and WebLogic 12c  Here my experiment goes with two Ubuntu 14 Trusty Tahr machine. In one machine Ansible will be installed and other machine is used as target node, in real-time scenario the target list can be many hundreds and this has been proven by NASA and other Ansible implements. Using Ansible lots of organizations get into structured and role based automation implementations successful. For Redhat flavors The actions that n...

The docker-compose for Oracle 12c XE

Image
Oracle Database 12.1.0.2 Express Edition After a while got time to explore the new learning in my way. Oracle 12.1.0.2 Express edition on docker container is my goal. In this post I am going to explain you how did I achieved this with different path of using docker-compose commands to bringing up the automated XE container. The regular choice is defined in GitHub and Docker hub it was mentioned to use docker pull and docker run commands to use. Advantages of containerizing Oracle 12c XE No need to download any software from OTN No need to install - dockerfile will take care of it No need to run dbca for Database cration - executed moment container boot time No need to start LISTENER, STARTUP database because this container choosen is AUTOMATED [OK] Lets search for the Oracle 12c XE docker search oracle12c Output of docker search result Docker Oracle 12c XE search The docker-compose for Oracle 12c XE Database oracle12cxe: image: rodrigozc/oracle12c ports: ...

2. Writing Dockerfiles to install JDK and WebLogic to create docker images

Image
We have a couple of options to create the docker images. In the last post, we got the docker installed Linux environment available. Now in this post, we will develop the Dockerfile such that it can create an image that can have Java JRE installed and WebLogic 12c installed. Lets jump on the task where we will prepare, create the Dockerfile and build the image and run the container to check all done successful. Prepare software installation Remember that official images always the preferable choice. When you search for docker images from the public repository that is hub.docker.com. We might get a huge list some of them are Automated some of them are not. The only one will be committed as an Official Image. Here selecting an image is also a strategy, logic inside. So carefully proceed further. We need to install Java Development Kit JDK latest version and WebLogic in silent mode installation. Step 1: Copy installers to data folder this is my convention I've used Here f...

5. docker-compose for WebLogic cluster deployment

Image
In the earlier post you have seen how to use docker-compose for WebLogic images to build and also run the container with new application deployment. In this post you will be able to see the WebLogic managed servers forms cluster and the application will be deployed on top of it. Prerequisites Let me keep the list of prerequisite steps which you can follow my previous blog post or youtube video.  docker pull oraclelinux:7-slim   git clone https://github.com/oracle/docker-images.git  download server-jre1.8 latest version copy to OracleJava/dockerfiles build the image and make it as oracle/serverjre:8 download weblogic 12.2.1.2.0 quick installer which is used for development, it is small in size. image name it as oracle/weblogic:12.2.1.2-developer   create new docker images where 12212-domain:latest using WLST and shell script which are available in container scripts.  create new docker images named as 1221-appdeploy:latest where it uses 12212-doma...

4.Learning docker-compose for WebLogic with examples

Image
Learning docker-compose for WebLogic with examples The docker-compose is one of the docker integration tool. it works based on yml or yaml file. The yml files are easy to read plain like English text. It is developed alternative to JSON files, both are used to store the key, value pairs and hierarchical structured data. To run docker-compose command in the current directory there should be  docker-compose.yml file must be exist. Prerequisites for docker-compose well awareness of docker YML syntax docker network docker-compose build with Example Dockerfile is used to build the docker image that should be present in the current directory. Create docker-compose.yml file Lets create the docker-compose.yml file for WebLogic Domain container which uses 1221-appdeploy image. The AdminServer port exposed as 7001 from the container and on left side host port opened with 7001. The container should run the command/shell script. here we can select startWebLogic.sh as start...

1. Learning dockerization for WebLogic on Oracle Linux in Vagrant

Image
Writing this blog post after couple of executions experiments and research on docker. The basic requirement for docker is there must be a Linux/Unix based platform. Here I am creating that one on my Windows host machine, and the guest Ubuntu Trusty64 platform with the help of Vagrant and Oracle Virtualbox provider. vagrant Ubuntu docker - Oracle Linux images In this Article I am not dicuss about from the scratch What is docker etc. I'm not talking about Virtualization vs Containerization. Create testnode1 folder on the Windows machine. I've created on F:\testnode1. The Vagrantfile to launch Ubuntu Trusty64 Virtual machine is as follows: Vagrantfile # -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure(2) do |config| config.vm.define "test" do |testnode1| testnode1.vm.box = "williamyeh/ubuntu-trusty64-docker" testnode1.vm.hostname="testnode1.vybhava.com" testnode1.vm.network "private_network", ip: "192.168.33...