Skip to content

Commit c77b25a

Browse files
authored
documentation for --target (#318)
* [skip-ci] documentation for --target * [skip-ci] code font for target table values
1 parent 87609ea commit c77b25a

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

documentation/1.9/content/userguide/tools/create-image.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Usage: imagetool create [OPTIONS]
4141
| `--resourceTemplates` | One or more files containing placeholders that need to be resolved by the Image Tool. See [Resource Template Files](#resource-template-files). | |
4242
| `--strictPatchOrdering` | Instruct OPatch to apply patches one at a time (uses `apply` instead of `napply`). | |
4343
| `--tag` | (Required) Tag for the final build image. Example: `store/oracle/weblogic:12.2.1.3.0` | |
44+
| `--target` | Select the target environment in which the created image will be used. Supported values: `Default` (Docker/Kubernetes), `OpenShift` | `Default` |
4445
| `--type` | Installer type. Supported values: `WLS`, `WLSDEV`, `WLSSLIM`, `FMW`, `IDM`, `OSB`, `OUD_WLS`, `SOA_OSB`, `SOA_OSB_B2B`, `MFT`, `WCP`, `OAM`, `OIG`, `OUD`, `OID`, `SOA`, `WCC`, `WCS`, `WCP` | `WLS` |
4546
| `--user` | Oracle support email ID. | |
4647
| `--version` | Installer version. | `12.2.1.3.0` |
@@ -109,6 +110,18 @@ installation or domain creation steps, use the `final-build-commands` section so
109110
final stage of the image build. Or, if the file needs to change the Oracle Home prior to domain creation, use
110111
the `after-fmw-install` or `before-wdt-command` sections.
111112

113+
#### `--target`
114+
115+
By default, the generated WLS domain in your image will use the best practices defined by Oracle WebLogic Server.
116+
The `target` option allows you to toggle the defaults so that the generated domain is easier to use in the target
117+
environment. For example, the `--target OpenShift` option will change the file permissions in the domain directory
118+
so that the group permissions match the user permissions.
119+
120+
| Target | Default File Permissions | Default File Ownership |
121+
| --- | --- | --- |
122+
| `Default` | `rwxr-x---` | `oracle:oracle` |
123+
| `OpenShift` | `rwxrwx---` | `oracle:root` |
124+
112125
#### Resource Template Files
113126

114127
If provided, the file or files provided with `--resourceTemplates` will be overwritten. For known tokens,

documentation/1.9/content/userguide/tools/rebase-image.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Usage: imagetool rebase [OPTIONS]
4343
| `--sourceImage` | (Required) Source Image containing the WebLogic domain. | |
4444
| `--strictPatchOrdering` | Instruct OPatch to apply patches one at a time (uses `apply` instead of `napply`). | |
4545
| `--tag` | (Required) Tag for the final build image. Example: `store/oracle/weblogic:12.2.1.3.0` | |
46+
| `--target` | Select the target environment in which the created image will be used. Supported values: `Default` (Docker/Kubernetes), `OpenShift` | `Default` |
4647
| `--targetImage` | Docker image to extend for the domain's new image. | |
4748
| `--type` | Installer type. Supported values: `WLS`, `WLSDEV`, `WLSSLIM`, `FMW`, `IDM`, `OSB`, `OUD_WLS`, `SOA_OSB`, `SOA_OSB_B2B`, `MFT`, `WCP`, `OAM`, `OIG`, `OUD`, `OID`, `SOA`, `WCC`, `WCS`, `WCP` | `WLS` |
4849
| `--user` | Your Oracle support email ID. | |
@@ -94,6 +95,18 @@ installation or domain creation steps, use the `final-build-commands` section so
9495
final stage of the image build. Or, if the file needs to change the Oracle Home prior to domain creation, use
9596
the `after-fmw-install` or `before-wdt-command` sections.
9697

98+
#### `--target`
99+
100+
By default, the generated WLS domain in your image will use the best practices defined by Oracle WebLogic Server.
101+
The `target` option allows you to toggle the defaults so that the generated domain is easier to use in the target
102+
environment. For example, the `--target OpenShift` option will change the file permissions in the domain directory
103+
so that the group permissions match the user permissions.
104+
105+
| Target | Default File Permissions | Default File Ownership |
106+
| --- | --- | --- |
107+
| `Default` | `rwxr-x---` | `oracle:oracle` |
108+
| `OpenShift` | `rwxrwx---` | `oracle:root` |
109+
97110
#### Use an argument file
98111

99112
You can save all arguments passed for the Image Tool in a file, then use the file as a parameter.

documentation/1.9/content/userguide/tools/update-image.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Update WebLogic Docker image with selected patches
4949
| `--resourceTemplates` | One or more files containing placeholders that need to be resolved by the Image Tool. See [Resource Template Files](#resource-template-files). | |
5050
| `--strictPatchOrdering` | Instruct OPatch to apply patches one at a time (uses `apply` instead of `napply`). | |
5151
| `--tag` | (Required) Tag for the final build image. Example: `store/oracle/weblogic:12.2.1.3.0` | |
52+
| `--target` | Select the target environment in which the created image will be used. Supported values: `Default` (Docker/Kubernetes), `OpenShift` | `Default` |
5253
| `--user` | Oracle support email ID. | |
5354
| `--wdtArchive` | Path to the WDT archive file used by the WDT model. | |
5455
| `--wdtDomainHome` | Path to the `-domain_home` for WDT. | `/u01/domains/base_domain` |
@@ -117,6 +118,18 @@ The `latestPSU` option will continue to be supported for the CREATE option, but
117118
UPDATE option. Because of the number of patches and their size, using `latestPSU` as an update to an existing image can
118119
increase the size of the image significantly, and is not recommended.
119120

121+
#### `--target`
122+
123+
By default, the generated WLS domain in your image will use the best practices defined by Oracle WebLogic Server.
124+
The `target` option allows you to toggle the defaults so that the generated domain is easier to use in the target
125+
environment. For example, the `--target OpenShift` option will change the file permissions in the domain directory
126+
so that the group permissions match the user permissions.
127+
128+
| Target | Default File Permissions | Default File Ownership |
129+
| --- | --- | --- |
130+
| `Default` | `rwxr-x---` | `oracle:oracle` |
131+
| `OpenShift` | `rwxrwx---` | `oracle:root` |
132+
120133
#### Resource Template Files
121134

122135
If provided, the file or files provided with `--resourceTemplates` will be overwritten. For known tokens,

0 commit comments

Comments
 (0)