|
1 |
| -# Oracle WebLogic ImageBuilder Tool |
| 1 | +# Oracle WebLogic Image Builder Tool |
2 | 2 |
|
3 | 3 | 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 |
5 | 5 | [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). |
9 | 9 |
|
10 | 10 | ## Table of Contents
|
11 | 11 |
|
12 | 12 | - [Features](#features-of-the-imagebuilder-tool)
|
| 13 | +- [Prerequisites](#prerequisites) |
| 14 | +- [Setup](#setup) |
13 | 15 | - [Create Image](site/create-image.md)
|
14 | 16 | - [Update Image](site/update-image.md)
|
15 | 17 | - [Cache](site/cache.md)
|
16 | 18 |
|
17 |
| -## Features of the Oracle WebLogic ImageBuilder Tool |
| 19 | +## Features of the Oracle WebLogic Image Builder Tool |
18 | 20 |
|
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). |
24 | 26 |
|
25 | 27 | ## Prerequisites
|
26 | 28 |
|
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) |
35 | 33 |
|
36 | 34 | ## Setup
|
37 | 35 |
|
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: |
41 | 39 | ```bash
|
42 | 40 | #!/usr/bin/env bash
|
43 | 41 | unalias imagebuilder 2> /dev/null
|
44 | 42 | alias imagebuilder='java -cp "./imagebuilder-0.1-SNAPSHOT.jar" com.oracle.weblogicx.imagebuilder.cli.CLIDriver'
|
45 | 43 | source ./imagebuilder_completion.sh
|
46 | 44 | ```
|
47 |
| -- On Windows, setup imagebuilder.cmd or imagebuilder.bat script |
| 45 | +- On Windows, set up with `imagebuilder.cmd` or the `imagebuilder.bat` script: |
48 | 46 | ```cmd
|
49 | 47 | @ECHO OFF
|
50 | 48 | java -cp "./imagebuilder-0.1-SNAPSHOT.jar" com.oracle.weblogicx.imagebuilder.cli.CLIDriver %*
|
51 | 49 | ```
|
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. |
0 commit comments