The Introduction to Docker Weblogic
- This type of file is multi-platform so it can be installed on Windows, Mac, and Linux. How to install Weblogic 14c on Windows As mentioned, it is necessary to use JDK in order to install the server.
- The download file is much smaller and the install is much faster than downloading JDeveloper, which also includes WebLogic Server that can be used on the Mac. To install Weblogic Server on your Mac, follow these steps. First, you need to download WebLogic Server 11g (10.3.4) ZIP Distribution from OTN.
- Oracle WebLogic Server is a Java EE application server currently developed by Oracle Corporation. Oracle acquired WebLogic Server when it purchased BEA Systems in 2008. Oracle WebLogic Server forms part of Oracle Fusion Middleware portfolio and supports Oracle, DB2, Microsoft SQL Server, MySQL Enterprise and other JDBC-compliant databases.
In this post, we are going to be exploring the quick and easy option available to get started with weblogic and Docker. In this post, we are going to see how to create a weblogic container in docker in a few easy steps.
Oracle WebLogic Server Installers. Oracle continues to make WebLogic Server downloads available under the Standard OTN License Agreement, as well under the OTN Free Developer License Agreement. To download WebLogic Server releases, including 12.2.1.4, 12.2.1.3, 12.1.3, and 10.3.6 under the Standard OTN License Agreement.
The post’s primary focus to give a big picture on how to start the weblogic container as easy as possible so that you would make your first move and change your perception that containerization is not as hard as people say or as you have pictured ( in case if you have pictured it as complex)
Without further ado, Let’s walk right into the objective.
Some Prerequisites
Before we proceed, these are the few things we feel you must be having (or) done with to follow this post effectively. ( you can still read it and do the setup later. Dont rush for close button )
Docker Installation and Setup:
We presume that you have installed docker Container Engine in your Mac or Windows. they are also known as docker for mac (or) docker for windows. In case you are a linux user, I hope you are all set with your own distribution of docker
To make sure that your docker is setup correctly and it can create containers and pull images from docker hub( An Inventory/Repository of images in the cloud ). Try creating a simple “hello-world” container
If you see the output something similiar to the preceding snippet . You are ALL OK.
User Account in Oracle
Since you are here looking to install weblogic in docker container. I can presume that you might have downloaded packages/software of Oracle such as Java (or) weblogic in the past. Then you must be well aware that the Accept the License and Oracle Single Sign-On stuff.
If not already aware, well, you are gonna get to know what is it
At this point, Please go ahead and register yourself into Oracle and create a new Oracle Account. You will need it not just for this course and for your future.
Click here to create your Oracle.com Account.
Summary of Steps:
With the Docker ready and Oracle Account in hand. Let us take a look at the steps to be performed to create the weblogic container
Here is the summary of steps we are going to be performing
- Login to container registry of Oracle container-registry.oracle.com from docker CLI
- Visit container-registry.oracle.com in the browser and accept the License
- Create a domain.properties file with Admin Username and Password.
- Start the Container with port forwarding
- Access the console at Admin port and validate.
The Execution
Log in to Oracle Container Registry |
In your terminal or docker CLI. Execute the docker login command as shown in the preceding snippet. When prompted for the username and password, Enter the Oracle Credentials you have created in the pre-requisites section.
If done right, You should get Login Succeeded Message.
Visit container registry in the browser and Accept the License |
Step1: Point your browser to the container-registry URL
Step2: On the top right corner, you will have an option to Sign in click that
Step 3: Choose the container you are going to pull. For example, I am going with Middleware
Step 4: In the next repositories page. click on continue
Step 5: Then there will be a new modal with the License agreement. Come down to the page bottom. You will find an option to Accept or Decline
Step 6: Click Accept
Create domain.properties file with Domain/AdminServer username and Password |
In the terminal (for mac) or windows explorer ( for windows users) Create a new directory i.e
/apps/docker/oracle-weblogic
and create a new file named domain.properties
with the following content ( Change the values of username and password as you wish )Note*: Before proceeding to the next step, be advised that it might be necessary to add the newly created directory ( /apps/docker/oracle-weblogic) into Docker File Sharing (Shared Path). by adding the directory into a Shared Path List of Docker.
You can configure shared paths from
Docker -> Preferences... -> File Sharing.
Failure of configuring this “File Sharing” would result in mounting errors. ( which is covered in the video). In such cases, you would be seeing an exception similar to given below.
Start the Weblogic Container |
Use the docker container run command to start the weblogic container. Since the image is not locally present or being invoked for the first time. It would take some time to download the images so be advised.
![Weblogic server download free Weblogic server download free](/uploads/1/2/6/3/126351843/655376767.jpg)
Explanation of the command
docker container run
— Docker container run is the standard docker command to start the container especially for the first time, you can also use docker container start later once you have created it-d
— detach the container, in other words, start the container in the background-p
— Port forwarding between the host and Guest OS. Here the Guest OS is Container. The Left part of the port definition (7000) always refers to the host machine, in my case MAC and the right part of the port definition (7001) represents the port runs in the container which has to be forwarded to host-it
— Allocate the Terminal (TTY) id and start the container with interactive terminal support. It will let us take SSH to the container easily once started--name
— Name the container as wlsnode01-v
— Volume for mounting inside the container, A shared directory between host and container. We are going to share/mount the/apps/docker/oracle-weblogic
of the host os as/u01/oracle/properties
inside the container.
If no issues, the container will start and you can list the running container using the following command
If you are not seeing the container in there, you can see the logs for further troubleshooting
Download Weblogic 12c
More docker container commands are discussed in the video.
Access the weblogic console and Login to validate. |
Open your browser in host OS and enter the URL
_http://localhost:9001/console
and if everything went well. You would be able to see the weblogic server Administration console waiting for you there.You can create machines, Managed Servers even create Vertical cluster right from the console. Explore and Enjoy it.
The Video Guide (VLOG)
I recorded myself doing the all these steps with a little voice-over in case you are looking for something practical or for visual learning. I reckon that it would be helpful
Hope it helps. If you like this post, You can leave a rating here [ratings]
Cheers,
SaravAK
Follow us on Facebook or Twitter
For more practical videos and tutorials. Subscribe to our channel
Find me on Linkedin My Profile
For any Consultation or to hire us [email protected]
If you like this article. Show your Support! Buy me a Coffee.
For more practical videos and tutorials. Subscribe to our channel
Find me on Linkedin My Profile
For any Consultation or to hire us [email protected]
If you like this article. Show your Support! Buy me a Coffee.
More from Middleware Inventory
- Recover weblogic password in 4 steps - Weblogic 12cThe Objective In this post, we will see the easiest way possible to decrypt the WebLogic admin server password. in other words, recovering WebLogic password. You do not need to create a JAR file or copy any security-related files etc. You do not even need your AdminServer to be running. Just…
- Docker Run Image as Container - Create Container From Docker ImageIn this post, we are going to see how to create an image and run the image as a container and manage it. Before we proceed further, it is indispensable, that we are aware of what is an Image and What is a Container. So let us begin from there.…
- What is ORACLE_HOME,MW_HOME,WL_HOME in Weblogic 12cThe Objective In this post, we are going to see what are the different types of home directories available in weblogic and the various options or methods to find the ORACLE_HOME, MW_HOME and WL_HOME of your weblogic 12c installation. The commands and the methods are mostly given for the LINUX…
- Weblogic 12c Nodemanger Native Version ExceptionException: weblogic.nodemanager.common.configexception: native version is enabled but nodemanager native library could not be loaded Solution: For Weblogic10 & 11g Go to your $WL_HOME/common/nodemanager/ Edit the nodemanger.properties file ( If not available create it) Change the value of NativeVersionEnabled=true to NativeVersionEnabled=false Restart the Nodemanager For Weblogic 12c Go to your Domain/nodemanager directory (i.e: /apps/oracle-weblogic/domains/mwidomain/nodemanager/) Edit…
- Weblogic 12c Oracle Datasource TNS ExceptionProblem While creating a Oracle Data source in weblogic 12c, If you are encountering the below error message upon TestConnection. Though all the SID(Database name) and Host and Port are Correct Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor…
First of all, visit the official Oracle Weblogic download page and download the latest generic version. You would need to create a Oracle ID first. Accept the agreement and start the download. In this example, we would download the Weblogic v12.1.2. The filename in this case is wls_121200.jar
Also, note that the generic version does not come with JVM / JDK for its installation. So make sure, you have Java installed on your machine.
Download Weblogic 12.1.3 For Mac
Once downloaded, note the following steps :Weblogic Download 11g
Run the following command to initiate the installer
java -d64 -Dspace.detection=true -Xmx1024m -jar wls_121200.jar
This will start the extraction of the wls_121200.jar and also perform some routine system pre-requisite checks. Note the arguments that we passed. The space.detection parameter is set to true to detect available space. Also, the max memory usage size by JVM is set to 1024m i.e 1 GB.
In the next screen, you'll see the option to modify or change location of Oracle_Home directory. Leave it to default option if you don't want to modify the location. Click Next.
In the following screen, you have to choose the type of installation. Choose the default option. However, choosing the Complete Installation will also install OPatch and some examples like medrec.
In next screen, you can see the overall Installation summary. Save the response file if you intend to perform silent installations in the future. Check this link for reference. Click Next.
This will start the installation process. This will take a few minutes. You can observe the overall progress here.
Once the installation is completed, you'll see the following screen. Click Finish. This will initiate the next step - Configuration Wizard.
Below is the welcome screen of the Wizard.
Following is the first screen of the Configuration Wizard. Here you can set the Weblogic Administrator account and define the Parent domain location. Click Next.
In next screen, you'll see the progress of the domain creation.
Now, in the next and final screen, you'll see the Configuration success scene. Here you can check the option to start domain. Leave it unchecked, so that we can start it manually. Click Finish. That's pretty much a plain vanilla installation of Oracle Weblogic server 12c on Mac OSX machines.
In my next post, I'll cover how to start and stop Weblogic 12c and any associated issues related to it.