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
Adding OHS 12.2.1.4 dockerfiles and removing 12.2.1.3 which is no lon… (#2796)
* Adding OHS 12.2.1.4 dockerfiles and removing 12.2.1.3 which is no longer supported
* Fix copyright statements, new version of the provisioning script
* replace the word Docker for Containers
* delete 12213 samples and replace the references of Docker for containers or images
* Correct lint errors
* Correct Lint Errors
* fix more LINT errors
* Lint warnings
* correct Lint warnings
* fix Lint warning
* Changes to the scripts to address comments
* Changes to scripts
* fix ORACLE_HOME and WLST_HOME
* change location where container-scripts are copied to
* replace container-scripts directories for /u01/oracle
* default domain home
* Add logic to verify that the WebGate configuration is provided
* Correcting Lint errors
* Correct gt 1
This project includes quick start dockerfiles and samples for standalone Oracle HTTP Server based on Oracle Linux and Oracle JDK 8 (Server).
4
-
The certification of OHS on Docker does not require the use of any file presented in this repository.
4
+
The certification of OHS in containers does not require the use of any file presented in this repository.
5
5
Customers and users are welcome to use them as starters, and customize/tweak, or create from scratch new scripts and Dockerfiles.
6
6
7
7
## How to Build and Run
@@ -12,67 +12,60 @@ The **buildDockerImage.sh** script is just a utility shell script that performs
12
12
### Building Oracle JDK (Server JRE) base image
13
13
You must first download the Oracle Server JRE binary and drop in folder `../OracleJava/java-8` and build that image. For more information, visit the [OracleJava](../OracleJava) folder's [README](../OracleJava/README.md) file.
14
14
15
-
$ cd ../OracleJava/java-8
16
-
$ sh build.sh
17
-
You can also pull the Oracle Server JRE 8 image from [Oracle Container Registry](https://container-registry.oracle.com) or the [Docker Store](https://store.docker.com/images/oracle-serverjre-8).
15
+
"$ cd ../OracleJava/java-8"
16
+
"$ sh build.sh"
18
17
19
-
### Building OHS Docker Image
18
+
You can also pull the Oracle Server JRE 8 image from [Oracle Container Registry](https://container-registry.oracle.com).
19
+
20
+
### Building OHS Container Image
20
21
IMPORTANT: You have to download the OHS binary and put it in place (see .download files inside dockerfiles/).
21
22
22
-
Download the required package (see .download file) and drop them in the version folder (12.2.1.3.0). Then go into the **dockerfiles** folder and run the **buildDockerImage.sh** script as root providing the version name with -v option.
23
+
Download the required package (see .download file) and drop them in the version folder (12.2.1.4.0). Then go into the **dockerfiles** folder and run the **buildDockerImage.sh** script as root providing the version name with -v option.
23
24
24
-
$ sh buildDockerImage.sh -v 12.2.1.3.0
25
+
"$ sh buildDockerImage.sh -v 12.2.1.4.0"
25
26
26
-
IMPORTANT: The resulting image will have a pre-configured domain.
27
+
IMPORTANT: The resulting image will have a pre-configured domain.
27
28
28
29
### Providing the Node Manager password
29
-
The user name and password must be supplied in a domain.properties file located in a HOST directory that you will map at Docker runtime with the -v option to the image directory /u01/oracle/bootdir. The properties file enables the scripts to configure the correct authentication for the Node Manager.
30
+
The user name and password must be supplied in a domain.properties file located in a HOST directory that you will map at runtime with the -v option to the image directory /u01/oracle/bootdir. The properties file enables the scripts to configure the correct authentication for the Node Manager.
30
31
31
32
The format of the domain.properties file is key=value pair:
32
33
username=mynodemanagerusername
33
34
password=mynodemanagerpassword
34
35
35
36
### How to run container
36
-
37
-
38
-
39
37
If you want to start the OHS container without specifying any configuration for mod_weblogic:
40
-
1. To start the OHS container with oracle/ohs:12.2.1.3.0 image, run the following command:
41
-
42
-
43
-
docker run -v `HOST PATH where the domain.properties file is`:/u01/oracle/bootdir -it --name ohs -p 7777:7777 oracle/ohs:12.2.1.3.0
38
+
1. To start the OHS container with oracle/ohs:12.2.1.4.0 image, run the following command:
44
39
40
+
"$ docker run -v `HOST PATH where the domain.properties file is`:/u01/oracle/bootdir -it --name ohs -p 7777:7777 oracle/ohs:12.2.1.4.0"
45
41
46
42
If you want to start the OHS container with some pre-specified mod_weblogic configuration:
47
-
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/12213/webtier/develop-plugin/oracle.htm#PLGWL553)
43
+
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/12214/webtier/develop-plugin/oracle.htm#PLGWL553)
48
44
49
45
2. Place the custom_mod_wl_ohs.conf file in a directory in the host say,"/scratch/DockerVolume/OHSVolume" and then mount this directory into the container at the location "/config".
50
-
By doing so, the contents of host directory /scratch/DockerVolume/OHSVolume(and hence custom_mod_wl_ohs.conf) will become available in the container at the mount point.
51
-
This mounting can be done by using the -v option with the 'docker run' command as shown below. The following command will start the OHS container with oracle/ohs:12.2.1.3.0 image and the host directory "/scratch/DockerVolume/OHSVolume" will get mounted at the location "/config" in the container:
46
+
By doing so, the contents of host directory /scratch/DockerVolume/OHSVolume(and hence custom_mod_wl_ohs.conf) will become available in the container at the mount point.
47
+
This mounting can be done by using the -v option with the 'docker run' command as shown below. The following command will start the OHS container with oracle/ohs:12.2.1.4.0 image and the host directory "/scratch/DockerVolume/OHSVolume" will get mounted at the location "/config" in the container:
52
48
53
-
$ docker run -v `HOST PATH where the domain.properties file is`:/u01/oracle/bootdir -v /scratch/DockerVolume/OHSVolume:/config -w /config -d --name ohs -p 7777:7777 oracle/ohs:12.2.1.3.0
49
+
"$ docker run -v `HOST PATH where the domain.properties file is`:/u01/oracle/bootdir -v /scratch/DockerVolume/OHSVolume:/config -w /config -d --name ohs -p 7777:7777 oracle/ohs:12.2.1.4.0"
54
50
55
51
### Stopping the OHS instance
56
52
To stop the OHS instance, execute the following command:
57
53
58
-
docker stop ohs (Assuming the name of conatiner is 'ohs')
59
-
54
+
"$ docker stop <Container name>"
60
55
61
-
To look at the Docker Container logs run:
62
-
63
-
$ docker logs --details <Container-id>
56
+
To look at the Container logs run:
64
57
58
+
"$ docker logs --details <Container-id>"
65
59
66
60
## Support
67
-
Oracle HTTP Server on Docker is supported by Oracle.
68
-
61
+
Oracle HTTP Server in containers is supported by Oracle.
69
62
70
63
## License
71
-
To download and run Oracle HTTP Server 12c Distribution regardless of inside or outside a Docker container, and regardless of the distribution, you must download the binaries from Oracle website and accept the license indicated at that page.
64
+
To download and run Oracle HTTP Server 12c Distribution regardless of inside or outside a container, and regardless of the distribution, you must download the binaries from Oracle website and accept the license indicated at that page.
72
65
73
-
To download and run Oracle JDK regardless of inside or outside a Docker container, you must download the binary from Oracle website and accept the license indicated at that pge.
66
+
To download and run Oracle JDK regardless of inside or outside a container, you must download the binary from Oracle website and accept the license indicated at that page.
74
67
75
-
All scripts and files hosted in this project and GitHub [docker/OracleHTTPServer](./) repository required to build the Docker images are, unless otherwise noted, released under the Universal Permissive License v1.0.
68
+
All scripts and files hosted in this project and GitHub [docker/OracleHTTPServer](./) repository required to build the images are, unless otherwise noted, released under the Universal Permissive License v1.0.
76
69
77
70
## Copyright
78
-
Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
71
+
Copyright (c) 2019, 2024, Oracle and/or its affiliates. All rights reserved.
0 commit comments