Skip to content

Commit

Permalink
fix more LINT errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mriccell committed Jul 8, 2024
1 parent a531532 commit da0d3ee
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 28 deletions.
18 changes: 6 additions & 12 deletions OracleHTTPServer/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Oracle HTTP Server in containers
# ===================================
===================================
This project includes quick start dockerfiles and samples for standalone Oracle HTTP Server based on Oracle Linux and Oracle JDK 8 (Server).
The certification of OHS in containers does not require the use of any file presented in this repository.
Customers and users are welcome to use them as starters, and customize/tweak, or create from scratch new scripts and Dockerfiles.
Expand All @@ -14,14 +14,15 @@ You must first download the Oracle Server JRE binary and drop in folder `../Orac

"$ cd ../OracleJava/java-8"
"$ sh build.sh"

You can also pull the Oracle Server JRE 8 image from [Oracle Container Registry](https://container-registry.oracle.com).

### Building OHS Container Image
IMPORTANT: You have to download the OHS binary and put it in place (see .download files inside dockerfiles/).

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.

"$ sh buildDockerImage.sh -v 12.2.1.4.0"
"$ sh buildDockerImage.sh -v 12.2.1.4.0"

IMPORTANT: The resulting image will have a pre-configured domain.

Expand All @@ -33,15 +34,10 @@ username=mynodemanagerusername
password=mynodemanagerpassword

### How to run container



If you want to start the OHS container without specifying any configuration for mod_weblogic:
1. To start the OHS container with oracle/ohs:12.2.1.4.0 image, run the following command:


"$ 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"

"$ 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"

If you want to start the OHS container with some pre-specified mod_weblogic configuration:
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)
Expand All @@ -50,19 +46,17 @@ If you want to start the OHS container with some pre-specified mod_weblogic conf
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.
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:

"$ 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"
"$ 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"

### Stopping the OHS instance
To stop the OHS instance, execute the following command:

"$ docker stop <Container name>"

"$ docker stop <Container name>"

To look at the Container logs run:

"$ docker logs --details <Container-id>"


## Support
Oracle HTTP Server in containers is supported by Oracle.

Expand Down
2 changes: 1 addition & 1 deletion OracleHTTPServer/dockerfiles/12.2.1.4.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ ENV WLST_HOME=/u01/oracle/ohssa/oracle_common/common/bin

# Copy packages to the new drive
# -------------------------------------------------------
WORKDIR /u01
COPY $OHS_PKG install.file oraInst.loc /u01/

# Install OL7 required packages. Refer FMW 12.2.1.4 System requirements guide for complete list of packages
Expand All @@ -73,6 +72,7 @@ RUN yum install -y unzip libaio sysstat make psmisc gcc && \
# Go to /u01 as user 'oracle' to proceed with OHS installation
#--------------------------------------------------------
USER oracle
WORKDIR /u01
RUN cd /u01 && unzip -q /u01/$OHS_PKG && cd - && \
/u01/$OHS_BIN -silent -responseFile /u01/install.file -invPtrLoc /u01/oraInst.loc ORACLE_HOME=$ORACLE_HOME && \
rm /u01/$OHS_BIN /u01/oraInst.loc /u01/install.file && \
Expand Down
12 changes: 4 additions & 8 deletions OracleHTTPServer/dockerfiles/buildDockerImage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ checksumPackages() {
# md5sum -c *.download
# if [ "$?" -ne 0 ]; then
MDSUM="md5sum -c *.download"
if ["$MDSUM" -ne 0 ]; then
if [ "$MDSUM" -ne 0 ]; then
echo "MD5 for required packages to build this image did not match!"
echo "Make sure to download missing files in folder dockerfiles. See *.download files for more information"
exit $MDSUM
Expand Down Expand Up @@ -118,10 +118,6 @@ BUILD_END=$(date '+%s')
BUILD_ELAPSED=`expr $BUILD_END - $BUILD_START`

echo ""

cat << EOF
OHS Standalone Docker Image for version: $VERSION is ready to be used.
--> $IMAGE_NAME
Build completed in $BUILD_ELAPSED seconds.
echo "OHS Standalone Docker Image for version: $VERSION is ready to be used."
echo " --> $IMAGE_NAME"
echo "Build completed in $BUILD_ELAPSED seconds."
2 changes: 1 addition & 1 deletion OracleHTTPServer/samples/12214-patch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ ENV PATCH_PKG="p36393221_122140_Linux-x86-64.zip"

# Copy supplemental package and scripts
# --------------------------------
WORKDIR /u01
COPY $PATCH_PKG /u01/

# Installation of Supplemental Quick Installer
# --------------------------------------------
USER oracle
WORKDIR /u01
RUN cd /u01 && $JAVA_HOME/bin/jar xf /u01/$PATCH_PKG && cd - && \
cd /u01/36393221 && $ORACLE_HOME/OPatch/opatch apply -silent && \
rm /u01/$PATCH_PKG
Expand Down
11 changes: 5 additions & 6 deletions OracleHTTPServer/samples/12214-patch/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Applying patch on Oracle HTTP Server
# ===============
===============
This Dockerfile extends the Oracle HTTP Server image by applying a patch. This is a sample which shows how to patch an OHS image.
The name of patch file will need to be modified accordingly in the Dockerfile before using it for actual cases.

Expand All @@ -10,8 +10,8 @@ First make sure you have built oracle/ohs:12.2.1.4.0.
Then download the patch and place it next to this README.

To build, run:
"$ docker build -t oracle/ohs:12214-patch ."

"$ docker build -t oracle/ohs:12214-patch ."


### Providing the Node Manager password
Expand All @@ -32,12 +32,11 @@ To start the OHS container with the patched image, run the following command:
### Stopping the OHS instance
To stop the OHS instance, execute the following command:

"$ docker stop <Container name>"

"$ docker stop <Container name>"

To look at the Container logs run:

"$ docker logs --details <Container-id>"
"$ docker logs --details <Container id>"


## Support
Expand Down

0 comments on commit da0d3ee

Please sign in to comment.