Sunday, October 18, 2020

Create Weblogic Docker domain using docker-compose

HOWTO

 

Weblogic 12.2.1.4 Docker image 

https://danielveselka.blogspot.com/2020/10/create-weblogic-12214-docker-image-with.html

 

Weblogic Docker

https://github.com/oracle/docker-images/tree/master/OracleWebLogic

https://github.com/oracle/docker-images/tree/master/OracleWebLogic/dockerfiles/12.2.1.4

http://www.oracle.com/us/products/middleware/cloud-app-foundation/weblogic/weblogic-server-on-docker-wp-2742665.pdf

 

Some samples for Docker compose Weblogic domain

 

First attempt

https://github.com/dveselka/weblogic/blob/master/docker-compose/docker-compose.yml

 

version: "3.8"

networks:
  &network wlsnet:
    driver: bridge

services:
  adminserver:
    container_name: adminserver    
    image: oracle/weblogic:12.2.1.4-generic
    restart: "no" 
    environment:
      DOMAIN_NAME: myDomain
      ADMIN_NAME: myadmin
      ADMIN_LISTEN_PORT: 7001
      ADMIN_HOST: AdminContainer
      ADMINISTRATION_PORT_ENABLED: "false"
      ADMINISTRATION_PORT: 9002
      MANAGED_SERVER_PORT: 8001
      MANAGED_SERVER_NAME_BASE: MS
      CONFIGURED_MANAGED_SERVER_COUNT: 2
      CLUSTER_NAME: cluster1
      CLUSTER_TYPE: DYNAMIC
      PRODUCTION_MODE: dev
      DOMAIN_HOST_VOLUME: /app/domains
      PROPERTIES_FILE_DIR: "/u01/oracle/properties"
      PROPERTIES_FILE: /u01/oracle/properties/domain.properties
    ports:
      - "7001:7001"
      - "9002:9002"
    networks:
      - *network
    volumes:
      - /git/weblogic/docker-compose/properties:/u01/oracle/properties:z
      - /app/domains:/u01/oracle/user_projects/domains:z

volumes:
  adminserver:

Without :z added to mounted host volume the container cannot read user and password values

https://www.reddit.com/r/Fedora/comments/g38e3g/docker_volume_mount_permission_denied/

On Fedora with SE Linux add :z to mounted host volume to allow access for container 

https://docs.docker.com/storage/bind-mounts/#configure-the-selinux-label

docker-compose up
Recreating adminserver ... done
Attaching to adminserver
adminserver    | Domain Home is:  /u01/oracle/user_projects/domains/base_domain
adminserver    | /u01/oracle/properties/domain_security.properties
adminserver    | A properties file with the username and password needs to be supplied.


Docker compose with --verbose with error due to  inaccessible mount


[dave@dave docker-compose]$ docker-compose  --verbose up
compose.config.config.find: Using configuration files: ./docker-compose.yml
docker.utils.config.find_config_file: Trying paths: ['/home/dave/.docker/config.json', '/home/dave/.dockercfg']
docker.utils.config.find_config_file: No config file found
docker.utils.config.find_config_file: Trying paths: ['/home/dave/.docker/config.json', '/home/dave/.dockercfg']
docker.utils.config.find_config_file: No config file found
docker.utils.config.find_config_file: Trying paths: ['/home/dave/.docker/config.json', '/home/dave/.dockercfg']
docker.utils.config.find_config_file: No config file found
urllib3.connectionpool._make_request: http://localhost:None "GET /version HTTP/1.1" 200 831
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.40/version HTTP/1.1" 200 831
compose.cli.docker_client.get_client: docker-compose version 1.27.4, build 40524192
docker-py version: 4.3.1
CPython version: 3.7.7
OpenSSL version: OpenSSL 1.1.0l  10 Sep 2019
compose.cli.docker_client.get_client: Docker base_url: http+docker://localhost
compose.cli.docker_client.get_client: Docker version: Platform={'Name': ''}, Components=[{'Name': 'Engine', 'Version': '19.03.11', 'Details': {'ApiVersion': '1.40', 'Arch': 'amd64', 'BuildTime': '2020-06-07T00:00:00.000000000+00:00', 'Experimental': 'false', 'GitCommit': '42e35e6', 'GoVersion': 'go1.14.3', 'KernelVersion': '5.8.14-200.fc32.x86_64', 'MinAPIVersion': '1.12', 'Os': 'linux'}}, {'Name': 'containerd', 'Version': '1.3.7', 'Details': {'GitCommit': '8fba4e9a7d01810a393d5d25a3621dc101981175'}}, {'Name': 'runc', 'Version': '1.0.0-rc10', 'Details': {'GitCommit': 'dc9208a3303feef5b3839f4323d9beb36df0a9dd'}}, {'Name': 'docker-init', 'Version': '0.18.0', 'Details': {'GitCommit': ''}}], Version=19.03.11, ApiVersion=1.40, MinAPIVersion=1.12, GitCommit=42e35e6, GoVersion=go1.14.3, Os=linux, Arch=amd64, KernelVersion=5.8.14-200.fc32.x86_64, BuildTime=2020-06-07T00:00:00.000000000+00:00
compose.cli.verbose_proxy.proxy_callable: docker inspect_network <- ('dockercompose_wlsnet')
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.40/networks/dockercompose_wlsnet HTTP/1.1" 404 53
compose.cli.verbose_proxy.proxy_callable: docker info <- ()
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.40/info HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker info -> {'Architecture': 'x86_64',
 'BridgeNfIp6tables': True,
 'BridgeNfIptables': True,
 'CPUSet': True,
 'CPUShares': True,
 'CgroupDriver': 'systemd',
 'ClusterAdvertise': '',
 'ClusterStore': '',
 'ContainerdCommit': {'Expected': '8fba4e9a7d01810a393d5d25a3621dc101981175',
                      'ID': '8fba4e9a7d01810a393d5d25a3621dc101981175'},
...
compose.cli.verbose_proxy.proxy_callable: docker inspect_network <- ('docker-compose_wlsnet')
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.40/networks/docker-compose_wlsnet HTTP/1.1" 200 570
compose.cli.verbose_proxy.proxy_callable: docker inspect_network -> {'Attachable': True,
 'ConfigFrom': {'Network': ''},
 'ConfigOnly': False,
 'Containers': {},
 'Created': '2020-10-18T10:11:09.446958986+02:00',
 'Driver': 'bridge',
 'EnableIPv6': False,
 'IPAM': {'Config': [{'Gateway': '172.18.0.1', 'Subnet': '172.18.0.0/16'}],
          'Driver': 'default',
          'Options': None},
...
compose.cli.verbose_proxy.proxy_callable: docker containers <- (all=False, filters={'label': ['com.docker.compose.project=docker-compose', 'com.docker.compose.oneoff=False']})
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.40/containers/json?limit=-1&all=0&size=0&trunc_cmd=0&filters=%7B%22label%22%3A+%5B%22com.docker.compose.project%3Ddocker-compose%22%2C+%22com.docker.compose.oneoff%3DFalse%22%5D%7D HTTP/1.1" 200 3
compose.cli.verbose_proxy.proxy_callable: docker containers -> (list with 0 items)
compose.cli.verbose_proxy.proxy_callable: docker containers <- (all=False, filters={'label': ['com.docker.compose.project=dockercompose', 'com.docker.compose.oneoff=False']})
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.40/containers/json?limit=-1&all=0&size=0&trunc_cmd=0&filters=%7B%22label%22%3A+%5B%22com.docker.compose.project%3Ddockercompose%22%2C+%22com.docker.compose.oneoff%3DFalse%22%5D%7D HTTP/1.1" 200 3
compose.cli.verbose_proxy.proxy_callable: docker containers -> (list with 0 items)
compose.cli.verbose_proxy.proxy_callable: docker containers <- (all=True, filters={'label': ['com.docker.compose.project=docker-compose', 'com.docker.compose.oneoff=False']})
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.40/containers/json?limit=-1&all=1&size=0&trunc_cmd=0&filters=%7B%22label%22%3A+%5B%22com.docker.compose.project%3Ddocker-compose%22%2C+%22com.docker.compose.oneoff%3DFalse%22%5D%7D HTTP/1.1" 200 1519
compose.cli.verbose_proxy.proxy_callable: docker containers -> (list with 1 items)
compose.cli.verbose_proxy.proxy_callable: docker inspect_container <- ('36c57a8bd9d6f6a1da699dc047755c741439da108868d0b28c950ccd50381f07')
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.40/containers/36c57a8bd9d6f6a1da699dc047755c741439da108868d0b28c950ccd50381f07/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker inspect_container -> {'AppArmorProfile': '',
 'Args': [],
 'Config': {'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': ['/u01/oracle/container-scripts/createWLSDomain.sh'],
            'Domainname': '',
            'Entrypoint': None,
            'Env': ['DOMAIN_NAME=myDomain',
                    'ADMIN_NAME=myadmin',
...
compose.cli.verbose_proxy.proxy_callable: docker containers <- (all=True, filters={'label': ['com.docker.compose.project=docker-compose', 'com.docker.compose.service=adminserver', 'com.docker.compose.oneoff=False']})
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.40/containers/json?limit=-1&all=1&size=0&trunc_cmd=0&filters=%7B%22label%22%3A+%5B%22com.docker.compose.project%3Ddocker-compose%22%2C+%22com.docker.compose.service%3Dadminserver%22%2C+%22com.docker.compose.oneoff%3DFalse%22%5D%7D HTTP/1.1" 200 1519
compose.cli.verbose_proxy.proxy_callable: docker containers -> (list with 1 items)
compose.cli.verbose_proxy.proxy_callable: docker inspect_container <- ('36c57a8bd9d6f6a1da699dc047755c741439da108868d0b28c950ccd50381f07')
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.40/containers/36c57a8bd9d6f6a1da699dc047755c741439da108868d0b28c950ccd50381f07/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker inspect_container -> {'AppArmorProfile': '',
 'Args': [],
 'Config': {'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': ['/u01/oracle/container-scripts/createWLSDomain.sh'],
            'Domainname': '',
            'Entrypoint': None,
            'Env': ['DOMAIN_NAME=myDomain',
                    'ADMIN_NAME=myadmin',
...
compose.cli.verbose_proxy.proxy_callable: docker inspect_image <- ('12214-weblogic-domain-generic')
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.40/images/12214-weblogic-domain-generic/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker inspect_image -> {'Architecture': 'amd64',
 'Author': 'Monica Riccelli <monica.riccelli@oracle.com>',
 'Comment': '',
 'Config': {'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': ['/u01/oracle/container-scripts/createWLSDomain.sh'],
            'Domainname': '',
            'Entrypoint': None,
            'Env': ['PATH=/usr/java/jdk-8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/java/jdk-8/bin:/u01/oracle/oracle_common/common/bin:/u01/oracle/wlserver/common/bin',
...
compose.cli.verbose_proxy.proxy_callable: docker containers <- (all=True, filters={'label': ['com.docker.compose.project=docker-compose', 'com.docker.compose.service=adminserver', 'com.docker.compose.oneoff=False']})
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.40/containers/json?limit=-1&all=1&size=0&trunc_cmd=0&filters=%7B%22label%22%3A+%5B%22com.docker.compose.project%3Ddocker-compose%22%2C+%22com.docker.compose.service%3Dadminserver%22%2C+%22com.docker.compose.oneoff%3DFalse%22%5D%7D HTTP/1.1" 200 1519
compose.cli.verbose_proxy.proxy_callable: docker containers -> (list with 1 items)
compose.cli.verbose_proxy.proxy_callable: docker inspect_image <- ('12214-weblogic-domain-generic')
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.40/images/12214-weblogic-domain-generic/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker inspect_image -> {'Architecture': 'amd64',
 'Author': 'Monica Riccelli <monica.riccelli@oracle.com>',
 'Comment': '',
 'Config': {'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': ['/u01/oracle/container-scripts/createWLSDomain.sh'],
            'Domainname': '',
            'Entrypoint': None,
            'Env': ['PATH=/usr/java/jdk-8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/java/jdk-8/bin:/u01/oracle/oracle_common/common/bin:/u01/oracle/wlserver/common/bin',
...
compose.cli.verbose_proxy.proxy_callable: docker inspect_container <- ('36c57a8bd9d6f6a1da699dc047755c741439da108868d0b28c950ccd50381f07')
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.40/containers/36c57a8bd9d6f6a1da699dc047755c741439da108868d0b28c950ccd50381f07/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker inspect_container -> {'AppArmorProfile': '',
 'Args': [],
 'Config': {'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': ['/u01/oracle/container-scripts/createWLSDomain.sh'],
            'Domainname': '',
            'Entrypoint': None,
            'Env': ['DOMAIN_NAME=myDomain',
                    'ADMIN_NAME=myadmin',
...
compose.parallel.feed_queue: Pending: {<Service: adminserver>}
compose.parallel.feed_queue: Starting producer thread for <Service: adminserver>
Starting adminserver ... 
compose.parallel.feed_queue: Pending: {<Container: adminserver (36c57a)>}
compose.parallel.feed_queue: Starting producer thread for <Container: adminserver (36c57a)>
compose.cli.verbose_proxy.proxy_callable: docker attach <- ('36c57a8bd9d6f6a1da699dc047755c741439da108868d0b28c950ccd50381f07', stdout=True, stderr=True, stream=True)
urllib3.connectionpool._make_request: http://localhost:None "POST /v1.40/containers/36c57a8bd9d6f6a1da699dc047755c741439da108868d0b28c950ccd50381f07/attach?logs=0&stdout=1&stderr=1&stream=1 HTTP/1.1" 101 0
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.40/containers/36c57a8bd9d6f6a1da699dc047755c741439da108868d0b28c950ccd50381f07/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker attach -> <docker.types.daemon.CancellableStream object at 0x7fa40bb7f7d0>
compose.cli.verbose_proxy.proxy_callable: docker start <- ('36c57a8bd9d6f6a1da699dc047755c741439da108868d0b28c950ccd50381f07')
compose.parallel.feed_queue: Pending: set()
compose.parallel.feed_queue: Pending: set()
compose.parallel.feed_queue: Pending: set()
compose.parallel.feed_queue: Pending: set()
compose.parallel.feed_queue: Pending: set()
compose.parallel.feed_queue: Pending: set()
urllib3.connectionpool._make_request: http://localhost:None "POST /v1.40/containers/36c57a8bd9d6f6a1da699dc047755c741439da108868d0b28c950ccd50381f07/start HTTP/1.1" 204 0
compose.cli.verbose_proxy.proxy_callable: docker start -> None
Starting adminserver ... done
compose.parallel.feed_queue: Pending: set()
compose.parallel.parallel_execute_iter: Finished processing: <Service: adminserver>
compose.parallel.feed_queue: Pending: set()
Attaching to adminserver
compose.cli.verbose_proxy.proxy_callable: docker events <- (filters={'label': ['com.docker.compose.project=docker-compose', 'com.docker.compose.oneoff=False']}, decode=True)
adminserver    | Domain Home is:  /u01/oracle/user_projects/domains/base_domain
adminserver    | /u01/oracle/properties/domain_security.properties
adminserver    | A properties file with the username and password needs to be supplied.
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.40/events?filters=%7B%22label%22%3A+%5B%22com.docker.compose.project%3Ddocker-compose%22%2C+%22com.docker.compose.oneoff%3DFalse%22%5D%7D HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker events -> <docker.types.daemon.CancellableStream object at 0x7fa40bb3e510>
compose.cli.verbose_proxy.proxy_callable: docker wait <- ('36c57a8bd9d6f6a1da699dc047755c741439da108868d0b28c950ccd50381f07')
compose.cli.verbose_proxy.proxy_callable: docker inspect_container <- ('36c57a8bd9d6f6a1da699dc047755c741439da108868d0b28c950ccd50381f07')
urllib3.connectionpool._make_request: http://localhost:None "POST /v1.40/containers/36c57a8bd9d6f6a1da699dc047755c741439da108868d0b28c950ccd50381f07/wait HTTP/1.1" 200 None
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.40/containers/36c57a8bd9d6f6a1da699dc047755c741439da108868d0b28c950ccd50381f07/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker wait -> {'Error': None, 'StatusCode': 0}
adminserver exited with code 0
compose.cli.verbose_proxy.proxy_callable: docker inspect_container -> {'AppArmorProfile': '',
 'Args': [],
 'Config': {'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': ['/u01/oracle/container-scripts/createWLSDomain.sh'],
            'Domainname': '',
            'Entrypoint': None,
            'Env': ['DOMAIN_NAME=myDomain',
                    'ADMIN_NAME=myadmin',
...


Docker compose with started Weblogic server 

[dave@dave docker-compose]$ docker-compose up
Creating adminserver ... done
Attaching to adminserver
adminserver    | ADMINISTRATION_PORT=9002
adminserver    | ADMINISTRATION_PORT_ENABLED=true
adminserver    | ADMIN_LISTEN_PORT=7001
adminserver    | ADMIN_NAME=AdminServer
adminserver    | BASH=/bin/bash
adminserver    | BASHOPTS=cmdhist:extquote:force_fignore:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath
adminserver    | BASH_ALIASES=()
adminserver    | BASH_ARGC=()
adminserver    | BASH_ARGV=()
adminserver    | BASH_CMDS=()
adminserver    | BASH_LINENO=([0]="0")
adminserver    | BASH_SOURCE=([0]="/u01/oracle/createAndStartEmptyDomain.sh")
adminserver    | BASH_VERSINFO=([0]="4" [1]="2" [2]="46" [3]="2" [4]="release" [5]="x86_64-redhat-linux-gnu")
adminserver    | BASH_VERSION='4.2.46(2)-release'
adminserver    | CUSTOM_ADMINISTRATION_PORT=9002
adminserver    | CUSTOM_ADMINISTRATION_PORT_ENABLED=false
adminserver    | CUSTOM_ADMIN_HOST=AdminContainer
adminserver    | CUSTOM_ADMIN_NAME=myadmin
adminserver    | CUSTOM_ADMIN_PORT=7001
adminserver    | CUSTOM_CLUSTER_NAME=cluster1
adminserver    | CUSTOM_CLUSTER_TYPE=DYNAMIC
adminserver    | CUSTOM_CONFIGURED_MANAGED_SERVER_COUNT=2
adminserver    | CUSTOM_DOMAIN_HOME=/app/domains
adminserver    | CUSTOM_DOMAIN_NAME=myDomain
adminserver    | CUSTOM_MANAGED_SERVER_NAME_BASE=MS
adminserver    | CUSTOM_MANAGED_SERVER_PORT=8001
adminserver    | CUSTOM_PRODUCTION_MODE_ENABLED=false
adminserver    | CUSTOM_WEBLOGIC_PASSWORD=weblogic123
adminserver    | CUSTOM_WEBLOGIC_USER=weblogic
adminserver    | DIRSTACK=()
adminserver    | DOMAIN_NAME=base_domain
adminserver    | EUID=1000
adminserver    | GROUPS=()
adminserver    | HEALTH_SCRIPT_FILE=/u01/oracle/get_healthcheck_url.sh
adminserver    | HOME=/u01/oracle
adminserver    | HOSTNAME=928e579046ef
adminserver    | HOSTTYPE=x86_64
adminserver    | IFS=$' \t\n'
adminserver    | JAVA_HOME=/usr/java/jdk-8
adminserver    | JAVA_PKG=server-jre-8u261-linux-x64.tar.gz
adminserver    | JAVA_SHA256=970eec4e5212721d5c8f9f52a5ab89b776884dc3c886bfbe010973d30114ffa9
adminserver    | JAVA_VERSION=1.8.0_261
adminserver    | LANG=en_US.UTF-8
adminserver    | MACHTYPE=x86_64-redhat-linux-gnu
adminserver    | OPTERR=1
adminserver    | OPTIND=1
adminserver    | ORACLE_HOME=/u01/oracle
adminserver    | OSTYPE=linux-gnu
adminserver    | PATH=/usr/java/jdk-8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/java/jdk-8/bin:/u01/oracle/oracle_common/common/bin:/u01/oracle/wlserver/common/bin
adminserver    | PIPESTATUS=([0]="0")
adminserver    | PPID=0
adminserver    | PS4='+ '
adminserver    | PWD=/u01/oracle
adminserver    | SCRIPT_FILE=/u01/oracle/createAndStartEmptyDomain.sh
adminserver    | SHELL=/bin/bash
adminserver    | SHELLOPTS=braceexpand:hashall:interactive-comments
adminserver    | SHLVL=1
adminserver    | TERM=dumb
adminserver    | UID=1000
adminserver    | USER_MEM_ARGS=-Djava.security.egd=file:/dev/./urandom
adminserver    | _=SIGKILL
adminserver    | _kill () 
adminserver    | { 
adminserver    |     echo "SIGKILL received, shutting down the server!";
adminserver    |     kill -9 $childPID
adminserver    | }
adminserver    | _term () 
adminserver    | { 
adminserver    |     echo "Stopping container.";
adminserver    |     echo "SIGTERM received, shutting down the server!";
adminserver    |     ${DOMAIN_HOME}/bin/stopWebLogic.sh
adminserver    | }
adminserver    | Domain Home is:  /u01/oracle/user_projects/domains/base_domain
adminserver    | ORACLE_HOME=/u01/oracle
adminserver    | total 80
adminserver    | drwxr-x---.  5 oracle root   4096 Nov  5 21:58 coherence
adminserver    | -rwxrwxr-x.  1 oracle root   2550 Nov  5 21:53 createAndStartEmptyDomain.sh
adminserver    | -rw-rw-r--.  1 oracle root   3134 Nov  5 20:58 create-wls-domain.py
adminserver    | -rwxrwxr-x.  1 oracle root    370 Nov  5 20:58 get_healthcheck_url.sh
adminserver    | drwxr-x---. 16 oracle root   4096 Nov  5 21:58 inventory
adminserver    | drwxr-x---. 11 oracle root   4096 Nov  5 21:58 OPatch
adminserver    | drwxr-x---. 10 oracle root   4096 Nov  5 21:58 oracle_common
adminserver    | -rw-r-----.  1 oracle root    126 Nov  5 21:58 oraInst.loc
adminserver    | drwxr-x---.  8 oracle root   4096 Nov  5 21:58 oui
adminserver    | drwxrwxrwx.  2 oracle oracle 4096 Nov  5 21:35 properties
adminserver    | -rwx------.  1 oracle root     10 Nov  5 21:58 root.sh
adminserver    | drwxr-xr-x.  3 root   root   4096 Nov  5 22:26 user_projects
adminserver    | drwxr-x---.  7 oracle root   4096 Nov  5 21:58 wlserver
adminserver    | total 8
adminserver    | -rw-rw-r--. 1 oracle oracle 39 Nov  5 21:35 domain.properties
adminserver    | -rw-rw-r--. 1 oracle oracle 39 Nov  5 21:25 domain_security.properties
adminserver    | 
adminserver    | Initializing WebLogic Scripting Tool (WLST) ...
adminserver    | 
adminserver    | Welcome to WebLogic Server Administration Scripting Shell
adminserver    | 
adminserver    | Type help() for help on available commands
adminserver    | 
adminserver    | domain_name                 : [base_domain]
adminserver    | admin_listen_port           : [7001]
adminserver    | domain_path                 : [/u01/oracle/user_projects/domains/base_domain]
adminserver    | production_mode             : [prod]
adminserver    | admin name                  : [AdminServer]
adminserver    | administration_port_enabled : [true]
adminserver    | administration_port         : [9002]
adminserver    | 
adminserver    | 
adminserver    | Exiting WebLogic Scripting Tool.
adminserver    | 
adminserver    | .
adminserver    | .
adminserver    | JAVA Memory arguments: -Djava.security.egd=file:/dev/./urandom
adminserver    | .
adminserver    | CLASSPATH=/usr/java/jdk-8/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
adminserver    | .
adminserver    | PATH=/u01/oracle/user_projects/domains/base_domain/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-8/jre/bin:/usr/java/jdk-8/bin:/usr/java/jdk-8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/java/jdk-8/bin:/u01/oracle/oracle_common/common/bin:/u01/oracle/wlserver/common/bin
adminserver    | .
adminserver    | ***************************************************
adminserver    | *  To start WebLogic Server, use a username and   *
adminserver    | *  password assigned to an admin-level user.  For *
adminserver    | *  server administration, use the WebLogic Server *
adminserver    | *  console at http://hostname:port/console        *
adminserver    | ***************************************************
adminserver    | Starting WLS with line:
adminserver    | /usr/java/jdk-8/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=AdminServer -Djava.security.policy=/u01/oracle/wlserver/server/lib/weblogic.policy  -Dweblogic.ProductionModeEnabled=true  -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
adminserver    | <Nov 5, 2020 10:26:30 PM GMT> <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.> 
adminserver    | <Nov 5, 2020 10:26:30 PM GMT> <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.> 
adminserver    | <Nov 5, 2020 10:26:30 PM GMT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 25.261-b12 from Oracle Corporation.> 
adminserver    | <Nov 5, 2020 10:26:31 PM GMT> <Info> <RCM> <BEA-2165021> <"ResourceManagement" is not enabled in this JVM. Enable "ResourceManagement" to use the WebLogic Server "Resource Consumption Management" feature. To enable "ResourceManagement", you must specify the following JVM options in the WebLogic Server instance in which the JVM runs: -XX:+UnlockCommercialFeatures -XX:+ResourceManagement.> 
adminserver    | <Nov 5, 2020 10:26:31 PM GMT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 12.2.1.4.0 Thu Sep 12 04:04:29 GMT 2019 1974621> 
adminserver    | <Nov 5, 2020 10:26:32 PM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.> 
adminserver    | <Nov 5, 2020 10:26:32 PM GMT> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool.> 
adminserver    | <Nov 5, 2020 10:26:32 PM GMT> <Info> <WorkManager> <BEA-002942> <CMM memory level becomes 0. Setting standby thread pool size to 256.> 
adminserver    | <Nov 5, 2020 10:26:32,510 PM GMT> <Notice> <Log Management> <BEA-170019> <The server log file weblogic.logging.FileStreamHandler instance=1057919677
adminserver    | Current log file=/u01/oracle/user_projects/domains/base_domain/servers/AdminServer/logs/AdminServer.log
adminserver    | Rotation dir=/u01/oracle/user_projects/domains/base_domain/servers/AdminServer/logs
adminserver    |  is opened. All server side log events will be written to this file.> 
adminserver    | <Nov 5, 2020 10:26:32,576 PM GMT> <Notice> <Security> <BEA-090171> <Loading the identity certificate and private key stored under the alias DemoIdentity from the jks keystore file /u01/oracle/user_projects/domains/base_domain/security/DemoIdentity.jks.> 
adminserver    | <Nov 5, 2020 10:26:32,588 PM GMT> <Alert> <Security> <BEA-090153> <Demo identity certificate is used in production mode: [
adminserver    | [
adminserver    |   Version: V3
adminserver    |   Subject: CN=928e579046ef, OU=FOR TESTING ONLY, O=MyOrganization, L=MyTown, ST=MyState, C=US
adminserver    |   Signature Algorithm: SHA256withRSA, OID = 1.2.840.113549.1.1.11
adminserver    | 
adminserver    |   Key:  Sun RSA public key, 2048 bits
adminserver    |   params: null
adminserver    |   modulus: 25973061340062574938768116924725336188732560509348908453135155851762443017483988797683745629444421944193147070683894426825861535670011620970608891535085532754829478131977115115634404027054088440786891993470991565120369916144347274686047734617816031522256214862839633580447268559561043066346274088306496041648382310850970277412311351324721250125919423384569189054449729876585593413827218423296270219632864941466886873882081141027640690027135763125106721170857135316691921470776198063270945442699822438047355034100830584162333747058829851324007190370930746572862907122301696896174770196325453204285415548490280593858569
adminserver    |   public exponent: 65537
adminserver    |   Validity: [From: Wed Nov 04 22:26:28 GMT 2020,
adminserver    |                To: Mon Nov 05 22:26:28 GMT 2035]
adminserver    |   Issuer: CN=CertGenCA, OU=FOR TESTING ONLY, O=MyOrganization, L=MyTown, ST=MyState, C=US
adminserver    |   SerialNumber: [   -54b26f58 a7a9c21e 42ac743a 945460bd]
adminserver    | 
adminserver    | Certificate Extensions: 3
adminserver    | [1]: ObjectId: 2.5.29.35 Criticality=false
adminserver    | AuthorityKeyIdentifier [
adminserver    | KeyIdentifier [
adminserver    | 0000: 34 38 FD 45 D8 80 CF C7   D2 E8 DF 1D F8 A1 39 B0  48.E..........9.
adminserver    | 0010: 11 88 00 6A                                        ...j
adminserver    | ]
adminserver    | ]
adminserver    | 
adminserver    | [2]: ObjectId: 2.5.29.15 Criticality=true
adminserver    | KeyUsage [
adminserver    |   DigitalSignature
adminserver    |   Non_repudiation
adminserver    |   Key_Encipherment
adminserver    |   Data_Encipherment
adminserver    |   Key_Agreement
adminserver    | ]
adminserver    | 
adminserver    | [3]: ObjectId: 2.5.29.14 Criticality=false
adminserver    | SubjectKeyIdentifier [
adminserver    | KeyIdentifier [
adminserver    | 0000: 71 A0 FB 19 59 31 75 CE   69 13 DB 9F C5 5E 8C 49  q...Y1u.i....^.I
adminserver    | 0010: 6D D4 4B 67                                        m.Kg
adminserver    | ]
adminserver    | ]
adminserver    | 
adminserver    | ]
adminserver    |   Algorithm: [SHA256withRSA]
adminserver    |   Signature:
adminserver    | 0000: 82 AB AE 62 DF 62 0D 77   77 99 B4 6C EA CB 93 30  ...b.b.ww..l...0
adminserver    | 0010: 65 5F AA 7E 64 9A 52 D4   3E D5 34 A1 FA E2 4F D4  e_..d.R.>.4...O.
adminserver    | 0020: 7E CA 50 8C B9 8B 27 7A   D4 0F B1 38 8E C7 DE 38  ..P...'z...8...8
adminserver    | 0030: 6C 58 B8 9E 66 94 31 23   B4 C8 10 F6 9E 69 E2 15  lX..f.1#.....i..
adminserver    | 0040: 98 D3 8F 93 88 BE 2C 69   2F 82 B7 11 9F 1D 03 EE  ......,i/.......
adminserver    | 0050: 50 36 43 9A F6 96 41 85   B7 AB 25 BA 40 F1 44 60  P6C...A...%.@.D`
adminserver    | 0060: 94 DB D5 69 EB 55 64 55   8D B1 CE BF E2 4F 29 79  ...i.UdU.....O)y
adminserver    | 0070: EA 1D 33 20 7F F9 89 59   F9 C8 AD E5 99 CD C7 37  ..3 ...Y.......7
adminserver    | 0080: 64 1C 7B DB 22 E9 15 AA   BE 4C B8 9D 4E BC B6 D7  d..."....L..N...
adminserver    | 0090: 24 CE 85 0B 1E BC 34 75   2A 6F 26 EA E7 FB F3 EC  $.....4u*o&.....
adminserver    | 00A0: 50 4F 23 0D 2C 96 8D 28   D4 4D C8 22 2A CF C5 57  PO#.,..(.M."*..W
adminserver    | 00B0: 9D A5 39 5D 68 9A 47 8C   E3 4F 1D 7B CC 16 78 22  ..9]h.G..O....x"
adminserver    | 00C0: 17 13 05 12 5B 9F F2 67   43 C1 BF 09 15 17 F4 14  ....[..gC.......
adminserver    | 00D0: 2E D2 93 30 6C 40 51 ED   17 D5 ED 7F 56 70 23 B8  ...0l@Q.....Vp#.
adminserver    | 00E0: EC BA 1B 70 F3 6F 88 D0   5E 80 4F 8E FA 8A 4C D7  ...p.o..^.O...L.
adminserver    | 00F0: EE B3 CC 69 6F F1 8A 8B   FF 3D 61 93 EC A5 51 EC  ...io....=a...Q.
adminserver    | 
adminserver    | ] The system is vulnerable to security attacks, since the server private key is available to the public.> 
adminserver    | <Nov 5, 2020 10:26:32,591 PM GMT> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file /u01/oracle/wlserver/server/lib/DemoTrust.jks.> 
adminserver    | <Nov 5, 2020 10:26:32,593 PM GMT> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file /usr/java/jdk-8/jre/lib/security/cacerts.> 
adminserver    | <Nov 5, 2020 10:26:32,602 PM GMT> <Alert> <Security> <BEA-090152> <Demo trusted CA certificate is being used in production mode: [
adminserver    | [
adminserver    |   Version: V3
adminserver    |   Subject: CN=CertGenCA, OU=FOR TESTING ONLY, O=MyOrganization, L=MyTown, ST=MyState, C=US
adminserver    |   Signature Algorithm: SHA256withRSA, OID = 1.2.840.113549.1.1.11
adminserver    | 
adminserver    |   Key:  Sun RSA public key, 2048 bits
adminserver    |   params: null
adminserver    |   modulus: 21569708395943251187594674016571604098921772745632282565929962814298138584591157613649992982592658748355964560637259269459381120165962674847997186601844952950794343884378508077250725387979264156405992230284901283444196168994202670671450098028002820729882379283494630302003296180454013575703696190719968922095992809718845192136877316024285273738556979086501184481229174883470885039602384578448109344178846134501578736532042806069180907098975317661162739134415281135882151855357804342112417305346131916129115886340854713286486175081106238445832240131690537019111854259217532593165348893830947166922845648303005469444649
adminserver    |   public exponent: 65537
adminserver    |   Validity: [From: Sat Dec 01 03:07:51 GMT 2012,
adminserver    |                To: Thu Dec 02 03:07:51 GMT 2032]
adminserver    |   Issuer: CN=CertGenCA, OU=FOR TESTING ONLY, O=MyOrganization, L=MyTown, ST=MyState, C=US
adminserver    |   SerialNumber: [    40044886 c441ef3b 643a8066 409afca0]
adminserver    | 
adminserver    | Certificate Extensions: 3
adminserver    | [1]: ObjectId: 2.5.29.19 Criticality=true
adminserver    | BasicConstraints:[
adminserver    |   CA:true
adminserver    |   PathLen:1
adminserver    | ]
adminserver    | 
adminserver    | [2]: ObjectId: 2.5.29.15 Criticality=true
adminserver    | KeyUsage [
adminserver    |   Key_CertSign
adminserver    | ]
adminserver    | 
adminserver    | [3]: ObjectId: 2.5.29.14 Criticality=false
adminserver    | SubjectKeyIdentifier [
adminserver    | KeyIdentifier [
adminserver    | 0000: 34 38 FD 45 D8 80 CF C7   D2 E8 DF 1D F8 A1 39 B0  48.E..........9.
adminserver    | 0010: 11 88 00 6A                                        ...j
adminserver    | ]
adminserver    | ]
adminserver    | 
adminserver    | ]
adminserver    |   Algorithm: [SHA256withRSA]
adminserver    |   Signature:
adminserver    | 0000: 17 69 74 CF CB 96 44 33   17 B3 70 0F 2A FF A8 63  .it...D3..p.*..c
adminserver    | 0010: CC 7A C8 CD 74 59 99 DE   10 16 FE 3D 17 00 71 B8  .z..tY.....=..q.
adminserver    | 0020: B0 FC C4 3F B6 B0 6D 77   78 9F 83 9B EA 22 A3 DA  ...?..mwx...."..
adminserver    | 0030: D7 35 00 D6 C5 F3 37 F1   7C 28 DF AA E8 2D 2A 13  .5....7..(...-*.
adminserver    | 0040: 9C 38 63 B7 08 D2 0E 0D   20 93 86 3D A2 F0 86 B9  .8c..... ..=....
adminserver    | 0050: 2B B4 6A 3F C6 FB 61 77   36 EE 60 07 BE C2 0E E4  +.j?..aw6.`.....
adminserver    | 0060: 33 0C E8 08 B1 3A 25 DC   3B E2 47 30 F1 46 43 06  3....:%.;.G0.FC.
adminserver    | 0070: 85 EE AB 3B 65 29 12 35   D4 D9 A8 EC 90 DB 60 6A  ...;e).5......`j
adminserver    | 0080: 4D 13 99 EE BD 29 AA BB   1F 96 C9 88 F3 E3 63 34  M....)........c4
adminserver    | 0090: 73 75 D4 5D EE B7 26 CD   78 E9 AA 1E B8 42 15 01  su.]..&.x....B..
adminserver    | 00A0: F3 D9 2A 64 C4 70 1D 1E   E5 98 EF 1E 78 1F 6C DF  ..*d.p......x.l.
adminserver    | 00B0: 7D FF 4B DD 7A 53 B2 C8   0E 0D 27 27 40 DB 8D 10  ..K.zS....''@...
adminserver    | 00C0: 47 5B 2E F4 74 89 85 2A   1B 6A 6A 3F 65 D9 25 2B  G[..t..*.jj?e.%+
adminserver    | 00D0: 93 A5 33 CE 03 CC 8E 64   E1 9F F1 3C A4 AB 0F C5  ..3....d...<....
adminserver    | 00E0: 28 36 46 B9 F4 24 69 0A   38 E9 A6 73 92 68 AC 79  (6F..$i.8..s.h.y
adminserver    | 00F0: F5 E1 D7 CB D8 FF FE 15   F7 B8 39 33 D3 66 03 17  ..........93.f..
adminserver    | 
adminserver    | ]. The system is vulnerable to security attacks, since it trusts certificates signed by the demo trusted CA.> 
adminserver    | <Nov 5, 2020 10:26:32,609 PM GMT> <Notice> <Server> <BEA-002613> <Channel "DefaultAdministration" is now listening on 172.20.0.2:9002 for protocols admin, ldaps, https.> 
adminserver    | <Nov 5, 2020 10:26:32,610 PM GMT> <Notice> <Server> <BEA-002613> <Channel "DefaultAdministration[1]" is now listening on 127.0.0.1:9002 for protocols admin, ldaps, https.> 
adminserver    | <Nov 5, 2020 10:26:32,611 PM GMT> <Notice> <Server> <BEA-002613> <Channel "DefaultAdministration" is now listening on 172.20.0.2:9002 for protocols admin, ldaps, https.> 
adminserver    | <Nov 5, 2020 10:26:32,612 PM GMT> <Notice> <Server> <BEA-002613> <Channel "DefaultAdministration[1]" is now listening on 127.0.0.1:9002 for protocols admin, ldaps, https.> 
adminserver    | <Nov 5, 2020 10:26:32,636 PM GMT> <Notice> <Security> <BEA-090946> <Security pre-initializing using security realm: myrealm> 
adminserver    | <Nov 5, 2020 10:26:33,080 PM GMT> <Notice> <Security> <BEA-090947> <Security post-initializing using security realm: myrealm> 
adminserver    | <Nov 5, 2020 10:26:34,105 PM GMT> <Notice> <Security> <BEA-090082> <Security initialized using administrative security realm: myrealm> 
adminserver    | <Nov 5, 2020 10:26:34,135 PM GMT> <Notice> <Security> <BEA-090083> <Storing boot identity in the file: /u01/oracle/user_projects/domains/base_domain/servers/AdminServer/security/boot.properties.> 
adminserver    | <Nov 5, 2020 10:26:34,299 PM GMT> <Notice> <JMX> <BEA-149512> <JMX Connector Server started at service:jmx:iiop://172.20.0.2:9002/jndi/weblogic.management.mbeanservers.runtime.> 
adminserver    | <Nov 5, 2020 10:26:34,459 PM GMT> <Notice> <JMX> <BEA-149512> <JMX Connector Server started at service:jmx:iiop://172.20.0.2:9002/jndi/weblogic.management.mbeanservers.domainruntime.> 
adminserver    | <Nov 5, 2020 10:26:34,468 PM GMT> <Notice> <JMX> <BEA-149512> <JMX Connector Server started at service:jmx:iiop://172.20.0.2:9002/jndi/weblogic.management.mbeanservers.edit.> 
adminserver    | <Nov 5, 2020 10:26:35,236 PM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY.> 
adminserver    | <Nov 5, 2020 10:26:35,237 PM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.> 
adminserver    | <Nov 5, 2020 10:26:35,279 PM GMT> <Notice> <Log Management> <BEA-170036> <The Logging monitoring service timer has started to check for logged message counts every 30 seconds.> 
adminserver    | <Nov 5, 2020 10:26:37,943 PM GMT> <Notice> <Log Management> <BEA-170027> <The server has successfully established a connection with the Domain level Diagnostic Service.> 
adminserver    | <Nov 5, 2020 10:26:38,642 PM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN.> 
adminserver    | <Nov 5, 2020 10:26:38,693 PM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING.> 
adminserver    | <Nov 5, 2020 10:26:38,722 PM GMT> <Alert> <Security> <BEA-090153> <Demo identity certificate is used in production mode: [
adminserver    | [
adminserver    |   Version: V3
adminserver    |   Subject: CN=928e579046ef, OU=FOR TESTING ONLY, O=MyOrganization, L=MyTown, ST=MyState, C=US
adminserver    |   Signature Algorithm: SHA256withRSA, OID = 1.2.840.113549.1.1.11
adminserver    | 
adminserver    |   Key:  Sun RSA public key, 2048 bits
adminserver    |   params: null
adminserver    |   modulus: 25973061340062574938768116924725336188732560509348908453135155851762443017483988797683745629444421944193147070683894426825861535670011620970608891535085532754829478131977115115634404027054088440786891993470991565120369916144347274686047734617816031522256214862839633580447268559561043066346274088306496041648382310850970277412311351324721250125919423384569189054449729876585593413827218423296270219632864941466886873882081141027640690027135763125106721170857135316691921470776198063270945442699822438047355034100830584162333747058829851324007190370930746572862907122301696896174770196325453204285415548490280593858569
adminserver    |   public exponent: 65537
adminserver    |   Validity: [From: Wed Nov 04 22:26:28 GMT 2020,
adminserver    |                To: Mon Nov 05 22:26:28 GMT 2035]
adminserver    |   Issuer: CN=CertGenCA, OU=FOR TESTING ONLY, O=MyOrganization, L=MyTown, ST=MyState, C=US
adminserver    |   SerialNumber: [   -54b26f58 a7a9c21e 42ac743a 945460bd]
adminserver    | 
adminserver    | Certificate Extensions: 3
adminserver    | [1]: ObjectId: 2.5.29.35 Criticality=false
adminserver    | AuthorityKeyIdentifier [
adminserver    | KeyIdentifier [
adminserver    | 0000: 34 38 FD 45 D8 80 CF C7   D2 E8 DF 1D F8 A1 39 B0  48.E..........9.
adminserver    | 0010: 11 88 00 6A                                        ...j
adminserver    | ]
adminserver    | ]
adminserver    | 
adminserver    | [2]: ObjectId: 2.5.29.15 Criticality=true
adminserver    | KeyUsage [
adminserver    |   DigitalSignature
adminserver    |   Non_repudiation
adminserver    |   Key_Encipherment
adminserver    |   Data_Encipherment
adminserver    |   Key_Agreement
adminserver    | ]
adminserver    | 
adminserver    | [3]: ObjectId: 2.5.29.14 Criticality=false
adminserver    | SubjectKeyIdentifier [
adminserver    | KeyIdentifier [
adminserver    | 0000: 71 A0 FB 19 59 31 75 CE   69 13 DB 9F C5 5E 8C 49  q...Y1u.i....^.I
adminserver    | 0010: 6D D4 4B 67                                        m.Kg
adminserver    | ]
adminserver    | ]
adminserver    | 
adminserver    | ]
adminserver    |   Algorithm: [SHA256withRSA]
adminserver    |   Signature:
adminserver    | 0000: 82 AB AE 62 DF 62 0D 77   77 99 B4 6C EA CB 93 30  ...b.b.ww..l...0
adminserver    | 0010: 65 5F AA 7E 64 9A 52 D4   3E D5 34 A1 FA E2 4F D4  e_..d.R.>.4...O.
adminserver    | 0020: 7E CA 50 8C B9 8B 27 7A   D4 0F B1 38 8E C7 DE 38  ..P...'z...8...8
adminserver    | 0030: 6C 58 B8 9E 66 94 31 23   B4 C8 10 F6 9E 69 E2 15  lX..f.1#.....i..
adminserver    | 0040: 98 D3 8F 93 88 BE 2C 69   2F 82 B7 11 9F 1D 03 EE  ......,i/.......
adminserver    | 0050: 50 36 43 9A F6 96 41 85   B7 AB 25 BA 40 F1 44 60  P6C...A...%.@.D`
adminserver    | 0060: 94 DB D5 69 EB 55 64 55   8D B1 CE BF E2 4F 29 79  ...i.UdU.....O)y
adminserver    | 0070: EA 1D 33 20 7F F9 89 59   F9 C8 AD E5 99 CD C7 37  ..3 ...Y.......7
adminserver    | 0080: 64 1C 7B DB 22 E9 15 AA   BE 4C B8 9D 4E BC B6 D7  d..."....L..N...
adminserver    | 0090: 24 CE 85 0B 1E BC 34 75   2A 6F 26 EA E7 FB F3 EC  $.....4u*o&.....
adminserver    | 00A0: 50 4F 23 0D 2C 96 8D 28   D4 4D C8 22 2A CF C5 57  PO#.,..(.M."*..W
adminserver    | 00B0: 9D A5 39 5D 68 9A 47 8C   E3 4F 1D 7B CC 16 78 22  ..9]h.G..O....x"
adminserver    | 00C0: 17 13 05 12 5B 9F F2 67   43 C1 BF 09 15 17 F4 14  ....[..gC.......
adminserver    | 00D0: 2E D2 93 30 6C 40 51 ED   17 D5 ED 7F 56 70 23 B8  ...0l@Q.....Vp#.
adminserver    | 00E0: EC BA 1B 70 F3 6F 88 D0   5E 80 4F 8E FA 8A 4C D7  ...p.o..^.O...L.
adminserver    | 00F0: EE B3 CC 69 6F F1 8A 8B   FF 3D 61 93 EC A5 51 EC  ...io....=a...Q.
adminserver    | 
adminserver    | ] The system is vulnerable to security attacks, since the server private key is available to the public.> 
adminserver    | <Nov 5, 2020 10:26:38,723 PM GMT> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure[1]" is now listening on 127.0.0.1:7002 for protocols iiops, t3s, ldaps, https.> 
adminserver    | <Nov 5, 2020 10:26:38,724 PM GMT> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure" is now listening on 172.20.0.2:7002 for protocols iiops, t3s, ldaps, https.> 
adminserver    | <Nov 5, 2020 10:26:38,724 PM GMT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 172.20.0.2:7001 for protocols iiop, t3, ldap, snmp, http.> 
adminserver    | <Nov 5, 2020 10:26:38,725 PM GMT> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.> 
adminserver    | <Nov 5, 2020 10:26:38,726 PM GMT> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure[1]" is now listening on 127.0.0.1:7002 for protocols iiops, t3s, ldaps, https.> 
adminserver    | <Nov 5, 2020 10:26:38,726 PM GMT> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure" is now listening on 172.20.0.2:7002 for protocols iiops, t3s, ldaps, https.> 
adminserver    | <Nov 5, 2020 10:26:38,726 PM GMT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 172.20.0.2:7001 for protocols iiop, t3, ldap, snmp, http.> 
adminserver    | <Nov 5, 2020 10:26:38,727 PM GMT> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.> 
adminserver    | <Nov 5, 2020 10:26:38,727 PM GMT> <Notice> <WebLogicServer> <BEA-000329> <Started the WebLogic Server Administration Server "AdminServer" for domain "base_domain" running in production mode.> 
adminserver    | <Nov 5, 2020 10:26:38,735 PM GMT> <Notice> <WebLogicServer> <BEA-000360> <The server started in RUNNING mode.> 
adminserver    | <Nov 5, 2020 10:26:38,746 PM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING.> 
adminserver    | 2020-11-05 22:26:39.878/10.735 Oracle Coherence 12.2.1.4.0 <Info> (thread=[STANDBY] ExecuteThread: '9' for queue: 'weblogic.kernel.Default (self-tuning)', member=n/a): Loaded operational configuration from "jar:file:/u01/oracle/coherence/lib/coherence.jar!/tangosol-coherence.xml"
adminserver    | 2020-11-05 22:26:39.915/10.772 Oracle Coherence 12.2.1.4.0 <Info> (thread=[STANDBY] ExecuteThread: '9' for queue: 'weblogic.kernel.Default (self-tuning)', member=n/a): Loaded operational overrides from "jar:file:/u01/oracle/coherence/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
adminserver    | 2020-11-05 22:26:39.920/10.776 Oracle Coherence 12.2.1.4.0 <Info> (thread=[STANDBY] ExecuteThread: '9' for queue: 'weblogic.kernel.Default (self-tuning)', member=n/a): Optional configuration override "/tangosol-coherence-override.xml" is not specified
adminserver    | 2020-11-05 22:26:39.924/10.781 Oracle Coherence 12.2.1.4.0 <Info> (thread=[STANDBY] ExecuteThread: '9' for queue: 'weblogic.kernel.Default (self-tuning)', member=n/a): Optional configuration override "cache-factory-config.xml" is not specified
adminserver    | 2020-11-05 22:26:39.927/10.784 Oracle Coherence 12.2.1.4.0 <Info> (thread=[STANDBY] ExecuteThread: '9' for queue: 'weblogic.kernel.Default (self-tuning)', member=n/a): Optional configuration override "cache-factory-builder-config.xml" is not specified
adminserver    | 2020-11-05 22:26:39.930/10.786 Oracle Coherence 12.2.1.4.0 <Info> (thread=[STANDBY] ExecuteThread: '9' for queue: 'weblogic.kernel.Default (self-tuning)', member=n/a): Optional configuration override "/custom-mbeans.xml" is not specified
adminserver    | 
adminserver    | Oracle Coherence Version 12.2.1.4.0 Build 74888
adminserver    |  Grid Edition: Development mode
adminserver    | Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
adminserver    | 
adminserver    | 2020-11-05 22:26:39.991/10.848 Oracle Coherence GE 12.2.1.4.0 <Info> (thread=[STANDBY] ExecuteThread: '9' for queue: 'weblogic.kernel.Default (self-tuning)', member=n/a): Configured versioned, multi-cluster Management over ReST

SSH into Weblogic container 

[dave@dave weblogic]$ docker exec -it adminserver bash
[oracle@928e579046ef ~]$ ls -l
total 84
drwxr-x---.  5 oracle root   4096 Nov  5 21:58 coherence
-rwxrwxr-x.  1 oracle root   2550 Nov  5 21:53 createAndStartEmptyDomain.sh
-rw-rw-r--.  1 oracle root   3134 Nov  5 20:58 create-wls-domain.py
-rw-r-----.  1 oracle oracle  201 Nov  5 22:26 domain-registry.xml
-rwxrwxr-x.  1 oracle root    370 Nov  5 20:58 get_healthcheck_url.sh
drwxr-x---. 16 oracle root   4096 Nov  5 21:58 inventory
drwxr-x---. 11 oracle root   4096 Nov  5 21:58 OPatch
drwxr-x---. 10 oracle root   4096 Nov  5 21:58 oracle_common
-rw-r-----.  1 oracle root    126 Nov  5 21:58 oraInst.loc
drwxr-x---.  8 oracle root   4096 Nov  5 21:58 oui
drwxrwxrwx.  2 oracle oracle 4096 Nov  5 21:35 properties
-rwx------.  1 oracle root     10 Nov  5 21:58 root.sh
drwxr-xr-x.  3 root   root   4096 Nov  5 22:26 user_projects
drwxr-x---.  1 oracle root   4096 Nov  5 21:58 wlserver
[oracle@928e579046ef ~]$ pwd
/u01/oracle
[oracle@928e579046ef ~]$ ls properties/
domain.properties  domain_security.properties
[oracle@928e579046ef ~]$ ls /u01/
fmw_12214_readme.html  oracle/                oraInst.loc            
[oracle@928e579046ef ~]$ ls /u01/oracle/
.bash_history                 createAndStartEmptyDomain.sh  .inventory/                   .pki/
.bash_logout                  create-wls-domain.py          OPatch/                       properties/
.bash_profile                 domain-registry.xml           oracle_common/                root.sh
.bashrc                       get_healthcheck_url.sh        oraInst.loc                   user_projects/
coherence/                    inventory/                    oui/                          wlserver/
[oracle@928e579046ef ~]$ ls /u01/oracle/user_projects/domains/
base_domain/ properties/  
[oracle@928e579046ef ~]$ ls /u01/oracle/user_projects/domains/
base_domain/ properties/  
[oracle@928e579046ef ~]$ ls /u01/oracle/user_projects/domains/base_domain/
autodeploy  common  console-ext  edit.lok              init-info  nodemanager    resources  servers
bin         config  derby.log    fileRealm.properties  lib        orchestration  security   startWebLogic.sh


Wednesday, October 7, 2020

Create Weblogic 12.2.1.4 Docker image with Oracle JDK 8 - using Oracle offical Docker image repository

This is using official Oracle Docker image repo

 For own Centos 8 images see https://danielveselka.blogspot.com/2021/02/create-centos-8-oracle-jdk-docker-image.html

 

Clone Oracle Docker image repo

https://github.com/oracle/docker-images/tree/master/OracleWebLogic

 

Alternatively download Weblogic image from Oracle Docker repository

https://container-registry.oracle.com/

https://www.middlewareinventory.com/blog/weblogic-docker/

 

See https://github.com/bzon/docker-oracle-weblogic for Docker compose sample 

https://github.com/bzon/docker-oracle-weblogic/blob/master/OracleWeblogic/weblogic-samples/1221-app-jms-domain/docker-compose.yml

On Fedora 31+ modify Docker installation 

https://fedoramagazine.org/docker-and-fedora-32/

Downloads

Build Oracle JDK 8 Docker image

Build Weblogic Server image

./buildDockerImage.sh -hUsage: buildDockerImage.sh -v [version] [-d | -g | -m ] [-j] [-s] [-c]
Builds a Docker Image for Oracle WebLogic.Parameters:
   -v: version to build. Required.
       Choose one of: 12.1.3  12.2.1.3  12.2.1.4  14.1.1.0
   -d: creates image based on 'developer' distribution
   -g: creates image based on 'generic' distribution
   -j: choose '8' to create a 14.1.1.0 image with JDK 8 or '11' to create a 14.1.1.0 image with JDK 11.
   -m: creates image based on 'slim' distribution
   -c: enables Docker image layer cache during build
   -s: skips the MD5 check of packages* select one distribution only: -d, -g, or -mLICENSE UPL 1.0Copyright (c) 2014, 2020, Oracle and/or its affiliates.

 

./buildDockerImage.sh -v 12.2.1.4 -g
Set- WebLogic's Version 12.2.1.4
Set- Distribution:Generic
Version= 12.2.1.4 Distribution= generic
Checking if required packages are present and valid...
fmw_12.2.1.4.0_wls_lite_Disk1_1of1.zip: OK
md5sum: WARNING: 1 line is improperly formatted
=====================
Proxy settings were found and will be used during build.
Building image 'oracle/weblogic:12.2.1.4-generic' ...
Building image using Dockerfile.'generic'
Sending build context to Docker daemon  607.2MB
Step 1/19 : FROM oracle/serverjre:8 as builder
 ---> b12cce0cdc47
Step 2/19 : 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"
 ---> Running in f8d99a88a5ad
Removing intermediate container f8d99a88a5ad
 ---> d736736d476b
Step 3/19 : ENV ORACLE_HOME=/u01/oracle     USER_MEM_ARGS="-Djava.security.egd=file:/dev/./urandom"     PATH=$PATH:${JAVA_HOME}/bin:/u01/oracle/oracle_common/common/bin:/u01/oracle/wlserver/common/bin
 ---> Running in 3f2ececaf11a
Removing intermediate container 3f2ececaf11a
 ---> 146b8fcd883b
Step 4/19 : RUN mkdir /u01 &&     useradd -b /u01 -d /u01/oracle -m -s /bin/bash oracle &&     chown oracle:root -R /u01 &&     chmod -R 775 /u01
 ---> Running in b0d432006afd
Removing intermediate container b0d432006afd
 ---> cf3b48c68fd8
Step 5/19 : ENV FMW_PKG=fmw_12.2.1.4.0_wls_lite_Disk1_1of1.zip     FMW_JAR=fmw_12.2.1.4.0_wls_lite_generic.jar
 ---> Running in cef80193cca1
Removing intermediate container cef80193cca1
 ---> 61d8ae7b497c
Step 6/19 : COPY --chown=oracle:root $FMW_PKG install.file oraInst.loc /u01/
 ---> 54d99177fc67
Step 7/19 : USER oracle
 ---> Running in 93ef6bacad54
Removing intermediate container 93ef6bacad54
 ---> 97b07f62eaf0
Step 8/19 : RUN cd /u01 && ${JAVA_HOME}/bin/jar xf /u01/$FMW_PKG && cd - &&     ${JAVA_HOME}/bin/java -jar /u01/$FMW_JAR -silent -responseFile /u01/install.file -invPtrLoc /u01/oraInst.loc -jreLoc $JAVA_HOME -ignoreSysPrereqs -force -novalidation ORACLE_HOME=$ORACLE_HOME INSTALL_TYPE="WebLogic Server" &&     rm /u01/$FMW_JAR /u01/$FMW_PKG /u01/install.file &&     rm -rf /u01/oracle/cfgtoollogs
 ---> Running in 2b8c2e927247
/
Launcher log file is /tmp/OraInstall2020-10-06_04-32-43PM/launcher2020-10-06_04-32-43PM.log.
Extracting the installer . . . . . . Done
Checking if CPU speed is above 300 MHz.   Actual 2299.892 MHz    Passed
Checking swap space: must be greater than 512 MB.   Actual 0 MB    Failed <<<<
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
Checking temp space: must be greater than 300 MB.   Actual 35308 MB    Passed>>> Ignoring failure(s) of required prerequisite checks and continuing.
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2020-10-06_04-32-43PM
Log: /tmp/OraInstall2020-10-06_04-32-43PM/install2020-10-06_04-32-43PM.log
Setting ORACLE_HOME...
Setting INSTALL_TYPE...
Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.
Reading response file..
Skipping Software Updates
Validations are disabled for this session.
Verifying data
Copying Files
Percent Complete : 10
Percent Complete : 20
Percent Complete : 30
Percent Complete : 40
Percent Complete : 50
Percent Complete : 60
Percent Complete : 70
Percent Complete : 80
Percent Complete : 90
Percent Complete : 100The installation of Oracle Fusion Middleware 12c WebLogic Server and Coherence 12.2.1.4.0 completed successfully.
Logs successfully copied to /u01/oracle/.inventory/logs.
Removing intermediate container 2b8c2e927247
 ---> d7a4e153f899
Step 9/19 : FROM oracle/serverjre:8
 ---> b12cce0cdc47
Step 10/19 : ENV ORACLE_HOME=/u01/oracle     USER_MEM_ARGS="-Djava.security.egd=file:/dev/./urandom"     SCRIPT_FILE=/u01/oracle/createAndStartEmptyDomain.sh     HEALTH_SCRIPT_FILE=/u01/oracle/get_healthcheck_url.sh     PATH=$PATH:${JAVA_HOME}/bin:/u01/oracle/oracle_common/common/bin:/u01/oracle/wlserver/common/bin
 ---> Running in 431e04896ee9
Removing intermediate container 431e04896ee9
 ---> eb2f7f4b28c6
Step 11/19 : ENV DOMAIN_NAME="${DOMAIN_NAME:-base_domain}"     ADMIN_LISTEN_PORT="${ADMIN_LISTEN_PORT:-7001}"     ADMIN_NAME="${ADMIN_NAME:-AdminServer}"     ADMINISTRATION_PORT_ENABLED="${ADMINISTRATION_PORT_ENABLED:-true}"     ADMINISTRATION_PORT="${ADMINISTRATION_PORT:-9002}"
 ---> Running in 63039f801c73
Removing intermediate container 63039f801c73
 ---> 81f866830975
Step 12/19 : RUN mkdir -p /u01 &&     chmod 775 /u01 &&     useradd -b /u01 -d /u01/oracle -m -s /bin/bash oracle &&     chown oracle:root /u01
 ---> Running in 0d343b7ba4a1
Removing intermediate container 0d343b7ba4a1
 ---> 313342ac76f6
Step 13/19 : COPY --from=builder --chown=oracle:root /u01 /u01
 ---> 78f69917697e
Step 14/19 : COPY container-scripts/createAndStartEmptyDomain.sh container-scripts/create-wls-domain.py container-scripts/get_healthcheck_url.sh /u01/oracle/
 ---> 50da8dbcf889
Step 15/19 : RUN chmod +xr $SCRIPT_FILE $HEALTH_SCRIPT_FILE &&     chown oracle:root $SCRIPT_FILE /u01/oracle/create-wls-domain.py $HEALTH_SCRIPT_FILE
 ---> Running in d99c49d10e81
Removing intermediate container d99c49d10e81
 ---> d92ddd8d7375
Step 16/19 : USER oracle
 ---> Running in 453e1dfee2ef
Removing intermediate container 453e1dfee2ef
 ---> 1d89d8a52ac8
Step 17/19 : HEALTHCHECK --start-period=10s --timeout=30s --retries=3  CMD curl -k -s --fail `$HEALTH_SCRIPT_FILE` || exit 1
 ---> Running in 57809c715f24
Removing intermediate container 57809c715f24
 ---> 209494bd4b6c
Step 18/19 : WORKDIR ${ORACLE_HOME}
 ---> Running in a82dc96b8ddc
Removing intermediate container a82dc96b8ddc
 ---> 8ab075250e2f
Step 19/19 : CMD ["/u01/oracle/createAndStartEmptyDomain.sh"]
 ---> Running in 3a8437f5ed11
Removing intermediate container 3a8437f5ed11
 ---> 9dd72f2c0bc0
Successfully built 9dd72f2c0bc0
Successfully tagged oracle/weblogic:12.2.1.4-generic  WebLogic Docker Image for 'generic' version 12.2.1.4 is ready to be extended:    --> oracle/weblogic:12.2.1.4-generic  Build completed in 121 seconds.

 

Build domain 


Build domain
[centos@dave 12213-domain]$ more ./build.sh
#! /bin/bash
#
#Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
#
#Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
#
#Build WebLogic Domain image persisted to volumedocker build -f Dockerfile -t 12213-weblogic-domain-in-volume .
[centos@dave 12213-domain]$ vi Dockerfile
[centos@dave 12213-domain]$ ./build.sh
Sending build context to Docker daemon  37.89kB
Step 1/11 : FROM oracle/weblogic:12.2.1.4-generic
 ---> 4ce73a139125
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 c835f39122df
Removing intermediate container c835f39122df
 ---> b9c89cbdf500
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 84b5fc5ce774
Removing intermediate container 84b5fc5ce774
 ---> 522568b73d0f
Step 4/11 : COPY --chown=oracle:oracle container-scripts/* /u01/oracle/container-scripts/
 ---> 46366a86c0a3
Step 5/11 : COPY --chown=oracle:oracle container-scripts/get_healthcheck_url.sh /u01/oracle/get_healthcheck_url.sh
 ---> de84286612b9
Step 6/11 : USER root
 ---> Running in 378af82336af
Removing intermediate container 378af82336af
 ---> 1e46b9768728
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 9eaa3b52ebc4
Removing intermediate container 9eaa3b52ebc4
 ---> 1547b3da749e
Step 8/11 : VOLUME $DOMAIN_ROOT
 ---> Running in 23f2f75bf138
Removing intermediate container 23f2f75bf138
 ---> 0ba76fec1693
Step 9/11 : USER oracle
 ---> Running in dcb7192cd277
Removing intermediate container dcb7192cd277
 ---> 7b9bdaa230d9
Step 10/11 : WORKDIR $ORACLE_HOME
 ---> Running in 1fdfd3c2a584
Removing intermediate container 1fdfd3c2a584
 ---> 5dd674f9a68b
Step 11/11 : CMD ["/u01/oracle/container-scripts/createWLSDomain.sh"]
 ---> Running in f03451d26803
Removing intermediate container f03451d26803
 ---> 29cc97f25353
Successfully built 29cc97f25353
Successfully tagged 12213-weblogic-domain-in-volume:latest


Start Admin server

 
 
./run_admin_server.sh
Context for docker build is /git/docker-images/OracleWebLogic/samples/12213-domain
Export environment variables from the /git/docker-images/OracleWebLogic/samples/12213-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: ADMINISTRATION_PORT=9002
 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
administrationport=9002
docker run -d -p 9001:7001 -p 9002:9002 --name AdminContainer --hostname AdminContainer -v /git/docker-images/OracleWebLogic/samples/12213-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 ADMINISTRATION_PORT=9002 -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 12213-weblogic-domain-in-volume
bb8e16947737ca93b174397ef47fb2427b4ea349ed0dad93c609172006ad842a
[centos@dave 12213-domain]$ docker ps
CONTAINER ID        IMAGE                             COMMAND                  CREATED             STATUS                            PORTS                                            NAMES
bb8e16947737        12213-weblogic-domain-in-volume   "/u01/oracle/contain…"   5 seconds ago       Up 4 seconds (health: starting)   0.0.0.0:9002->9002/tcp, 0.0.0.0:9001->7001/tcp   AdminContainer


On Fedora with SE Linux add :z to mounted host volume to allow access for container 

https://www.reddit.com/r/Fedora/comments/g38e3g/docker_volume_mount_permission_denied/

https://docs.docker.com/storage/bind-mounts/#configure-the-selinux-label

 Without this there is error because mounted host volume with password files is not accessible for container.

A properties file with the username and password needs to be supplied.

[dave@dave 12.2.1.4]$ docker run -d -p 7001:7001 -p 9002:9002  -v /app/domains/properties:/u01/oracle/properties:z -e ADMINISTRATION_PORT_ENABLED=true -e DOMAIN_NAME=docker_domain oracle/weblogic:12.2.1.4-generic
145f8e92131287cc11c58c310724bd416173c64f4b605da3863e2cd80aee354a
[dave@dave 12.2.1.4]$ docker ps
CONTAINER ID        IMAGE                              COMMAND                  CREATED             STATUS                            PORTS                                            NAMES
145f8e921312        oracle/weblogic:12.2.1.4-generic   "/u01/oracle/createA…"   3 seconds ago       Up 2 seconds (health: starting)   0.0.0.0:7001->7001/tcp, 0.0.0.0:9002->9002/tcp   vigilant_gould