|
| 1 | +Example Image with a WLS Domain |
| 2 | +================================ |
| 3 | +This Dockerfile extends the Oracle WebLogic image by creating a sample WLS 12.2.1.3 domain and cluster from a WebLogic Deploy Tool model. |
| 4 | + |
| 5 | +Utility scripts are copied into the image, enabling users to plug Node Manager automatically into the Administration Server running on another container. |
| 6 | + |
| 7 | +### WebLogic Deploy Tool |
| 8 | + |
| 9 | +The WebLogic Deploy Tool is used to create the domain image from a model file. Details about the tool and the model file format can be found in its GitHub project: |
| 10 | + |
| 11 | +https://github.com/oracle/weblogic-deploy-tooling |
| 12 | + |
| 13 | +### How to Build and Run |
| 14 | + |
| 15 | +**NOTE:** The image is based on a WebLogic image in the Docker store: store/oracle/weblogic:12.2.1.3 . Verify that you have access to download this image. |
| 16 | + |
| 17 | +The WebLogic Deploy Tool installer is required to build this image. Add weblogic-deploy.zip to the sample directory. |
| 18 | + |
| 19 | + $ wget https://github.com/oracle/weblogic-deploy-tooling/releases/download/weblogic-deploy-tooling-0.11/weblogic-deploy.zip |
| 20 | + |
| 21 | +To build this sample, run: |
| 22 | + |
| 23 | + $ docker build \ |
| 24 | + --build-arg WDT_MODEL=simple-topology.yaml \ |
| 25 | + -t 12213-domain-wdt . |
| 26 | + |
| 27 | +This will use the model file in the sample directory. |
| 28 | + |
| 29 | +To start the containerized Administration Server, run: |
| 30 | + |
| 31 | + $ docker run -d --name wlsadmin --hostname wlsadmin -p 7001:7001 --env-file ./container-scripts/domain.properties 12213-domain-wdt |
| 32 | + |
| 33 | +TBD To start a containerized Managed Server (MS1) to self-register with the Administration Server above, run: |
| 34 | + |
| 35 | + $ docker run -d --name MS1 --link wlsadmin:wlsadmin -p 8001:8001 --env-file ./container-scripts/domain.properties -e ADMIN_PASSWORD=<admin_password> -e MS_NAME=MS1 --volumes-from wlsadmin 12213-domain createServer.sh |
| 36 | + |
| 37 | +TBD To start a second Managed Server (MS2), run: |
| 38 | + |
| 39 | + $ docker run -d --name MS2 --link wlsadmin:wlsadmin -p 8002:8001 --env-file ./container-scripts/domain.properties -e ADMIN_PASSWORD=<admin_password> -e MS_NAME=MS2 --volumes-from wlsadmin 12213-domain createServer.sh |
| 40 | + |
| 41 | +The above scenario from this sample will give you a WebLogic domain with a cluster set up on a single host environment. |
| 42 | + |
| 43 | +You may create more containerized Managed Servers by calling the `docker` command above for `createServer.sh` as long you link properly with the Administration Server. For an example of a multihost environment, see the sample `1221-multihost`. |
| 44 | + |
| 45 | +# Copyright |
| 46 | +Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. |
0 commit comments