Skip to content

Commit 7c4f5b0

Browse files
authored
incorporated feedback for imagetool documentation (#35)
Incorporated feedback for imagetool documentation
1 parent 405f811 commit 7c4f5b0

File tree

159 files changed

+70439
-76
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+70439
-76
lines changed

docs-source/content/soa-domains/create-or-update-image/_index.md

Lines changed: 51 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ Creating an Oracle SOA Suite Docker image using the WebLogic Image Tool requires
111111
$ cd imagetool-setup/docker-images/OracleSOASuite/imagetool/12.2.1.4.0
112112
$ cp -rf ${WORKDIR}/weblogic-kubernetes-operator/kubernetes/samples/scripts/imagetool-scripts/* .
113113
```
114-
114+
>Note: If you want to create the image continue with the following steps, otherwise to update the image see [update an image](#update-an-image).
115+
115116
#### Create an image
116117

117118
After [setting up the WebLogic Image Tool]({{< relref "/soa-domains/create-or-update-image/#set-up-the-weblogic-image-tool" >}}) and required build scripts, follow these steps to use the WebLogic Image Tool to `create` a new Oracle SOA Suite Docker image.
@@ -120,7 +121,7 @@ After [setting up the WebLogic Image Tool]({{< relref "/soa-domains/create-or-up
120121

121122
You must download the required Oracle SOA Suite installation binaries and patches as listed below from the [Oracle Software Delivery Cloud](https://edelivery.oracle.com/) and save them in a directory of your choice. In these steps, this directory is `download location`.
122123

123-
{{%expand "Click here to see the list of installation binaries and patches required for 20.4.2 release:" %}}
124+
Following is the list of installation binaries and patches required for 20.4.2 release:
124125

125126
* JDK:
126127
* jdk-8u271-linux-x64.tar.gz
@@ -133,7 +134,7 @@ You must download the required Oracle SOA Suite installation binaries and patche
133134
* fmw_12.2.1.4.0_osb.jar
134135

135136
* Fusion MiddleWare Infrastructure patches:
136-
* p28186730_139424_Generic.zip (Opatch)
137+
* p28186730_139424_Generic.zip (OPatch)
137138
* p31960985_122140_Generic.zip (WLS PATCH SET UPDATE 12.2.1.4.201001)
138139
* p32097167_12214201001_Generic.zip (WLS OVERLAY PATCH)
139140
* p31544353_122140_Linux-x86-64.zip (ADR FOR WEBLOGIC SERVER 12.2.1.4.0 JULY CPU 2020)
@@ -152,8 +153,6 @@ You must download the required Oracle SOA Suite installation binaries and patche
152153
* p31534880_122140_Generic.zip (One-off SOA)
153154
* p31857456_122140_Generic.zip (One-off OSB)
154155

155-
{{% /expand %}}
156-
157156

158157
##### Update required build files
159158

@@ -162,7 +161,7 @@ The following files available in the code repository location `<imagetool-setup-
162161
* `additionalBuildCmds.txt`
163162
* `buildArgs`
164163

165-
1. In the `buildArgs` file, update all the occurrences of `%DOCKER_REPO%` with the `docker-images` repository location, which is the complete path of `imagetool-setup/docker-images`.
164+
1. In the `buildArgs` file, update all the occurrences of `%DOCKER_REPO%` with the `docker-images` repository location, which is the complete path of `<imagetool-setup-location>/docker-images`.
166165

167166
For example, update:
168167

@@ -195,12 +194,23 @@ The following files available in the code repository location `<imagetool-setup-
195194
$ imagetool cache addInstaller --type osb --version 12.2.1.4.0 --path <download location>/fmw_12.2.1.4.0_osb.jar
196195
197196
```
198-
1. Add the downloaded patches to the WebLogic Image Tool cache:
197+
1. Add the downloaded OPatch patch to the WebLogic Image Tool cache:
199198

200-
{{%expand "Click here to see the commands to add patches in to the cache:" %}}
201199
``` bash
202200
$ imagetool cache addEntry --key 28186730_13.9.4.2.4 --value <download location>/p28186730_139424_Generic.zip
201+
```
202+
203+
1. Append the `--opatchBugNumber` flag and the OPatch patch key, to the create command in `buildArgs` file:
204+
205+
``` bash
206+
--opatchBugNumber 28186730_13.9.4.2.4
207+
```
208+
209+
1. Add the downloaded product patches to the WebLogic Image Tool cache:
210+
211+
Following are the commands to add product patches in to the cache:
203212

213+
``` bash
204214
$ imagetool cache addEntry --key 31960985_12.2.1.4.0 --value <download location>/p31960985_122140_Generic.zip
205215
206216
$ imagetool cache addEntry --key 32097167_12.2.1.4.0 --value <download location>/p32097167_12214201001_Generic.zip
@@ -231,18 +241,14 @@ The following files available in the code repository location `<imagetool-setup-
231241
232242
$ imagetool cache addEntry --key 31857456_12.2.1.4.0 --value <download location>/p31857456_122140_Generic.zip
233243
```
234-
{{% /expand %}}
235-
236-
1. Update the patches list to `buildArgs`.
237-
238-
To the `create` command in the `buildArgs` file, append the Oracle SOA Suite and Oracle Service Bus patches list using the `--patches` flag and Opatch patch using the `--opatchBugNumber` flag. Sample options for the list of patches above are:
239244

240-
```
241-
--patches 31960985_12.2.1.4.0,32097167_12.2.1.4.0,31544353_12.2.1.4.0,31762739_12.2.1.4.0,31666198_12.2.1.4.0,31806259_12.2.1.4.0,31903409_12.2.1.4.0,31700519_12.2.1.4.0,31918617_12.2.1.4.0,31869446_12.2.1.4.0,31734213_12.2.1.4.0,31287540_12.2.1.4.0,31628564_12.2.1.4.0,31534880_12.2.1.4.0,31857456_12.2.1.4.0
242-
--opatchBugNumber=28186730_13.9.4.2.4
243-
```
245+
1. Append the `--patches` flag and the product patch keys, to the create command in `buildArgs` file. The `--patches` list must be a comma seperated collection of patch `--key` values used in the above `imagetool cache addEntry` commands. Sample `--patches` list for the product patches added in to the cache:
244246

245-
Example `buildArgs` file after appending product's list of patches and Opatch patch:
247+
```
248+
--patches 31960985_12.2.1.4.0,32097167_12.2.1.4.0,31544353_12.2.1.4.0,31762739_12.2.1.4.0,31666198_12.2.1.4.0,31806259_12.2.1.4.0,31903409_12.2.1.4.0,31700519_12.2.1.4.0,31918617_12.2.1.4.0,31869446_12.2.1.4.0,31734213_12.2.1.4.0,31287540_12.2.1.4.0,31628564_12.2.1.4.0,31534880_12.2.1.4.0,31857456_12.2.1.4.0
249+
```
250+
251+
Example `buildArgs` file after appending the OPatch patch and product patches:
246252

247253
```
248254
create
@@ -254,17 +260,22 @@ The following files available in the code repository location `<imagetool-setup-
254260
--additionalBuildCommands <imagetool-setup-location>/docker-images/OracleSOASuite/imagetool/12.2.1.4.0/additionalBuildCmds.txt
255261
--additionalBuildFiles <imagetool-setup-location>/docker-images/OracleSOASuite/dockerfiles/12.2.1.4/container-scripts
256262
--installerResponseFile <imagetool-setup-location>/docker-images/OracleFMWInfrastructure/dockerfiles/12.2.1.4/install.file,<imagetool-setup-location>/docker-images/OracleSOASuite/dockerfiles/12.2.1.4/install/soasuite.response,<imagetool-setup-location>/docker-images/OracleSOASuite/dockerfiles/12.2.1.4/install/osb.response
263+
--opatchBugNumber 28186730_13.9.4.2.4
257264
--patches 31960985_12.2.1.4.0,32097167_12.2.1.4.0,31544353_12.2.1.4.0,31762739_12.2.1.4.0,31666198_12.2.1.4.0,31806259_12.2.1.4.0,31903409_12.2.1.4.0,31700519_12.2.1.4.0,31918617_12.2.1.4.0,31869446_12.2.1.4.0,31734213_12.2.1.4.0,31287540_12.2.1.4.0,31628564_12.2.1.4.0,31534880_12.2.1.4.0,31857456_12.2.1.4.0
258-
--opatchBugNumber=28186730_13.9.4.2.4
259265
```
266+
>Note: In `buildArgs` file:
267+
> * `--jdkVersion` value must match the `--version` value used in the `imagetool cache addInstaller` command for `--type` jdk.
268+
> * `--version` value must match the `--version` value used in the `imagetool cache addInstaller` command for `--type` soa.
269+
> * `--pull` always pulls the latest base Linux image `oraclelinux:7-slim` from Docker registry. This flag can be removed, if you want to use the Linux image `oraclelinux:7-slim` which is already available on the host where the SOA image is being created.
260270

261-
Refer to [this page](https://github.com/oracle/weblogic-image-tool/blob/master/site/create-image.md) for the complete list of options available with the WebLogic Image Tool `create` command.
271+
Refer to [this page](https://github.com/oracle/weblogic-image-tool/blob/master/site/create-image.md) for the complete list of options available with the WebLogic Image Tool `create` command.
262272

263273
1. Enter the following command to create the Oracle SOA Suite image:
264274

265275
```bash
266-
$ imagetool @<absolute path to `buildargs` file>"
276+
$ imagetool @<absolute path to buildargs file>
267277
```
278+
>Note: Make sure that the absolute path to `buildargs` file is prepended with a `@` character as shown in the command above.
268279

269280
For example:
270281

@@ -274,7 +285,7 @@ The following files available in the code repository location `<imagetool-setup-
274285

275286
{{%expand "Click here to see the sample Dockerfile generated with the imagetool command." %}}
276287

277-
```bash
288+
278289
########## BEGIN DOCKERFILE ##########
279290
#
280291
# Copyright (c) 2019, 2020, Oracle and/or its affiliates.
@@ -417,25 +428,28 @@ The following files available in the code repository location `<imagetool-setup-
417428
CMD ["/u01/oracle/container-scripts/createDomainAndStart.sh"]
418429

419430
########## END DOCKERFILE ##########
420-
```
431+
421432
{{% /expand %}}
422433

423434
1. Check the created image using the `docker images` command:
424435

425436
```bash
426-
$ docker images | grep soa
437+
$ docker images | grep soasuite
427438
```
428439

429440
#### Update an image
430441

431442
After [setting up the WebLogic Image Tool]({{< relref "/soa-domains/create-or-update-image/#set-up-the-weblogic-image-tool" >}}) and required build scripts, use the WebLogic Image Tool to `update` an existing Oracle SOA Suite Docker image:
432443

433-
1. Enter the following command for each patch to add the required patch(es) to the WebLogic Image Tool cache:
444+
1. Enter the following command to add the OPatch patch to the WebLogic Image Tool cache:
445+
446+
```bash
447+
$ imagetool cache addEntry --key 28186730_13.9.4.2.4 --value <downloaded-patches-location>/p28186730_139424_Generic.zip
448+
```
449+
1. Execute the `imagetool cache addEntry` command for each patch to add the required patch(es) to the WebLogic Image Tool cache. For example, to add patch `p30761841_122140_Generic.zip`:
434450

435451
```bash wrap
436-
$ cd <imagetool-setup>
437452
$ imagetool cache addEntry --key=30761841_12.2.1.4.0 --value <downloaded-patches-location>/p30761841_122140_Generic.zip
438-
[INFO ] Added entry 30761841_12.2.1.4.0=<downloaded-patches-location>/p30761841_122140_Generic.zip
439453
```
440454
1. Provide the following arguments to the WebLogic Image Tool `update` command:
441455

@@ -449,10 +463,10 @@ After [setting up the WebLogic Image Tool]({{< relref "/soa-domains/create-or-up
449463

450464
##### Examples
451465

452-
{{%expand "Click here to see the example `update` command:" %}}
466+
{{%expand "Click here to see the example 'update' command:" %}}
453467

454-
```
455-
$ imagetool update --fromImage soasuite:12.2.1.4 --tag=soasuite:12.2.1.4-30761841 --patches=30761841_12.2.1.4.0
468+
469+
$ imagetool update --fromImage soasuite:12.2.1.4 --tag=soasuite:12.2.1.4-30761841 --patches=30761841_12.2.1.4.0
456470

457471
[INFO ] Image Tool build ID: bd21dc73-b775-4186-ae03-8219bf02113e
458472
[INFO ] Temporary directory used for docker build context: <work-directory>/wlstmp/wlsimgbuilder_temp1117031733123594064
@@ -563,15 +577,13 @@ After [setting up the WebLogic Image Tool]({{< relref "/soa-domains/create-or-up
563577
Successfully built 2ef2a67a685b
564578
Successfully tagged soasuite:12.2.1.4-30761841
565579
[INFO ] Build successful. Build time=112s. Image tag=soasuite:12.2.1.4-30761841
566-
```
580+
567581
{{% /expand %}}
568582

569583

570-
{{%expand "Click here to see the example Dockerfile generated by the WebLogic Image Tool with the `–-dryRun` option:" %}}
571-
572-
573-
```bash wrap
574-
$ imagetool update --fromImage soasuite:12.2.1.4 --tag=soasuite:12.2.1.4-30761841 --patches=30761841_12.2.1.4.0 --dryRun
584+
{{%expand "Click here to see the example Dockerfile generated by the WebLogic Image Tool with the '--dryRun' option:" %}}
585+
586+
$ imagetool update --fromImage soasuite:12.2.1.4 --tag=soasuite:12.2.1.4-30761841 --patches=30761841_12.2.1.4.0 --dryRun
575587

576588
[INFO ] Image Tool build ID: f9feea35-c52c-4974-b155-eb7f34d95892
577589
[INFO ] Temporary directory used for docker build context: <work-directory>/wlstmp/wlsimgbuilder_temp1799120592903014749
@@ -609,15 +621,16 @@ After [setting up the WebLogic Image Tool]({{< relref "/soa-domains/create-or-up
609621

610622

611623
########## END DOCKERFILE ##########
612-
```
624+
613625
{{% /expand %}}
614626

615627

616628
1. Check the built image using the `docker images` command:
617629
```bash
618-
$ docker images | grep soa
630+
$ docker images | grep soasuite
619631
soasuite 12.2.1.4-30761841
620632
2ef2a67a685b About a minute ago 4.84GB
633+
$
621634
```
622635

623636
### Create an Oracle SOA Suite Docker image using Dockerfile

docs/20.4.2/404.html

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<!DOCTYPE html>
2+
<html lang="en" class="js csstransforms3d">
3+
4+
<head>
5+
<meta charset="utf-8"> <meta name="description" content="">
6+
7+
<link rel="icon" href="/fmw-kubernetes/20.4.2/images/favicon.png" type="image/png">
8+
9+
<title>404 Page not found</title>
10+
11+
12+
<link href="/fmw-kubernetes/20.4.2/css/nucleus.css?1607682397" rel="stylesheet">
13+
<link href="/fmw-kubernetes/20.4.2/css/fontawesome-all.min.css?1607682397" rel="stylesheet">
14+
<link href="/fmw-kubernetes/20.4.2/css/hybrid.css?1607682397" rel="stylesheet">
15+
<link href="/fmw-kubernetes/20.4.2/css/featherlight.min.css?1607682397" rel="stylesheet">
16+
<link href="/fmw-kubernetes/20.4.2/css/perfect-scrollbar.min.css?1607682397" rel="stylesheet">
17+
<link href="/fmw-kubernetes/20.4.2/css/theme.css?1607682397" rel="stylesheet">
18+
<link href="/fmw-kubernetes/20.4.2/css/hugo-theme.css?1607682397" rel="stylesheet">
19+
20+
<style>
21+
:root #header + #content > #left > #rlblock_left {
22+
display: none !important;
23+
}
24+
25+
p,
26+
li,
27+
ul {
28+
text-align: center
29+
}
30+
31+
ul {
32+
list-style-type: none;
33+
}
34+
</style>
35+
36+
</head>
37+
38+
<body class="" data-url="/">
39+
40+
<section id="body" style="margin-left:0px;">
41+
<div id="overlay"></div>
42+
<div id="chapter">
43+
<div id="body-inner">
44+
<h1>Error</h1>
45+
<p>
46+
</p>
47+
<p>Woops. Looks like this page doesn&#39;t exist ¯\_(ツ)_/¯.</p>
48+
<p></p>
49+
<p><a href='/fmw-kubernetes/20.4.2/'>Go to homepage</a></p>
50+
<p><img src='/fmw-kubernetes/20.4.2/images/gopher-404.jpg' style="width:50%" alt="Page not found!"></p>
51+
</div>
52+
</div>
53+
54+
</section>
55+
</body>
56+
57+
</html>

0 commit comments

Comments
 (0)