|
1 | 1 | **TODO** write me
|
2 | 2 |
|
3 | 3 |
|
4 |
| -## Creating or obtaining WebLogic Docker images |
| 4 | +# Creating or obtaining WebLogic Docker images |
5 | 5 |
|
6 |
| -**TODO** write me |
| 6 | +You will need Docker images to run your WebLogic domains in Kubernetes. |
| 7 | +There are two main options available: |
7 | 8 |
|
8 |
| -### Obtaining standard images from the Docker store |
| 9 | +* Use a Docker image which contains the WebLogic Server binaries but |
| 10 | + not the domain, or |
| 11 | +* Use a Docker image which contains both the WebLogic Server binaries |
| 12 | + and the domain directory. |
| 13 | + |
| 14 | +If you want to use the first option, you will need to obtain the standard |
| 15 | +WebLogic Server image from the Docker Store [see here](#obtaining-standard-images-from-the-docker-store) |
| 16 | +and then create a new image with the mandatory patches applied as described in [this section](#creating-a-custom-images-with-patches-applied). |
| 17 | +If you want to use additional patches, you can customize that process to include additional patches. |
9 | 18 |
|
10 |
| -**TODO** write me |
| 19 | +If you want to use the second option, which includes the domain directory |
| 20 | +inside the Docker image, then you will need to build your own Docker images |
| 21 | +as described in [this section](#creating-a-custom-image-with-your-domain-inside-the-image). |
11 | 22 |
|
12 |
| -### Creating a custom images with patches applied |
13 | 23 |
|
14 |
| -**TODO** write me |
| 24 | +## Obtaining standard images from the Docker store |
| 25 | + |
| 26 | +Oracle provides a [WebLogic Server 12.2.1.3.0 Docker image](https://store.docker.com/_/oracle-weblogic-server-12c) in the |
| 27 | +[Docker Store](https://store.docker.com). To obtain that image, you |
| 28 | +must have a Docker Store account, log on to the Docker Store, navigate |
| 29 | +to that image and click on the "Proceed to Checkout" button which will |
| 30 | +prompt you to read and accept the license agreement for the image. |
| 31 | +Once you have accepted the license agreement, you will be abel to |
| 32 | +pull the image using your Docker store credentials. |
| 33 | + |
| 34 | +First, you will need to login to the Docker Store: |
| 35 | + |
| 36 | +``` |
| 37 | +docker login |
| 38 | +``` |
| 39 | + |
| 40 | +Then, you can pull the image with this command: |
| 41 | + |
| 42 | +``` |
| 43 | +docker pull store/oracle/weblogic:12.2.1.3 |
| 44 | +``` |
| 45 | + |
| 46 | +Additional information about using this image is available on the |
| 47 | +Docker Store. |
| 48 | + |
| 49 | +## Creating a custom images with patches applied |
| 50 | + |
| 51 | +The Oracle WebLogic Server Kubernetes Operator requires patch 28076014. |
| 52 | +This patch does have some prerequisites that will also need to be applied. |
| 53 | + |
| 54 | +[This sample](https://github.com/oracle/docker-images/blob/master/OracleWebLogic/samples/12213-patch-wls-for-k8s/README.md) in |
| 55 | +the Oracle GitHub Docker images repository demonstrates how to create |
| 56 | +a patched image. |
| 57 | + |
| 58 | +The `Dockerfile` in that sample lists the base image as follows: |
| 59 | + |
| 60 | +``` |
| 61 | +FROM oracle/weblogic:12.2.1.3-developer |
| 62 | +``` |
| 63 | + |
| 64 | +You can change this to use the standard WebLogic Server image you |
| 65 | +downloaded from the Docker Store by updating the `FROM` statement |
| 66 | +as follows: |
| 67 | + |
| 68 | +``` |
| 69 | +FROM store/oracle/weblogic:12.2.1.3 |
| 70 | +``` |
| 71 | + |
| 72 | +After running the `docker build` as described in the sample, you |
| 73 | +will have created a Docker image with the necessary patches to |
| 74 | +run WebLogic 12.2.1.3 in Kubernetes using the operator. |
15 | 75 |
|
16 |
| -### Creating a custom image with your domain inside the image |
| 76 | +## Creating a custom image with your domain inside the image |
17 | 77 |
|
18 | 78 | **TODO** write me
|
19 | 79 |
|
0 commit comments