You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Readme Enhancements and Default script Change (#183)
* Enhancement : OHS Docker Solution with Docker Data Volume
Now user can provide custom Oracle Weblogic Proxy Plugin file containing directives as per their weblogic environments .
This file will need to be placed in docker data volume , which in turn will be mounted during OHS container creation.
In this way, the same OHS docker solution can be used to route applications running on either Weblogic Admin Server or Weblogic cluster or set of individual Managed Servers .
* Changing the default script and README formatting
* readme enhancement #1
* README enhancement and script message enhancement
* Readme enhancement #2
Copy file name to clipboardExpand all lines: OracleHTTPServer/README.md
+16-17
Original file line number
Diff line number
Diff line change
@@ -60,41 +60,40 @@ Verify you now have this image in place with
60
60
$ docker images
61
61
62
62
### How to run container
63
-
1. As prerequisite run the below command to create a docker data volume.
64
63
65
-
Eg:$ docker volume create --name volume
64
+
**Prerequisite** : Create a docker data volume which will contain the Oracle Weblogic Proxy Plugin file
65
+
66
+
Eg:$ docker volume create --name volume
66
67
67
68
_This volume will be created in "/var/lib/docker" directory or the location where "/var/lib/docker" points to._
68
69
69
70
70
-
2. Depending on your weblogic environment , create a **custom_mod_wl_ohs.conf** file by referring to container-scripts/mod_wl_ohs.conf.sample and section 2.4 @ [OHS 12c Documentation](http://docs.oracle.com/middleware/1221/webtier/develop-plugin/oracle.htm#PLGWL553)
71
+
1. Depending on your weblogic environment , create a **custom_mod_wl_ohs.conf** file by referring to container-scripts/mod_wl_ohs.conf.sample and section 2.4 @ [OHS 12c Documentation](http://docs.oracle.com/middleware/1221/webtier/develop-plugin/oracle.htm#PLGWL553)
71
72
72
-
3. Place the custom_mod_wl_ohs.conf file in docker data volume directory . e.g /var/lib/docker/volume
73
+
2. Place the custom_mod_wl_ohs.conf file in docker data volume directory . e.g /var/lib/docker/volume
73
74
74
-
4. To start the OHS Container with above sampleohs:12.2.1 image , run command from docker voume directory
75
+
3. To start the OHS Container with above sampleohs:12.2.1 image , run command from docker voume directory
The **configureWLSProxyPlugin.sh** script will be the first script to be run inside the OHS container .
82
83
This script will perform the following actions:
83
-
- Start the Node Manager and OHS server
84
84
- Fetch the custom_mod_wl_ohs.conf file from mounted shared data volume
85
85
- Place the custom_mod_wl_ohs.conf file under OHS INSTANCE home
86
-
- Restart OHS server
87
-
88
-
_NOTE: If custom_mod_wl_ohs.conf is not provided or not found under mounted shared data volume, then configureWLSProxyPlugin.sh will still start OHS server which will be accessible @ http://localhost:7777/index.html._
89
-
90
-
_Later you can login to running container and configure Weblogic Server proxy plugin file and run restartOHS script._
86
+
- Start Node manager and OHS server
91
87
92
-
93
-
5. Sanity URLs check for OHS server
88
+
4. Sanity URLs check for OHS server
94
89
- Now you can access the OHS index page @ http://localhost:7777/index.html
95
90
- Static html page @ URL http://localhost:7777/helloWorld.html
96
91
97
-
6. All applications should now be routed via the OHS port 7777.
92
+
5. All applications should now be routed via the OHS port 7777.
93
+
94
+
######NOTE: If custom_mod_wl_ohs.conf is not provided or not found under mounted shared data volume, then configureWLSProxyPlugin.sh will still start OHS server which will be accessible @ http://localhost:7777/index.html.
95
+
96
+
######Later you can login to running container and configure Weblogic Server proxy plugin file and run *restartOHS.sh* script.
Copy file name to clipboardExpand all lines: OracleHTTPServer/samples/1221-ohs-domain/README.md
+44-36
Original file line number
Diff line number
Diff line change
@@ -4,31 +4,33 @@ This Dockerfile extends the Oracle HTTP Install image by creating a sample OHSdo
4
4
During OHS container creation Oracle WebLogic Server Proxy Plug-In can be configured in order to load balance applications deployed onto either the Weblogic Admin Server, the Managed Servers or the WebLogic cluster running on docker containers within the same network.
5
5
6
6
## How to build image and run container
7
-
First make sure you have the Oracle HTTP install image (oracle/ohs:12.2.1-sa) ready by running following command as root user
8
-
$ docker images
7
+
1.First make sure you have the Oracle HTTP install image (oracle/ohs:12.2.1-sa) ready by running following command as root user
9
8
10
-
1.To build the OHS domain image using this sample Dockerfile, run command:
3.Run the below command to create a docker data volume.
16
+
17
+
Eg:$ docker volume create --name volume
17
18
18
-
_This data volume will be created in "/var/lib/docker" directory or the location where "/var/lib/docker" points to._
19
+
_This data volume will be created in "/var/lib/docker" directory or the location where "/var/lib/docker" points to._
19
20
20
-
3.Depending on your Weblogic environment , create a **custom_mod_wl_ohs.conf** file by referring to container-scripts/mod_wl_ohs.conf.sample and section 2.4 @ [OHS 12c Documentation](http://docs.oracle.com/middleware/1221/webtier/develop-plugin/oracle.htm#PLGWL553)
21
+
4.Depending on your Weblogic environment , create a **custom_mod_wl_ohs.conf** file by referring to container-scripts/mod_wl_ohs.conf.sample and section 2.4 @ [OHS 12c Documentation](http://docs.oracle.com/middleware/1221/webtier/develop-plugin/oracle.htm#PLGWL553)
21
22
22
-
4.Place the custom_mod_wl_ohs.conf file in docker data volume directory . e.g /var/lib/docker/volume
23
+
5.Place the custom_mod_wl_ohs.conf file in docker data volume directory . e.g /var/lib/docker/volume
23
24
24
-
4.To start the OHS Container with above sampleohs:12.2.1 image , run command from data volume directory:
25
+
6.To start the OHS Container with above sampleohs:12.2.1 image , run command from data volume directory:
5.All applications will now be accessible via the OHS port 7777.
30
+
7.All applications will now be accessible via the OHS port 7777.
30
31
31
-
######NOTE: If custom_mod_wl_ohs.conf is not provided, then configureWLSProxyPlugin.sh will just start OHS which will be accessible @ http://localhost:7777/index.html. Later you can login to running container and configure Weblogic Server proxy plugin file and run restartOHS script.
32
+
######NOTE: If custom_mod_wl_ohs.conf is not provided, then configureWLSProxyPlugin.sh will just start OHS which will be accessible @ http://localhost:7777/index.html.
33
+
######Later you can login to running container and configure Weblogic Server proxy plugin file and run restartOHS script.
32
34
33
35
34
36
## Configuring the Oracle WebLogic Server Proxy Plug-In with Oracle HTTP Server
@@ -56,29 +58,36 @@ Depending on the nature of your applications create your own "custom_mod_wl_ohs.
56
58
57
59
##### To configure Oracle WebLogic Server Proxy Plug-In inside OHS container
58
60
59
-
1.Create the custom_mod_wl_ohs.conf file by referring to container-scripts/mod_wl_ohs.conf.sample
61
+
**Prerequisite** : Create a docker data volume which will contain the Oracle weblogic Porxy Plugin file
# Directive for weblogic admin console deployed on Admin Server
78
+
<Location /console>
79
+
WLSRequest On
80
+
WebLogicHost myhost
81
+
WeblogicPort 7001
82
+
</Location>
83
+
#
84
+
# Directive for all application deployed on weblogic cluster with prepath /weblogic
85
+
<Location /weblogic>
86
+
WLSRequest On
87
+
WebLogicCluster myhost:9001,myhost:9002
88
+
PathTrim /weblogic
89
+
</Location>
90
+
```
82
91
83
92
2. Place it in docker data volume directory say /var/lib/docker/volume
84
93
@@ -90,17 +99,16 @@ Depending on the nature of your applications create your own "custom_mod_wl_ohs.
90
99
91
100
The **configureWLSProxyPlugin.sh** script will be the first script to be run inside the OHS container .
92
101
This script will perform the following actions:
93
-
- Start the Node Manager and OHS server
94
102
- Fetch the custom_mod_wl_ohs.conf file from mounted shared data volume
95
103
- Place the custom_mod_wl_ohs.conf file under OHS INSTANCE home
96
-
-Restart OHS server
104
+
-Start Node Manager and OHS server
97
105
98
106
4. Now you will be able to access all the URLS via the OHS Listen Port 7777
99
107
-http://localhost:7777/console
100
108
-http://localhost:7777/weblogic/sample
101
109
102
110
_NOTE: If custom_mod_wl_ohs.conf is not provided or not found under mounted shared data volume, then configureWLSProxyPlugin.sh will still start OHS server which will be accessible @ http://localhost:7777/index.html._
103
-
_Later you can login to running container and configure Weblogic Server proxy plugin file and run restartOHS script._
111
+
_Later you can login to running container and configure Weblogic Server proxy plugin file and run **restartOHS.sh** script._
0 commit comments