Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to deploy WebLogic Server using docker

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article focuses on "how to use docker to deploy WebLogic Server", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to deploy WebLogic Server using docker.

Deploy WebLogic Server using docker: install and run:

PRE: first download Oracle/docker-images repo from Gitgub:

Git clone https://github.com/oracle/docker-images.git builds Oracle JDK (Server JRE) basic image

1. You must first download the Oracle Server JRE binary file to the docker-images/OracleJava/java-8 directory:

[root@localhost docker-images] # lsCODEOWNERS GraalVM OpenJDK OracleCoherence OracleEDQ OracleHTTPServer OracleRestDataServices OracleUnifiedDirectory README.mdContainerCloud LICENSE OracleBI OracleDatabase OracleFMWInfrastructure OracleInstantClient OracleSOASuite OracleWebCenterSitesCONTRIBUTING.md NoSQL OracleCloudInfrastructure OracleDataIntegrator OracleGoldenGate OracleJava OracleTuxedo OracleWebLogic [root@localhost docker-images] # cd OracleJava/ [root@localhost OracleJava] # lsjava-8 README.md windows-java-8

NOTE: downloading directly from Oracle website wget cannot be decompressed. You need to download it to your local computer first, and then use ftp tool to transfer it to the specified directory.

Build the image under the java-8 directory:

[root@localhost java-8] # docker build-t oracle/serverjre:8. / / View the image [root@localhost java-8] # docker imagesoracle/serverjre 8 c3b09223bbdd 3 days ago 269MB

Build a WebLogic Docker install image

IMPORTANT: you need to download the WebLogic source code you selected to the corresponding directory. The download method is the same as above. For more information, please see the dockerfiles//*.download file.

[root@localhost OracleWebLogic] # lsCOPYRIGHT dockerfiles LICENSE README.md samples workshops [root@localhost OracleWebLogic] # cd dockerfiles/ [root@localhost dockerfiles] # ls12.1.3 12.2.1 12.2.1.1 12.2.1.2 12.2.1.3 buildDockerImage.sh

Run buidDockerImage.sh

$sh buildDockerImage.sh-version / usage Usage: buildDockerImage.sh-v [version] [- d |-g |-I] [- s] Builds a DockerImage for Oracle WebLogic. Parameters:-v: version to build. Required. Choose one of: 12.1.3 12.2.1, 12.2.1.1, 12.2.1.2, 12.2.1.3-d: creates image based on 'developer' distribution-g: creates image based on' generic' distribution-I: creates image based on 'infrastructure' distribution-c: enables Docker image layer cache during build-s: skips the MD5 check of packages * select one distribution only:-d,-g, or-I

At this point, the Weblogic image has been built.

[root@localhost dockerfiles] # docker imagesREPOSITORY TAG IMAGE ID CREATED SIZE12213-domain latest 404a21cbf05b 19 hours ago 1.42GBoracle/weblogic 12.2.1.3-developer 0f666e38d7f3 19 hours ago 1.42GB

Run the WebLogic container

Run an Administration Server:

$docker run-d-- name wlsadmin-- hostname wlsadmin-p 7001pur7001-- env-file. / container-scripts/domain.properties-e ADMIN_PASSWORD=-v: / u01/oracle/user_projects 12213-domain

Run a Managed Server (MS1):

$docker run-d-- name MS1-- link wlsadmin:wlsadmin-p 8001 env-file-- env-file. / container-scripts/domain.properties-e ADMIN_PASSWORD=-e MS_NAME=MS1-- volumes-from wlsadmin 12213-domain createServer.sh

NOTE: the current user needs to have read / write permissions to the directory; version 12.1.3 lacks scripts to add MS.

ISSUE: when adding Managed Server using version 12.2.1.3, the problem of https://github.com/oracle/docker-images/issues/750 occurs. You need to change the UID and GID of any user to 1000 UID and 1000:

Useradd oracle$ usermod-u 1000 oracle$ usermod-g 1000 oracle [root@localhost dockerfiles] # id oracleuid=1000 (oracle) gid=1000 (root) groups=1000 (root) so far, I believe you have a better understanding of "how to deploy WebLogic Server using docker". You might as well do it in practice! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report