"Series 5" using Dockerfile to create a CentOS docker image with WebLogic

Source: Internet
Author: User
Tags node server docker run

WebLogic is a Java EE architecture-based middleware (application server), WebLogic maintained by Oracle Corporation.
? ? WebLogic is a Java application server for developing, integrating, deploying, and managing large-scale distributed web applications, Web applications, and database applications. is one of the most important Java application Server software in the commercial market, and also the first successful commercial application server in the world.
Unlike Tomcat, WebLogic is a commercial software, so you need to have authorization to use it. However, the Oracle company allows developers to use WebLogic in development mode. If developers need to use WebLogic in a production environment, they will need to purchase a formal business license from Oracle Corporation. WebLogic's installation software can be downloaded to the official website of Oracle.
? ?
? ? Basic concepts of WebLogic:
?? WebLogic Domain:
The WebLogic domain is a set of related weblog server resources that are managed as a unit. A domain contains one or more WebLogic server instances, which can be clustered instances, non-clustered instances, or a combination of clustered and non-clustered instances. A domain can contain multiple clusters. Domains also contain the application components that are deployed in the domain, the resources and services that are required for these application components and server instances in this domain. Examples of resources and services used by application and server instances include computer definitions, optional network channels, connectors, and startup classes.
?? Administration Server
The domain contains a special WebLogic server instance called the Administration server, which is the core of all the resources in the User Configuration and management domain.
?? Manager server
?? In general, other instances that are called Join Domain are managed servers, and all Web applications, EJBS, Web services, and other resources are deployed on these servers.
? ? A typical WebLogic deployment should be shown in 11-4.
If you want to deploy using a regular administrator +node, you need to write out the startup scripts for the Administrator server and node server separately in the run.sh script. The advantage of this is that you can use WebLogic concepts such as clustering, synchronization, and so on. Deploy a clustered application that only needs to be installed once to the cluster.
? ? The disadvantages are:
? ? The Docker configuration is complex.
?? There is no way to automatically expand the compute capacity of the cluster, if you want to add nodes, you need to create a node on administrator, then configure the new container run.sh startup script, and then start the container.
? ?
It is recommended to install the application on Adminiserver, and when it is necessary to expand, start multiple adminiserver nodes and use Adminiserver as managed server. The pros and cons of doing this are the opposite of traditional deployment methods.
? ?
Create a mirror using the Docker commit + Dockerfile method
? The following will take WebLogic 12.11, JDK 1.6, centos7.4 as an example to create a mirror with the WebLogic service.
? ① preparatory work
? ? Due to the complexity of the installation and deployment of WebLogic, the author will first enter the container via Docker Run-ti to do most of the work, and then submit the container as a mirror via Docker commit. Finally, further use of the Dcokerfile to complete the final WebLogic image creation, for some complex image creation.
? ? Create the WebLogic directory on the local host, upload the JDK and WebLogic installation files from the other hosts to the directory, and create the Dockerfule and run.sh script files:
[Email protected] ~]# mkdir weblogic_jdk1.6
[Email protected] ~]# CD? weblogic_jdk1.6/
[email protected] weblogic_jdk1.6]# touch Dockerfile run.sh??







??

"Series 5" using Dockerfile to create a CentOS docker image with WebLogic

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.