Sunday, December 10, 2023

Create Weblogic 14.1.1 domain from Docker image

 

Oracle HOWTO


See also


GitHub 



Oracle HOWTO


Oracle WebLogic domain in volume on Docker

This project creates a Docker image which contains an Oracle WebLogic domain image. The image extends the WebLogic install image and builds an WebLogic domain persisted to a host volume.

How to build and run

This project offers a sample Dockerfile and scripts to build an Oracle WebLogic 12.2.1.3 domain in volume.

Building the Oracle WebLogic 14.1.1 developer install image

See https://danielveselka.blogspot.com/2023/12/create-weblogic-1411-docker-image.html

Providing the Administration Server user name and password and Database username and password

The administration server user name and password must be supplied in a domain_security.properties file. This file should be located in a HOST directory that you will map at Docker runtime with the -v option to the image directory /u01/oracle/properties. The properties file enables the scripts to configure the correct authentication for the WebLogic Administration Server.

The format of the domain_security.properties file is key=value pair:

    username=myadminusername
    password=myadminpassword

Note: Oracle recommends that the domain_securtity.properties file be deleted or secured after the container and the WebLogic Server are started so that the user name and password are not inadvertently exposed.

Build the WebLogic Domain Image

  1. To build the 14.1.1 WebLogic domain image, run:

    $ docker build -f Dockerfile -t 1411-weblogic-domain-in-volume .

  2. Verify you now have this image in place with:

`$ docker images`

Start the container

Start a container from the image created in step 1. You can override the default values of the following parameters during runtime in the ./properties/domain.properties file. The script ./container-scripts/setEnv.sh sets the environment variables to configure the domain. The properties set as environment variables are:

  * `DOMAIN_NAME`
  * `ADMIN_PORT`
  * `ADMIN_NAME`
  * `ADMIN_HOST`
  * `MANAGED_SERVER_PORT`
  * `MANAGED_SERVER_NAME_BASE`
  * `MANAGED_SERVER_CONTAINER`
  * `CONFIGURED_MANAGED_SERVER_COUNT`
  * `CLUSTER_NAME`
  * `CLUSTER_TYPE`
  * `PRODUCTION_MODE_ENABLED`
  * `DOMAIN_HOST_VOLUME`

NOTE: When you set the DOMAIN_NAME, the DOMAIN_HOME=/u01/oracle/user_projects/domains/$DOMAIN_NAME.

IMPORTANT: The domain directory needs to be externalized by using data volumes (-v option). The Administration Server as well as the Managed Servers need to read/write to the same DOMAIN_HOME.

We are supplying scripts run_admin_server.sh and run_managed_server.sh to facilitate setting the environment variables defined in the property files and running the admin server and managed server containers.

Start a container to launch the Administration and Managed Servers from the image created in step 1.

To run an Administration Server container, call:

    `$ sh run_admin_server.sh`

To run Managed Server with base name MS pass in to the scrtipt run_managed_server.sh the name of the managed server you want to run and the host port that will be mapped to the managed server port defined in MANAGED_SERVER_PORT.

To run managed server one with name MS1 and mapped to host port 98001 call:

    `$ sh run_managed_server.sh MS1 98001`

To run managed server two with name MS2 and mapped to host port 98002 call:

    `$ sh run_managed_server.sh MS2 98002`

Access the Administration Console:

`$ docker inspect --format '{{.NetworkSettings.IPAddress}}' <container-name>`
    This returns the IP address of the container (for example, `xxx.xx.x.x`).  Go to your browser and enter `http://xxx.xx.x.x:9001/console`

    Because the container ports are mapped to the host port, you can access it using the `hostname` as well.


Create Weblogic 14.1.1 domain 


Files for domain 

dave@dave:/git/weblogic/docker-domain$ find
.
./build.sh
./container-scripts
./container-scripts/add-machine.py
./container-scripts/add-server.py
./container-scripts/commEnv.sh
./container-scripts/commonfuncs.py
./container-scripts/create-wls-domain.py
./container-scripts/createMachine.sh
./container-scripts/createServer.sh
./container-scripts/jaxrs2-template.jar
./container-scripts/waitForAdminServer.sh
./container-scripts/wlst
./container-scripts/createWLSDomain.sh
./container-scripts/get_healthcheck_url.sh
./container-scripts/setEnv.sh
./container-scripts/startManagedServer.sh
./README.md
./Dockerfile
./properties
./properties/domain.properties
./properties/domain_security.properties
./run_admin_server.sh
./run_managed_server.sh

Docker images
dave@dave:/git/weblogic/docker-domain$ docker images
REPOSITORY                            TAG                   IMAGE ID       CREATED             SIZE
oracle/weblogic                       14.1.1.0-generic-11   a63e1c89480e   About an hour ago   1.27GB
<none>                                <none>                a6efff1e460a   About an hour ago   1.91GB
<none>                                <none>                74fc89d6f899   About an hour ago   1.91GB
oracle/jdk                            11-ol7                fea3c351284b   2 hours ago         451MB
<none>                                <none>                dcacebd8006e   2 hours ago         1.14GB
oraclelinux                           7-slim                506c06ed74d4   3 weeks ago         138MB

Modify persistent volume location
$ git diff properties/domain.properties
diff --git a/docker-domain/properties/domain.properties b/docker-domain/properties/domain.properties
index b724819..9bc89ac 100644
--- a/docker-domain/properties/domain.properties
+++ b/docker-domain/properties/domain.properties
@@ -14,4 +14,4 @@ CONFIGURED_MANAGED_SERVER_COUNT=2
 PRODUCTION_MODE_ENABLED=true
 CLUSTER_NAME=cluster1
 CLUSTER_TYPE=DYNAMIC
-DOMAIN_HOST_VOLUME=/Users/host/temp
+DOMAIN_HOST_VOLUME=/app/domains

Check rights on volume
$ ls -ld /app/domains/
drwxr-x---. 1 dave dave 56 Jan 30  2022 /app/domains/
dave@dave:/git/weblogic/docker-domain$ chmod 777 /app/domains/

Set admin password in property file
$ cat properties/domain_security.properties
username=weblogic
password=weblgoic123

Build domain using build.sh
ave@dave:/git/weblogic/docker-domain$ ./build.sh 
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            Install the buildx component to build images with BuildKit:
            https://docs.docker.com/go/buildx/

Sending build context to Docker daemon  51.71kB
Step 1/11 : FROM oracle/weblogic:14.1.1.0-generic-11
 ---> a63e1c89480e
Step 2/11 : LABEL "provider"="Oracle"                                                     "maintainer"="Monica Riccelli <monica.riccelli@oracle.com>"             "issues"="https://github.com/oracle/docker-images/issues"               "port.admin.listen"="7001"                                              "port.administration"="9002"                                            "port.managed.server"="8001"
 ---> Running in 2345b2a74011
Removing intermediate container 2345b2a74011
 ---> 4f21d8454d46
Step 3/11 : ENV DOMAIN_ROOT="/u01/oracle/user_projects/domains"     ADMIN_HOST="${ADMIN_HOST:-AdminContainer}"     MANAGED_SERVER_PORT="${MANAGED_SERVER_PORT:-8001}"     MANAGED_SERVER_NAME_BASE="${MANAGED_SERVER_NAME_BASE:-MS}"     MANAGED_SERVER_CONTAINER="${MANAGED_SERVER_CONTAINER:-false}"     CONFIGURED_MANAGED_SERVER_COUNT="${CONFIGURED_MANAGED_SERVER_COUNT:-2}"     MANAGED_NAME="${MANAGED_NAME:-MS1}"     CLUSTER_NAME="${CLUSTER_NAME:-cluster1}"     CLUSTER_TYPE="${CLUSTER_TYPE:-DYNAMIC}"     PROPERTIES_FILE_DIR="/u01/oracle/properties"     JAVA_OPTIONS="-Doracle.jdbc.fanEnabled=false -Dweblogic.StdoutDebugEnabled=false"      PATH="$PATH:${JAVA_HOME}/bin:/u01/oracle/oracle_common/common/bin:/u01/oracle/wlserver/common/bin:/u01/oracle/container-scripts"
 ---> Running in 90617a796664
Removing intermediate container 90617a796664
 ---> c39b5ed96dca
Step 4/11 : COPY --chown=oracle:oracle container-scripts/* /u01/oracle/container-scripts/
 ---> ad4c257e596d
Step 5/11 : COPY --chown=oracle:oracle container-scripts/get_healthcheck_url.sh /u01/oracle/get_healthcheck_url.sh
 ---> 73cbaf7ecff6
Step 6/11 : USER root
 ---> Running in b3bba43de1c5
Removing intermediate container b3bba43de1c5
 ---> 59fb28b0c1e3
Step 7/11 : RUN mkdir -p $DOMAIN_ROOT &&     chown -R oracle:oracle $DOMAIN_ROOT/.. &&     chmod -R a+xwr $DOMAIN_ROOT/.. &&     mkdir -p $ORACLE_HOME/properties &&     chmod -R a+r $ORACLE_HOME/properties &&     chmod +x /u01/oracle/container-scripts/*
 ---> Running in 9e64451b2a54
Removing intermediate container 9e64451b2a54
 ---> 844c4f0c18df
Step 8/11 : VOLUME $DOMAIN_ROOT
 ---> Running in bbf7e165f354
Removing intermediate container bbf7e165f354
 ---> 30cb6a7527ae
Step 9/11 : USER oracle
 ---> Running in e3ca1b9a1461
Removing intermediate container e3ca1b9a1461
 ---> 4f3e5330c095
Step 10/11 : WORKDIR $ORACLE_HOME
 ---> Running in 3f5764b70b89
Removing intermediate container 3f5764b70b89
 ---> 70def36c3473
Step 11/11 : CMD ["/u01/oracle/container-scripts/createWLSDomain.sh"]
 ---> Running in a45dd0809491
Removing intermediate container a45dd0809491
 ---> e15b6085f27d
Successfully built e15b6085f27d
Successfully tagged 1411-weblogic-domain-in-volume:latest

List images
dave@dave:/git/weblogic/docker-domain$ docker images
REPOSITORY                            TAG                   IMAGE ID       CREATED             SIZE
1411-weblogic-domain-in-volume        latest                e15b6085f27d   27 seconds ago      1.27GB
oracle/weblogic                       14.1.1.0-generic-11   a63e1c89480e   About an hour ago   1.27GB
<none>                                <none>                a6efff1e460a   About an hour ago   1.91GB
<none>                                <none>                74fc89d6f899   About an hour ago   1.91GB
oracle/jdk                            11-ol7                fea3c351284b   2 hours ago         451MB
<none>                                <none>                dcacebd8006e   2 hours ago         1.14GB
oraclelinux                           7-slim                506c06ed74d4   3 weeks ago         138MB

Run admin server
 ./run_admin_server.sh 
Context for docker build is /git/weblogic/docker-domain
Export environment variables from the /git/weblogic/docker-domain/properties/domain.properties properties file
 env_arg: DOMAIN_NAME=myDomain
 env_arg: ADMIN_NAME=myadmin
 env_arg: ADMIN_LISTEN_PORT=7001
 env_arg: ADMIN_HOST=AdminContainer
 env_arg: ADMINISTRATION_PORT_ENABLED=false
 env_arg: MANAGED_SERVER_PORT=8001
 env_arg: MANAGED_SERVER_NAME_BASE=MS
 env_arg: CONFIGURED_MANAGED_SERVER_COUNT=2
 env_arg: CLUSTER_NAME=cluster1
 env_arg: CLUSTER_TYPE=DYNAMIC
 env_arg: PRODUCTION_MODE=dev
 env_arg: DOMAIN_HOST_VOLUME=/app/domains
The domain configuration will get persisted in the host volume: /app/domains
docker run -d -p 9001:7001 --name AdminContainer --hostname AdminContainer -v /git/weblogic/docker-domain/properties:/u01/oracle/properties -v /app/domains:/u01/oracle/user_projects/domains  -e DOMAIN_NAME=myDomain -e ADMIN_NAME=myadmin -e ADMIN_LISTEN_PORT=7001 -e ADMIN_HOST=AdminContainer -e ADMINISTRATION_PORT_ENABLED=false -e MANAGED_SERVER_PORT=8001 -e MANAGED_SERVER_NAME_BASE=MS -e CONFIGURED_MANAGED_SERVER_COUNT=2 -e CLUSTER_NAME=cluster1 -e CLUSTER_TYPE=DYNAMIC -e PRODUCTION_MODE=dev 1411-weblogic-domain-in-volume
813697a094067b8fbfe02deda03d56d0de67405fecbff42e49a010eee6e9ecbd

Missing property file
$ docker ps -a
CONTAINER ID   IMAGE                            COMMAND                  CREATED          STATUS                      PORTS     NAMES
813697a09406   1411-weblogic-domain-in-volume   "/u01/oracle/contain…"   26 seconds ago   Exited (0) 25 seconds ago             AdminContainer
4ba36c6d2ccb   oracle/jdk:11-ol7                "jshell"                 2 hours ago      Exited (0) 2 hours ago                interesting_fermat
dave@dave:/git/weblogic/docker-domain$ docker logs AdminContainer
Domain Home is:  /u01/oracle/user_projects/domains/myDomain
/u01/oracle/properties/domain_security.properties
A properties file with the username and password needs to be supplied.
Copy property file and admin server access file to properties dir
dave@dave:/git/weblogic/docker-domain$ find /app/domains/properties/
/app/domains/properties/
/app/domains/properties/domain_security.properties
/app/domains/properties/domain.properties
dave@dave:/git/weblogic/docker-domain$ ./run_admin_server.sh 
Context for docker build is /git/weblogic/docker-domain
Export environment variables from the /git/weblogic/docker-domain/properties/domain.properties properties file
 env_arg: DOMAIN_NAME=myDomain
 env_arg: ADMIN_NAME=myadmin
 env_arg: ADMIN_LISTEN_PORT=7001
 env_arg: ADMIN_HOST=AdminContainer
 env_arg: ADMINISTRATION_PORT_ENABLED=false
 env_arg: MANAGED_SERVER_PORT=8001
 env_arg: MANAGED_SERVER_NAME_BASE=MS
 env_arg: CONFIGURED_MANAGED_SERVER_COUNT=2
 env_arg: CLUSTER_NAME=cluster1
 env_arg: CLUSTER_TYPE=DYNAMIC
 env_arg: PRODUCTION_MODE=dev
 env_arg: DOMAIN_HOST_VOLUME=/app/domains
The domain configuration will get persisted in the host volume: /app/domains
docker run -d -p 9001:7001 --name AdminContainer --hostname AdminContainer -v /app/domains/properties:/u01/oracle/properties -v /app/domains:/u01/oracle/user_projects/domains  -e DOMAIN_NAME=myDomain -e ADMIN_NAME=myadmin -e ADMIN_LISTEN_PORT=7001 -e ADMIN_HOST=AdminContainer -e ADMINISTRATION_PORT_ENABLED=false -e MANAGED_SERVER_PORT=8001 -e MANAGED_SERVER_NAME_BASE=MS -e CONFIGURED_MANAGED_SERVER_COUNT=2 -e CLUSTER_NAME=cluster1 -e CLUSTER_TYPE=DYNAMIC -e PRODUCTION_MODE=dev 1411-weblogic-domain-in-volume
80c609a25b9d4ff4e49a0d48c929dad91da919b408b48d3dc8bcaaaf823b736f
dave@dave:/git/weblogic/docker-domain$ docker logs AdminContainer
Domain Home is:  /u01/oracle/user_projects/domains/myDomain
/u01/oracle/properties/domain_security.properties
/u01/oracle/properties/domain.properties

Initializing WebLogic Scripting Tool (WLST) ...

Missing permissions on host volume
 docker logs AdminContainer
Domain Home is:  /u01/oracle/user_projects/domains/myDomain
/u01/oracle/properties/domain_security.properties
/u01/oracle/properties/domain.properties

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

domain_path              : [/u01/oracle/user_projects/domains/myDomain]
domain_name              : [myDomain]
admin_server_name        : [myadmin]
admin_port               : [7001]
cluster_name             : [cluster1]
server_port              : [8001]
number_of_ms             : [2]
cluster_type             : [DYNAMIC]
managed_server_name_base : [MS]
production_mode          : [dev]
Configuring Dynamic Cluster cluster1
Creating Server Template: cluster1-template
Done creating Server Template: cluster1-template
Done setting attributes for Dynamic Cluster: cluster1
com.oracle.cie.domain.script.ScriptException: 60308: Domain location not writable.
60308: The domain location does not have write permission.
60308: Correct permissions or select different domain location.

    at com.oracle.cie.domain.script.ScriptExecutor.writeDomain(ScriptExecutor.java:2048)
    at com.oracle.cie.domain.script.jython.WLScriptContext.writeDomain(WLScriptContext.java:1880)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at com.oracle.cie.domain.script.jython.WLSTState.processCommand(WLSTState.java:226)
    at com.oracle.cie.domain.script.jython.WLScriptContext.runCmd(WLScriptContext.java:732)
    at jdk.internal.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:188)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:206)
    at org.python.core.PyObject.__call__(PyObject.java:515)
    at org.python.core.PyObject.__call__(PyObject.java:519)
    at org.python.core.PyMethod.__call__(PyMethod.java:156)
    at org.python.pycode._pyx6.command$1(/tmp/WLSTOfflineIni5927803169066468041.py:19)
    at org.python.pycode._pyx6.call_function(/tmp/WLSTOfflineIni5927803169066468041.py)
    at org.python.core.PyTableCode.call(PyTableCode.java:171)
    at org.python.core.PyBaseCode.call(PyBaseCode.java:308)
    at org.python.core.PyBaseCode.call(PyBaseCode.java:146)
    at org.python.core.PyFunction.__call__(PyFunction.java:423)
    at org.python.pycode._pyx6.writeDomain$29(/tmp/WLSTOfflineIni5927803169066468041.py:114)
    at org.python.pycode._pyx6.call_function(/tmp/WLSTOfflineIni5927803169066468041.py)
    at org.python.core.PyTableCode.call(PyTableCode.java:171)
    at org.python.core.PyBaseCode.call(PyBaseCode.java:139)
    at org.python.core.PyFunction.__call__(PyFunction.java:413)
    at org.python.pycode._pyx32.f$0(/u01/oracle/container-scripts/create-wls-domain.py:136)
    at org.python.pycode._pyx32.call_function(/u01/oracle/container-scripts/create-wls-domain.py)
    at org.python.core.PyTableCode.call(PyTableCode.java:171)
    at org.python.core.PyCode.call(PyCode.java:18)
    at org.python.core.Py.runCode(Py.java:1614)
    at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:296)
    at weblogic.management.scripting.WLST.main(WLST.java:192)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at weblogic.WLST.main(WLST.java:47)
Error: runCmd() failed. Do dumpStack() to see details.
Traceback (most recent call last):
  File "/u01/oracle/container-scripts/create-wls-domain.py", line 121, in <module>
    writeDomain(domain_path)
  File "/tmp/WLSTOfflineIni5927803169066468041.py", line 113, in writeDomain
    command("writeDomain", domainDir)
  File "/tmp/WLSTOfflineIni5927803169066468041.py", line 19, in command
    return WLS.runCmd(name, args)
60308: Domain location not writable.
60308: The domain location does not have write permission.
60308: Correct permissions or select different domain location.

    at com.oracle.cie.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:69)
    at com.oracle.cie.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:3124)
    at com.oracle.cie.domain.script.jython.WLScriptContext.runCmd(WLScriptContext.java:738)
    at jdk.internal.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
com.oracle.cie.domain.script.jython.WLSTException: com.oracle.cie.domain.script.jython.WLSTException: Error writing domain:
60308: Domain location not writable.
60308: The domain location does not have write permission.
60308: Correct permissions or select different domain location.

Problem invoking WLST - Traceback (most recent call last):
  File "/u01/oracle/container-scripts/create-wls-domain.py", line 121, in <module>
    writeDomain(domain_path)
  File "/tmp/WLSTOfflineIni5927803169066468041.py", line 113, in writeDomain
    command("writeDomain", domainDir)
  File "/tmp/WLSTOfflineIni5927803169066468041.py", line 19, in command
    return WLS.runCmd(name, args)
60308: Domain location not writable.
60308: The domain location does not have write permission.
60308: Correct permissions or select different domain location.

    at com.oracle.cie.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:69)
    at com.oracle.cie.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:3124)
    at com.oracle.cie.domain.script.jython.WLScriptContext.runCmd(WLScriptContext.java:738)
    at jdk.internal.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
com.oracle.cie.domain.script.jython.WLSTException: com.oracle.cie.domain.script.jython.WLSTException: Error writing domain:
60308: Domain location not writable.
60308: The domain location does not have write permission.
60308: Correct permissions or select different domain location.


RetVal from Domain creation 1
Domain Creation Failed.. Please check the Domain Logs

Add :z to mounted host volume
Exiting WebLogic Scripting Tool.

RetVal from Domain creation 0
Java Options: -Doracle.jdbc.fanEnabled=false -Dweblogic.StdoutDebugEnabled=false
Starting the Admin Server
==========================
.
.
JAVA Memory arguments: -Djava.security.egd=file:/dev/./urandom
.
CLASSPATH=/usr/java/jdk-11/lib/tools.jar:/u01/oracle/wlserver/server/lib/weblogic.jar:/u01/oracle/wlserver/../oracle_common/modules/thirdparty/ant-contrib-1.0b3.jar:/u01/oracle/wlserver/modules/features/oracle.wls.common.nodemanager.jar::/u01/oracle/wlserver/common/derby/lib/derbynet.jar:/u01/oracle/wlserver/common/derby/lib/derbyclient.jar:/u01/oracle/wlserver/common/derby/lib/derby.jar
.
PATH=/u01/oracle/user_projects/domains/myDomain/bin:/u01/oracle/wlserver/server/bin:/u01/oracle/wlserver/../oracle_common/modules/thirdparty/org.apache.ant/1.10.5.0.0/apache-ant-1.10.5/bin:/usr/java/jdk-11/bin:/usr/java/jdk-11/bin:/usr/java/jdk-11/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/java/jdk-11/bin:/u01/oracle/oracle_common/common/bin:/u01/oracle/wlserver/common/bin:/usr/java/jdk-11/bin:/u01/oracle/oracle_common/common/bin:/u01/oracle/wlserver/common/bin:/u01/oracle/container-scripts
.
***************************************************
*  To start WebLogic Server, use a username and   *
*  password assigned to an admin-level user.  For *
*  server administration, use the WebLogic Server *
*  console at http://hostname:port/console        *
***************************************************
Starting WLS with line:
/usr/java/jdk-11/bin/java -server   -Djava.security.egd=file:/dev/./urandom -cp /u01/oracle/wlserver/server/lib/weblogic-launcher.jar -Dlaunch.use.env.classpath=true -Dweblogic.Name=myadmin -Djava.security.policy=/u01/oracle/wlserver/server/lib/weblogic.policy -Doracle.jdbc.fanEnabled=false -Dweblogic.StdoutDebugEnabled=false -Djava.system.class.loader=com.oracle.classloader.weblogic.LaunchClassLoader  -javaagent:/u01/oracle/wlserver/server/lib/debugpatch-agent.jar -da -Dwls.home=/u01/oracle/wlserver/server -Dweblogic.home=/u01/oracle/wlserver/server      weblogic.Server
Java HotSpot(TM) 64-Bit Server VM warning: Archived non-system classes are disabled because the java.system.class.loader property is specified (value = "com.oracle.classloader.weblogic.LaunchClassLoader"). To use archived non-system classes, this property must be not be set
<Dec 10, 2023, 2:44:20 PM Greenwich Mean Time> <Info> <Security> <BEA-090905> <Disabling the CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true.> 
<Dec 10, 2023, 2:44:20 PM Greenwich Mean Time> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG128 to HMACDRBG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true.> 

Start line with added :z - modify in run_admin_server.sh
docker run -d -p 9001:${adminport} --name ${adminhost} --hostname ${adminhost} -v /app/domains/properties:/u01/oracle/properties:z -v ${domainhostvol}:/u01/oracle/user_projects/domains:z ${ENV_ARG} 1411-weblogic-domain-in-volume

Admin server container running
dave@dave:/git/weblogic/docker-domain$ docker ps
CONTAINER ID   IMAGE                            COMMAND                  CREATED              STATUS                        PORTS                                       NAMES
5fae4bf178dd   1411-weblogic-domain-in-volume   "/u01/oracle/contain…"   About a minute ago   Up About a minute (healthy)   0.0.0.0:9001->7001/tcp, :::9001->7001/tcp   AdminContainer

Check Admin console on port 9001 - http://dave:9001/console

No comments:

Post a Comment