Posts

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...

Windows command line Tricks for Better, Faster Administration

Image
Windows CMD commands for life made easy for WebLogic, OFMW, WebSphere, Tomcat, JBoss Administrators. Windows shortcuts will shave our time more. Especially working on Windows 8.1 is more complex than previous so I pulled out some of the important commands which will make your life easy. Some of them are collected from the daily works in OFMW administrator. Mapping of SHELL command with CMD commands How to set the proxy in CMD? You need to run the following command in the CMD to set the proxy. set HTTP_PROXY=http://your_proxy:your_port set HTTPS_PROXY=https://your_proxy:your_port How to add a IP, DNS to your Windows hosts file? The Linux OS maintains /etc/hosts and it can be editable only by root user. Whereas, in Windows OS same file is available at c:\windows\system32\drivers\etc\hosts. This will be same for Windows 7 and Windows 8.1. You could also check in the hot Windows 10. Hence the command to edit this : start notepad c:\windows\system32\drivers\etc\hosts ...

WebLogic Wrapper Scripts

Image
Administrators with automation skill would perform than many admins. Requirement makes you to write automation scripts. I was working on Oracle Virtual Box, which is running SSH service. Hence I am able to connected thru PUTTy to the ubuntu Guest Linux server. By making Static IP configuration on the additional network adapter this was happen to possible.  Everything going good! when I ran the WebLogic server from the PuTTY. It is working until when it is connected and alive. Once I went for break/Lunch the Windows system went to sleep then WebLogic server stopped due to PuTTY session inactive. To avoid this we can use the Wrapper start scripts.  Idea behind the wrapper script/ psuedo code Using the startWebLogic.sh script in background using & use the nohup -- no hungup to run the process even the PuTTY inactive or closed The log file generated by starting WebLogic server redirected to a separate file. The Standard error file also merged with standard output log...

JMS MessageBridgeRuntime monitoring

We were in the developing a orchestration application platform which requires multiple JMS Messaging bridges. We have configured near 10 Bridges to different external systems. When maanaged servers each one host a bridge it will be doubles the count that we cannot monitor on single screen in the  admin console. On the Weblogic Admin Console we can monitor the Bridge status using Bridges -> Monitoring tab.For testing we had started single managed server and checked the Bridge monitoring status.  It could be either 'Forwarding Messages' or 'Fail to connect Source' or 'Fail to connect to Target'. The actual tragedy starts when it comes to production environment, where we have multiple managedservers in the cluster. Usually Bridges status matters when it connects to third party messaging providers such as MQ Series or something else. Assume that, there are 10 Bridges deployed to 10 managed servers on the WebLogic Console becomes very slow when you use 'Mo...