Skip to content

Commit 6b78d59

Browse files
committed
Merge branch 'issue#130-add-docker-sample-that-creates-a-domain' of github.com:oracle/weblogic-deploy-tooling into issue#130-add-docker-sample-that-creates-a-domain
2 parents 07dae77 + d2efccb commit 6b78d59

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Download the WebLogic Deploy Tool installer to the sample directory.
2+
#
3+
# - wget https://github.com/oracle/weblogic-deploy-tooling/releases/download/weblogic-deploy-tooling-0.11/weblogic-deploy.zip
4+
#
5+
weblogic-deploy.zip

0 commit comments

Comments
 (0)