Skip to content

Commit bc842a7

Browse files
first pass review and edit
1 parent 93ae263 commit bc842a7

File tree

4 files changed

+64
-64
lines changed

4 files changed

+64
-64
lines changed

README.md

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,52 @@
1-
# Oracle WebLogic ImageBuilder Tool
1+
# Oracle WebLogic Image Builder Tool
22

33
Containerization is taking over the software world. In this modern age of software development, Docker and Kubernetes
4-
have become the gold standard. To help customers stay at the forefront of this, Oracle released the
4+
have become the gold standard. To help customers stay at the forefront of this, Oracle has released the
55
[WebLogic Server Kubernetes Operator](https://github.com/oracle/weblogic-kubernetes-operator). The operator helps
6-
customers move their workloads to the cloud via the kubernetes (cloud neutral) route. It was left to the customers how
7-
to create the docker images and apply patches to these images deployed by the kubernetes operator. To help customers
8-
with this effort, We created the [WebLogic ImageBuilder Tool](https://github.com/oracle/weblogic-imagebuilder-tool).
6+
customers move their workloads to the cloud via the Kubernetes (cloud neutral) route. Customers get to decide how
7+
to create the Docker images and apply patches to these images deployed by the Kubernetes operator. To help them
8+
with this effort, we have created the [WebLogic Image Builder Tool](https://github.com/oracle/weblogic-imagebuilder-tool).
99

1010
## Table of Contents
1111

1212
- [Features](#features-of-the-imagebuilder-tool)
13+
- [Prerequisites](#prerequisites)
14+
- [Setup](#setup)
1315
- [Create Image](site/create-image.md)
1416
- [Update Image](site/update-image.md)
1517
- [Cache](site/cache.md)
1618

17-
## Features of the Oracle WebLogic ImageBuilder Tool
19+
## Features of the Oracle WebLogic Image Builder Tool
1820

19-
The tool can create a WebLogic docker image from any base image (ex: oraclelinux, ubuntu), install a given version of
20-
WebLogic (ex: 12.2.1.3.0), install a given jdk (ex: 8u202), apply selected patches and create a domain with a given
21-
version of [WDT](https://github.com/oracle/weblogic-deploy-tooling). The tool can also update a docker image either
22-
created using this tool or a docker image built by the user (should have an ORACLE_HOME env variable defined) by
23-
applying selected patches.
21+
The Image Builder Tool can create a WebLogic Docker image from any base image (for example, Oracle Linux, Ubuntu), install a given version of
22+
WebLogic (for example, 12.2.1.3.0), install a given JDK (for example, 8u202), apply selected patches, and create a domain with a given
23+
version of [WDT](https://github.com/oracle/weblogic-deploy-tooling). The tool can also update a Docker image either
24+
created using this tool or a Docker image built by the user (you should have an `ORACLE_HOME` `env` variable defined by
25+
applying selected patches).
2426

2527
## Prerequisites
2628

27-
- Active internet connection
28-
- The tool needs to communicate with Oracle support system.
29-
- Oracle support credentials
30-
- Oracle support credentials are used to validate and download patches.
31-
- WebLogic and JDK installers from OTN / e-delivery
32-
- WebLogic and JDK installers should be available on local disk.
33-
- Docker client and daemon on the build machine
34-
- Experimental features should be turned on to support docker build --squash option. Refer to [Docker squash](https://docs.docker.com/engine/reference/commandline/build/#squash-an-images-layers---squash-experimental)
29+
- Active Internet connection. The tool needs to communicate with Oracle support system.
30+
- Oracle support credentials. These are used to validate and download patches.
31+
- WebLogic and JDK installers from OTN / e-delivery. These should be available on local disk.
32+
- Docker client and daemon on the build machine. Experimental features should be turned on to support the `docker build --squash` option. Refer to [Docker squash](https://docs.docker.com/engine/reference/commandline/build/#squash-an-images-layers---squash-experimental)
3533

3634
## Setup
3735

38-
- Build the project (`mvn clean package`) to generate artifacts imagebuilder-0.1-SNAPSHOT.jar and imagebuilder_completion.sh
39-
- The jar is an uber-jar containing all the required packages to run the tool.
40-
- If running an os with bash, Use the below commands to setup the tool with tab complete feature.
36+
- Build the project (`mvn clean package`) to generate artifacts `imagebuilder-0.1-SNAPSHOT.jar` and `imagebuilder_completion.sh`.
37+
- The JAR is an uber-JAR containing all the required packages to run the tool.
38+
- If running an OS with bash, then use the commands below to set up the tool with the tab complete feature:
4139
```bash
4240
#!/usr/bin/env bash
4341
unalias imagebuilder 2> /dev/null
4442
alias imagebuilder='java -cp "./imagebuilder-0.1-SNAPSHOT.jar" com.oracle.weblogicx.imagebuilder.cli.CLIDriver'
4543
source ./imagebuilder_completion.sh
4644
```
47-
- On Windows, setup imagebuilder.cmd or imagebuilder.bat script
45+
- On Windows, set up with `imagebuilder.cmd` or the `imagebuilder.bat` script:
4846
```cmd
4947
@ECHO OFF
5048
java -cp "./imagebuilder-0.1-SNAPSHOT.jar" com.oracle.weblogicx.imagebuilder.cli.CLIDriver %*
5149
```
52-
- Then, execute "imagebuilder help" to get the help screen
53-
- The jar can be executed directly using command java -cp "./imagebuilder-0.1-SNAPSHOT.jar" com.oracle.weblogicx.imagebuilder.cli.CLIDriver help
54-
- Once familiar with the commands, you should be able to create and update WebLogic docker images
50+
- Then, execute `imagebuilder help` to get the help screen.
51+
- You can execute the JAR directly using the command `java -cp "./imagebuilder-0.1-SNAPSHOT.jar" com.oracle.weblogicx.imagebuilder.cli.CLIDriver help`.
52+
- After you are familiar with the commands, you will be able to create and update WebLogic Docker images.

site/cache.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Cache
22

3-
The cache command is used to add / edit the required metadata for the tool. Cache helps the tool to identify where the
4-
required installers (wls, fmw, jdk) are located and where to download the patches to. There are several subcommands to
5-
aid the user.
3+
Use the `cache` command to add or edit the required metadata for the tool. Cache helps the tool to identify where the
4+
required installers (WLS, FMW, JDK) are located and where to download the patches. There are several subcommands:
65

76
```
87
Usage: imagebuilder cache [COMMAND]
@@ -22,7 +21,7 @@ Commands:
2221

2322
## Usage scenarios
2423

25-
- listItems: Display the contents of cache. Displays key value pairs of the installers, patches.
24+
- `listItems`: Display the contents of the cache. Displays key value pairs of the installers and patches.
2625
```
2726
imagebuilder cache listItems
2827
@@ -34,28 +33,28 @@ Commands:
3433
cache.dir=/Users/xyz/Downloads/cache
3534
```
3635
37-
- addInstaller: Add installer to cache, ex: jdk
36+
- `addInstaller`: Add an installer to the cache, for example, JDK.
3837
```
3938
imagebuilder cache addInstaller --type jdk --version 8u202 --path /path/to/local/jdk.tar.gz
4039
```
4140
42-
- addPatch: Add patch to cache. This command verifies if the path points to a valid patch by querying Oracle support portal
41+
- `addPatch`: Add a patch to the cache. This command verifies if the path points to a valid patch by querying the Oracle support portal.
4342
```
4443
imagebuilder cache addPatch --type wls --version 12.2.1.3.0 --user [email protected] --passwordEnv MYVAR --patchId 12345678 --path /path/to/patch.zip
4544
```
4645
47-
- getCacheDir and setCacheDir: Get/Set cache directory. Used to display or set the directory where patches will be downloaded to by the tool.
46+
- `getCacheDir` and `setCacheDir`: Get or set the cache directory. Used to display or set the directory where patches will be downloaded.
4847
```
4948
imagebuilder cache getCacheDir
5049
imagebuilder cache setCacheDir /path/to/dir
5150
```
52-
53-
- addEntry: Consider this as an expert mode where you can add key value pairs to cache without any validation.
51+
52+
- `addEntry`: Consider this an expert mode where you can add key value pairs to the cache without any validation.
5453
```
5554
imagebuilder cache addEntry --key xyz_123 --value /path/to/file
5655
```
5756
58-
- deleteEntry: Delete a entry from cache for a given key. _Note: This command does not delete files from disk._
57+
- `deleteEntry`: Delete an entry from the cache for a given key. **Note**: This command does not delete files from the disk.
5958
```
6059
imagebuilder cache deleteEntry --key xyz_123
61-
```
60+
```

site/create-image.md

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Create Image
22

3-
The create command helps build a WebLogic docker image from a given base os image. The required options for the command
4-
are marked with asterisk (*). Password can be provided in one of the three ways.
5-
1) Plain Text
6-
2) Environment Variable
7-
3) File containing the password
3+
The `create` command helps build a WebLogic Docker image from a given base OS image. The required options for the command
4+
are marked with an asterisk (*). You can provide the password in one of the three ways:
5+
6+
* Plain text
7+
* Environment variable
8+
* File containing the password
89

910
```
1011
Usage: imagebuilder create [OPTIONS]
@@ -49,32 +50,34 @@ Build WebLogic docker image
4950

5051
## Usage scenarios
5152

52-
**_Note: Use --passwordEnv or --passwordFile instead of --password_**
53+
**Note**: Use `--passwordEnv` or `--passwordFile` instead of `--password`.
5354

54-
The commands below assume that all the required jdk, wls or fmw (WebLogic infrastructure installer) have been downloaded
55-
to the cache dir. Use the [cache](cache.md) command to set it up.
55+
The commands below assume that all the required JDK, WLS or FMW (WebLogic infrastructure installers) have been downloaded
56+
to the cache directory. Use the [cache](cache.md) command to set it up.
5657

57-
- Create an image named sample:wls with WebLogic installer 12.2.1.3.0, server jdk 8u202, latest psu applied.
58+
- Create an image named `sample:wls` with the WebLogic installer 12.2.1.3.0, server JDK 8u202, and latest PSU applied.
5859
```
5960
imagebuilder create --tag sample:wls --latestPSU --user [email protected] --password hello
6061
```
6162
62-
- Create an image named sample:wdt with same options as above and create a domain with [WebLogic Deploy Tooling](https://github.com/oracle/weblogic-deploy-tooling)
63+
- Create an image named `sample:wdt` with the same options as above and create a domain with [WebLogic Deploy Tooling](https://github.com/oracle/weblogic-deploy-tooling).
6364
```
6465
imagebuilder create --tag sample:wdt --latestPSU --user [email protected] --password hello --wdtModel /path/to/model.json --wdtVariables /path/to/variables.json --wdtVersion 0.16
6566
```
66-
If wdtVersion is not provided, the tool uses the latest release.
67+
If `wdtVersion` is not provided, the tool uses the latest release.
6768
68-
- Create an image name sample:patch with selected patches applied.
69+
- Create an image named `sample:patch` with the selected patches applied.
6970
```
7071
imagebuilder create --tag sample:patch --user [email protected] --password hello --patches 12345678,p87654321
7172
```
72-
The patch numbers may or may not start with 'p'.
73-
73+
The patch numbers may or may not start with '`p`'.
74+
7475
## Errors
7576
76-
- CachePolicy prohibits download. Please add cache entry for key: jdk_8u202
77-
- This implies that the tool could not find the jdk installer in its cache. Use the [cache](cache.md) command to fix it.
77+
- `CachePolicy prohibits download. Please add cache entry for key: jdk_8u202`
78+
79+
- This implies that the tool could not find the JDK installer in its cache.
80+
- Use the [cache](cache.md) command to fix it:
7881
```
7982
imagebuilder cache addInstaller --type jdk --version 8u202 --path /local/path/to/jdk.gz
80-
```
83+
```

site/update-image.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Update Image
22

3-
The update command is used to apply patches to an existing WebLogic docker image. The required options for the command
4-
are marked with asterisk (*). Password can be provided in one of the three ways.
5-
6-
1) Plain Text
7-
2) Environment Variable
8-
3) File containing the password
3+
Use the `update` command to apply patches to an existing WebLogic Docker image. The required options for the command
4+
are marked with asterisk (*). The password can be provided in one of the three ways:
5+
6+
* Plain text
7+
* Environment variable
8+
* File containing the password
99

1010
```
1111
Usage: imagebuilder update [OPTIONS]
@@ -36,15 +36,15 @@ Update WebLogic docker image with selected patches
3636

3737
## Usage scenarios
3838

39-
**_Note: Use --passwordEnv or --passwordFile instead of --password_**
39+
**Note**: Use `--passwordEnv` or `--passwordFile` instead of `--password`.
4040

41-
- Update an image named sample:1.0 by applying the latest psu and tag it as sample:1.1.
41+
- Update an image named `sample:1.0` by applying the latest PSU and tag it as `sample:1.1`:
4242
```
4343
imagebuilder update --fromImage sample:1.0 --tag sample:1.1 --latestPSU --user [email protected] --passwordEnv MYVAR
4444
```
4545
46-
- Update an image named sample:1.0 with selected patches applied.
46+
- Update an image named `sample:1.0` with the selected patches applied.
4747
```
4848
imagebuilder update --fromImage sample:1.0 --tag sample:1.1 --user [email protected] --password hello --patches 12345678,p87654321
4949
```
50-
The patch numbers may or may not start with 'p'.
50+
The patch numbers may or may not start with '`p`'.

0 commit comments

Comments
 (0)