2. Agenda:
Overview of Docker.
Docker components and elements.
Why Docker and its benefits.
Steps to install Docker on RHEL.
Steps to install WebLogic 12c using Docker.
Demo.
ORACLE WEBLOGIC 12c ON DOCKER
3. Docker is a platform that enables users to build, package,
ship and run applications.
Docker users package their applications into a Docker
image.
Docker images are portable artifacts that can be
distributed across Linux environments.
OVERVIEW OF DOCKER
4. Docker is based on Linux LXC.
The main secret sauce behind Docker is
Isolation with namespace.
Some of the namespaces Docker uses are:
Pid, Net, IPC, Mnt, Uts
Isolation with Cgroups. For ex:
Memory, CPU etc
Union File System
HOW DOES IT WORK
6. Docker containers are lightweight
Docker containers are portable.
Docker enables devops by breaking the silos between
development and operation teams.
Enables consistent environments or immutable
infrastructure. Hence solving the common problem of
mismatch between dev, test and prod envs.
BENEFITS OF DOCKER
7. Docker is supported on RHEL 7
Minimum kernel version required is 3.10
Docker can be installed using the “yum” package
manger.
Install the docker package using the command : “sudo
yum install docker-engine”
Start the docker engine: “sudo service docker start”
Check you have a working install: “sudo docker info”
DOCKER INSTALLATION
8. Weblogic 12c is certified on Docker.
Oracle has released dockerfiles and supporting scripts to
build Weblogic docker images on GitHub.
(https://github.com/oracle/docker-
images/tree/master/OracleWebLogic)
Using these dockerfiles custom WLS docker image can be
built.
Pre-requisites are required JDK and WLS binaries should
be copied to appropriate location before bootstrapping
the image via dockerfile.
INSTALL WEBLOGIC 12c USING
DOCKER
9. The following steps will create a Weblogic docker image using
which the containers can be spawned.
sudo docker build https://github.com/oracle/docker-
images/OracleWeblogic
From OracleWeblogic/samples/1213-domain folder run sudo
docker build -t oracle/weblogic:12.1.3 .
Now its time to boot up the container for Admin server using
sudo docker run –d –p 7001:7001 –name wlsadmin
oracle/weblogic:12.1.3
Verify at http://ip:7001/console (Ip is public ip of aws instance)
INSTALL WEBLOGIC 12c USING
DOCKER… Contd..
10. This talk gives an overview of Docker and simple
application/use of it to dockerize Weblogic.
The intent is to spread the Dev-ops philosophy within our
company.
Maybe in future implement OFMW development labs
using Docker.
Takeaways…..
Docker images are portable artifacts that can be distributed across Linux environments. Images that have been distributed can be used to instantiate containers where applications can run in isolation from other applications running in other containers on the same host operating system.