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
Copy file name to clipboardExpand all lines: documentation/4.1/content/samples/domains/domain-home-on-pv/_index.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: "Domain on PV"
3
3
date: 2019-02-23T17:32:31-05:00
4
4
weight: 4
5
-
description: "Sample for creating a WebLogic domain home on a persistent volume (PV) for deploying the generated WebLogic domain."
5
+
description: "Sample for creating and deploying a WebLogic domain on a persistent volume (PV)."
6
6
---
7
7
8
8
{{< table_of_contents >}}
@@ -14,15 +14,15 @@ This sample demonstrates deploying a
14
14
with [Domain creation images]({{< relref "/managing-domains/domain-on-pv/domain-creation-images.md" >}}).
15
15
The Domain on PV sample uses a WebLogic Deploy Tooling (WDT) model to specify your initial WebLogic configuration.
16
16
17
-
WDT models are a convenient and simple alternative to WebLogic Scripting Tool (WLST) configuration scripts and templates. They compactly define a WebLogic domain using model files, variable properties files, and application archives files. The WDT model format is described in the open source, [WebLogic Deploy Tooling](https://oracle.github.io/weblogic-deploy-tooling/) GitHub project, and the required directory structure for a WDT archive is specifically discussed [here](https://oracle.github.io/weblogic-deploy-tooling/concepts/archive/).
17
+
WDT models are a convenient and simple alternative to WebLogic Scripting Tool (WLST) configuration scripts and templates. They compactly define a WebLogic domain using model files, variable properties files, and application archive files. The WDT model format is described in the open source, [WebLogic Deploy Tooling](https://oracle.github.io/weblogic-deploy-tooling/) GitHub project, and the required directory structure for a WDT archive is specifically discussed [here](https://oracle.github.io/weblogic-deploy-tooling/concepts/archive/).
18
18
19
19
For more information on Domain on PV, see the [Domain on PV]({{< relref "/managing-domains/domain-on-pv/_index.md" >}}) user documentation.
20
20
21
21
#### Domain on PV domain types (WLS and JRF)
22
22
23
23
Domain on PV is supported on two types of domains: a standard Oracle WebLogic Server (WLS) domain and an Oracle Fusion Middleware Infrastructure, Java Required Files (JRF) domain. This sample demonstrates both WLS and JRF domain types.
24
24
25
-
The JRF domain path through the sample includes additional steps required for JRF: deploying an infrastructure database, initializing the database using the Repository Creation Utility (RCU) tool, referencing the infrastructure database from the WebLogic configuration, setting an Oracle Platform Security Services (OPSS) wallet password, and exporting or importing an OPSS wallet file. JRF domains may be used by Oracle products that layer on top of WebLogic Server, such as SOA and OSB.
25
+
The JRF domain path through the sample includes additional steps required for JRF: deploying an infrastructure database, referencing the infrastructure database from the WebLogic configuration, setting an Oracle Platform Security Services (OPSS) wallet password, and exporting or importing an OPSS wallet file. JRF domains may be used by Oracle products that layer on top of WebLogic Server, such as SOA and OSB.
26
26
27
27
#### Sample directory structure
28
28
@@ -32,10 +32,10 @@ Location | Description |
32
32
------------- | ----------- |
33
33
`kubernetes/samples/scripts/create-weblogic-domain/domain-on-pv/domain-resources` | JRF and WLS Domain YAML files. |
34
34
`kubernetes/samples/scripts/create-weblogic-domain/wdt-artifacts/archives` | Source code location for WebLogic Deploy Tooling application ZIP archives. |
35
-
`kubernetes/samples/scripts/create-weblogic-domain/wdt-artifacts/wdt-model-files` | Staging for each model image's WDT YAML files, WDT properties, and WDT archive ZIP files. The directories in `model images` are named for their respective images. |
35
+
`kubernetes/samples/scripts/create-weblogic-domain/wdt-artifacts/wdt-model-files` | Staging for each domain creation image's WDT YAML files, WDT properties, and WDT archive ZIP files. The directories in `wdt-model-files` are named for their respective images. |
`kubernetes/samples/scripts/domain-lifecycle/opss-wallet.sh` | Utility script for exporting or importing a JRF domain OPSS wallet file. |
38
-
`kubernetes/samples/scripts/domain-lifecycle/waitForDomain.sh` | Utility script that optionally waits for the pods in a domain to reach their expected `restartVersion`, `introspectVersion`, `Completed`, `image`, and `ready` state. |
38
+
`kubernetes/samples/scripts/domain-lifecycle/waitForDomain.sh` | Utility script that optionally waits for the pods in a domain to reach their expected `Completed`, `image`, and `ready` state. |
39
39
`kubernetes/samples/scripts/domain-lifecycle/domain-on-pv-helper.sh` | Utility script to examine or clean up the contents of shared directories on the persistent volume. |
40
40
41
41
#### Ensuring your Kubernetes cluster can access images
**NOTE**: We give each cluster ingress a different host name that is decorated using both its operator domain UID and its cluster name. This makes each cluster uniquely addressable even when cluster names are the same across different clusters. When using `curl` to access the WebLogic domain through the ingress, you will need to supply a host name header that matches the host names in the ingress.
@@ -160,19 +159,19 @@ for the Domain on PV sample.
160
159
161
160
**NOTE**: The requirements in this section are in addition to [Prerequisites for WLS and JRF domain types](#prerequisites-for-wls-and-jrf-domain-types).
162
161
163
-
A JRF domain requires an infrastructure database, initializing this database with RCU, and configuring your domain to access this database. For more details, see [JRF domain]({{< relref "/managing-domains/working-with-wdt-models/jrf-domain.md" >}}) in user documentation. You must perform all these steps _before_ you create your domain.
162
+
A JRF domain requires an infrastructure database, and configuring your domain to access this database. For more details, see [JRF domain]({{< relref "/managing-domains/working-with-wdt-models/jrf-domain.md" >}}) in user documentation. You must perform all these steps _before_ you create your domain.
164
163
165
164
##### Set up and initialize an infrastructure database
166
165
167
-
A JRF domain requires an infrastructure database and requires initializing this database with a schema and a set of tables for each different domain. The following example shows how to set up a database and use the RCU tool to create the infrastructure schemas for two JRF domains. The database is set up with the following attributes:
166
+
A JRF domain requires an infrastructure database and requires initializing this database with a schema and a set of tables for each different domain. The following example shows how to set up a database. The database is set up with the following attributes:
@@ -213,66 +212,25 @@ A JRF domain requires an infrastructure database and requires initializing this
213
212
214
213
**WARNING:** The Oracle Database images are supported only for non-production use. For more details, see My Oracle Support note: Oracle Support for Database Running on Docker (Doc ID 2216342.1).
215
214
216
-
217
-
1. Use the sample script `create-rcu-schema.sh` in `/tmp/weblogic-kubernetes-operator/kubernetes/samples/scripts/create-rcu-schema` to create an RCU schema for each domain (schema prefixes `FMW1` and `FMW2`) in the database.
218
-
219
-
This script starts a pod named `rcu` in the `default` namespace (the same namespace as the database)
220
-
and executes RCU setup script `createRepository.sh`.
221
-
It assumes that the database URL is `oracle-db.default.svc.cluster.local:1521/devpdb.k8s` and the namespace is `default` by default.
222
-
223
-
- First, create a secret in the `default` namespace
224
-
which contains the database's SYSDBA username and password
225
-
in the secret's `sys_username` and `sys_password` fields,
226
-
and also contains the password of your choice for RCU schemas:
- Replace MY_DBA_PASSWORD with the same value that you chose when deploying the database.
235
-
- Replace MY_RCU_SCHEMA_PASSWORD with your choice of RCU schema password.
236
-
- Oracle passwords can contain upper case, lower case, digits, and special characters.
237
-
Use only `_` and `#` as special characters to eliminate potential parsing errors in Oracle connection strings.
238
-
- __Note__: Record or memorize the values you chose for MY_DBA_PASSWORD and MY_RCU_SCHEMA_PASSWORD. They will be be needed again in other parts of this sample.
239
-
240
-
- Second, run the script twice, once for each RCU schema prefix:
241
-
```shell
242
-
$ cd /tmp/weblogic-kubernetes-operator/kubernetes/samples/scripts/create-rcu-schema
- If your Kubernetes cluster nodes do not all have access to the FMW infrastructure image in a local cache, then deploy a Kubernetes `docker secret` to the default namespace with login credentials for `container-registry.oracle.com`, and pass the name of this secret as a parameter to `./create-rcu-schema.sh` using `-p your-image-pull-secret`. Alternatively, copy the FMW infrastructure image to each local Docker cache in the cluster. For more information, see the [Cannot pull image FAQ]({{<relref "/faq/cannot-pull-image">}}).
253
-
- If you need to drop the repositories, use these commands:
254
-
```shell
255
-
$ ./drop-rcu-schema.sh -s FMW1
256
-
```
257
-
```shell
258
-
$ ./drop-rcu-schema.sh -s FMW2
259
-
```
260
-
The drop command implicitly uses the same `rcu` pod and the same database credentials `oracle-rcu-secret` secret that
261
-
you set up when you created the RCU schema.
262
-
263
-
264
215
##### Important considerations for RCU model attributes, Domain fields, and secrets
265
216
266
217
To allow the operator to access the database and OPSS wallet, you must create an RCU access secret containing the database connect string, user name, and password that's referenced from your model and an OPSS wallet password secret that's referenced from your Domain before deploying your domain. It's also necessary to define an `RCUDbInfo` stanza in your model.
267
218
268
-
The sample includes examples of JRF models and Domain YAML files in the `/tmp/sample/model-images` and `/tmp/sample/domain-resources` directories, and instructions in the following sections will describe setting up the RCU and OPSS secrets.
219
+
The sample includes examples of JRF models and Domain YAML files in the `/tmp/sample/wdt-artifacts/wdt-model-files` and `/tmp/sample/domain-resources` directories, and instructions in the following sections will describe setting up the RCU and OPSS secrets.
269
220
270
221
When you follow the instructions in the samples, avoid instructions that are `WLS` only, and substitute `JRF` for `WLS` in the corresponding model image tags and Domain YAML file names.
271
222
272
223
For example, in this sample:
273
224
274
-
- JRF Domain YAML files have an `configuration.opss.walletPasswordSecret` field that references a secret named `sample-domain1-opss-wallet-password-secret`, with a `walletPassword` of your choice.
225
+
- [JRF Domain YAML](https://raw.githubusercontent.com/oracle/weblogic-kubernetes-operator/{{< latestMinorVersion >}}/kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv/domain-resources/JRF/domain-on-pv-JRF-v1.yaml) file has an `configuration.opss.walletPasswordSecret` field that references a secret named `sample-domain1-opss-wallet-password-secret`, with a `walletPassword` of your choice.
226
+
227
+
- JRF domain creation image models have below `domainInfo -> RCUDbInfo` stanza that reference a `sample-domain1-rcu-access` secret with appropriate values for attributes `rcu_prefix`, `rcu_schema_password`, and `rcu_db_conn_string` for accessing the Oracle database that you deployed to the default namespace as one of the prerequisite steps.
275
228
276
-
- JRF image models have a `domainInfo -> RCUDbInfo` stanza that reference a `sample-domain1-rcu-access` secret with appropriate values for attributes `rcu_prefix`, `rcu_schema_password`, and `rcu_db_conn_string` for accessing the Oracle database that you deployed to the default namespace as one of the prerequisite steps.
Copy file name to clipboardExpand all lines: documentation/4.1/content/samples/domains/model-in-image/_index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ your WebLogic domain home prior to deploying your Domain YAML file.
16
16
Instead, Model in Image uses a
17
17
WebLogic Deploy Tooling (WDT) model to specify your WebLogic configuration.
18
18
19
-
WDT models are a convenient and simple alternative to WebLogic Scripting Tool (WLST) configuration scripts and templates. They compactly define a WebLogic domain using model files, variable properties files, and application archives files. The WDT model format is described in the open source, [WebLogic Deploy Tooling](https://oracle.github.io/weblogic-deploy-tooling/) GitHub project, and the required directory structure for a WDT archive is specifically discussed [here](https://oracle.github.io/weblogic-deploy-tooling/concepts/archive/).
19
+
WDT models are a convenient and simple alternative to WebLogic Scripting Tool (WLST) configuration scripts and templates. They compactly define a WebLogic domain using model files, variable properties files, and application archive files. The WDT model format is described in the open source, [WebLogic Deploy Tooling](https://oracle.github.io/weblogic-deploy-tooling/) GitHub project, and the required directory structure for a WDT archive is specifically discussed [here](https://oracle.github.io/weblogic-deploy-tooling/concepts/archive/).
20
20
21
21
Furthermore, the Model in Image auxiliary image option lets you supply your WDT models files, WDT variable files, and WDT archives files
22
22
in a small separate image separate from your WebLogic image.
Copy file name to clipboardExpand all lines: documentation/4.1/content/samples/domains/model-in-image/auxiliary-image-creation.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,11 @@ description: "Create WebLogic images using the WebLogic Image Tool and WebLogic
13
13
14
14
Auxiliary image creation step uses the WebLogic Image Tool to create a Model in Image `auxiliary image`. This image contains:
15
15
- A WebLogic Deploy Tooling installation (expected in an image's `/auxiliary/weblogic-deploy` directory by default).
16
-
- WDT model YAML file (model), WDT variable (property), and WDT archive ZIP (archive) files (expected in directory `/auxiliary/models` by default).
16
+
- WDT model YAML file (model), WDT variable (property), and WDT archive ZIP (archive) files, expected in directory `/auxiliary/models` by default,
17
+
which can include the following file types:
18
+
- WDT model YAML file - A declarative definition of the domain configuration.
19
+
- WDT variable file - A property file that maps names to values. These names can be referenced from the model file to allow a model to be used across environments by applying the variable file for a particular environment to the model.
20
+
- WDT archive file - A ZIP file containing application binaries and other files and directories needed to run the domain.
Copy file name to clipboardExpand all lines: documentation/4.1/content/samples/domains/model-in-image/update3.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,9 +59,8 @@ Here are the steps for this use case:
59
59
```shell
60
60
$ cd /tmp/sample/wdt-artifacts/archives/archive-v2
61
61
```
62
-
```
63
-
# Using the [WDT archive helper tool](#https://oracle.github.io/weblogic-deploy-tooling/userguide/tools/archive_helper/), create the archive in the location that we will use later when we run the WebLogic Image Tool.
64
-
```
62
+
Using the [WDT archive helper tool](https://oracle.github.io/weblogic-deploy-tooling/userguide/tools/archive_helper/), create the archive in the location that we will use later when we run the WebLogic Image Tool.
0 commit comments