You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Copy file name to clipboardExpand all lines: samples/docker-domain/README.md
+16-9Lines changed: 16 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,24 @@
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.
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. Utility scripts are copied into the image, enabling users to plug Node Manager automatically into the Administration Server running on another container.
4
4
5
-
Utility scripts are copied into the image, enabling users to plug Node Manager automatically into the Administration Server running on another container.
5
+
The Dockerfile uses the createDomain script from the Oracle WebLogic Deploy Tooling (WDT) to create the domain from a text-based model file. More information about WDT is available in the README file for the WDT project in GitHub:
6
6
7
-
### WebLogic Deploy Tool
7
+
https://github.com/oracle/weblogic-deploy-tooling
8
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:
9
+
### WDT Model File and Archive
10
10
11
-
https://github.com/oracle/weblogic-deploy-tooling
11
+
This sample includes a basic WDT model, simple-topology.yaml, that describes the intended configuration of the domain within the Docker image. WDT models can be created and modified using a text editor, following the format and rule described in the README file for the WDT project in GitHub.
12
+
13
+
Another option is to use the WDT discoverDomain tool to create a model. This process is also described in the WDT project's README file. A user can use the tool to analyze an existing domain, and create a model based on its configuration. The user may choose to customize the model before using it to create a new docker image.
14
+
15
+
Domain creation may require the deployment of applications and libraries. This is accomplished by creating a zip archive with a specific structure, then referencing those items in the model. This sample creates and deploys a simple ZIP archive containing a small application WAR. That archive is built in the sample directory prior to creating the Docker image.
16
+
17
+
When the WDT discoverDomain tool is used on an existing domain, a ZIP archive is created containing any necessary applications and libraries. The corresponding configuration for those applications and libraries is added to the model.
12
18
13
19
### How to Build and Run
14
20
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.
21
+
**NOTE:** The image is based on a WebLogic image in the Docker store: store/oracle/weblogic:12.2.1.3 . Download this image to your local repository before building the image.
16
22
17
23
The WebLogic Deploy Tool installer is required to build this image. Add weblogic-deploy.zip to the sample directory.
18
24
@@ -26,9 +32,10 @@ To build this sample, run:
26
32
27
33
$ docker build \
28
34
--build-arg WDT_MODEL=simple-topology.yaml \
35
+
--build-arg WDT_ARCHIVE=archive.zip \
29
36
-t 12213-domain-wdt .
30
37
31
-
This will use the model file in the sample directory.
38
+
This will use the model file and archive in the sample directory.
32
39
33
40
To start the containerized Administration Server, run:
0 commit comments