diff --git a/OracleHTTPServer/README.md b/OracleHTTPServer/README.md index 09093bc12b..3bd711ce90 100644 --- a/OracleHTTPServer/README.md +++ b/OracleHTTPServer/README.md @@ -19,7 +19,7 @@ You can also pull the Oracle Server JRE 8 image from [Oracle Container Registry] ### Building OHS Docker 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.2.0 or 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. +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. $ sh buildDockerImage.sh -v 12.2.1.3.0 diff --git a/OracleHTTPServer/dockerfiles/12.2.1.2.0/Dockerfile b/OracleHTTPServer/dockerfiles/12.2.1.2.0/Dockerfile deleted file mode 100644 index c472143cd1..0000000000 --- a/OracleHTTPServer/dockerfiles/12.2.1.2.0/Dockerfile +++ /dev/null @@ -1,97 +0,0 @@ -# -# Copyright (c) 2016-2017 Oracle and/or its affiliates. All rights reserved. -# -# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl. -# -# ORACLE HTTP Server DOCKERFILES PROJECT -# ----------------------------------------- -# This is the DockerFile for Oracle HTTP Server 12.2.1.2.0 -# -# IMPORTANT -# ------------------------------------------- -# The resulting image of this Dockerfile would have Oracle Linux 7.3 and Oracle HTTP Server 12.2.1.2.0 installed in standalone mode. -# A standalone domain will be configured in this image -# -# REQUIRED FILES TO BUILD THIS IMAGE -# ---------------------------------- -# (1) fmw_12.2.1.2.0_ohs_linux64_Disk1_1of1.zip -# Download from http://www.oracle.com/technetwork/middleware/webtier/downloads/index-jsp-156711.html -# -# HOW TO BUILD THIS IMAGE -# ----------------------- -# Put all downloaded files in the same directory as this Dockerfile -# As root user run following command manually: -# -# $ sh buildDockerImage.sh -v 12.2.1.2.0 -# -# Alternatively you can also run -# -# $ docker build --force-rm=true --no-cache=true --rm=true -t oracle/$IMAGE_NAME:$VERSION-$INSTALL_TYPE . -# -# For example -# -# $ docker build --force-rm=true --no-cache=true --rm=true -t oracle/ohs:12.2.1.2.0-sa . -# -# Pull serverjre:8 base image -# ----------------------------------- -FROM oracle/serverjre:8 - -# Maintainer -# ------------------------------------ -MAINTAINER Prabhat Kishore - -# Environment variables required for this build (do NOT change) -# ---------------------------------------------- -ENV OHS_PKG=fmw_12.2.1.2.0_ohs_linux64_Disk1_1of1.zip \ - OHS_BIN=fmw_12.2.1.2.0_ohs_linux64.bin \ - ORACLE_HOME=/u01/oracle/ohssa \ - USER_MEM_ARGS="-Djava.security.egd=file:/dev/./urandom" \ - PATH=$PATH:/usr/java/default/bin:/u01/oracle/ohssa/oracle_common/common/bin \ - NM_PORT=5556 \ - OHS_LISTEN_PORT=7777 \ - OHS_SSL_PORT=4443 \ - JAVA_HOME=/usr/java/default \ - MW_HOME=/u01/oracle/ohssa \ - DOMAIN_NAME=ohsDomain \ - OHS_COMPONENT_NAME=ohs_sa1 \ - PATH=$PATH:$ORACLE_HOME/oracle_common/common/bin:$ORACLE_HOME/user_projects/domains/ohsDomain/bin:/u01/oracle/container-scripts \ - WLST_HOME=/u01/oracle/ohssa/oracle_common/common/bin - - -# Copy packages to the new drive -# ------------------------------------------------------- -COPY $OHS_PKG install.file oraInst.loc /u01/ - -# Install OL7 required packages. Refer FMW 12.2.1.2 System requirements guide for complete list of packages -# Change the open file limits and kernel parameters that need changing -# Setup filesystem and oracle user -#--------------------------------------------------------------------------------------------------------- -# Proxy needs to be set before running yum in /etc/yum.conf -RUN yum install -y unzip libaio sysstat && \ - rm -rf /var/cache/yum && \ - chmod a+xr /u01 && \ - useradd -b /u01 -m -s /bin/bash oracle && \ - mkdir /u01/oracle/.inventory && \ - chown oracle:oracle -R /u01 - -# Go to /u01 as user 'oracle' to proceed with OHS installation -#-------------------------------------------------------- -USER oracle -RUN cd /u01 && unzip -q /u01/$OHS_PKG && cd - && \ - /u01/$OHS_BIN -ignoreSysPrereqs -novalidation -silent -responseFile /u01/install.file -invPtrLoc /u01/oraInst.loc ORACLE_HOME=$ORACLE_HOME && \ - rm /u01/$OHS_BIN /u01/$OHS_PKG /u01/oraInst.loc /u01/install.file && \ - mkdir /u01/oracle/container-scripts/ /u01/oracle/logs - -# Copy required files to build this image -# ------------------------------------------------------ -COPY container-scripts/* /u01/oracle/container-scripts/ - -#Expose all Ports -EXPOSE $OHS_SSL_PORT $OHS_LISTEN_PORT $NM_PORT - -# Final setup -WORKDIR /u01/oracle/container-scripts - -# Provision OHS instance -CMD ["/u01/oracle/container-scripts/provisionOHS.sh"] - diff --git a/OracleHTTPServer/dockerfiles/12.2.1.2.0/container-scripts/configureWLSProxyPlugin.sh b/OracleHTTPServer/dockerfiles/12.2.1.2.0/container-scripts/configureWLSProxyPlugin.sh deleted file mode 100755 index 79749036fa..0000000000 --- a/OracleHTTPServer/dockerfiles/12.2.1.2.0/container-scripts/configureWLSProxyPlugin.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/bash -# Author: hemastuti.baruah@oracle.com -# -# Copyright (c) 2016-2017 Oracle and/or its affiliates. All rights reserved. -# -# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl. -# -#************************************************************************* -#This script will configure Oracle WebLogic Server Proxy Plug-In (mod_wl_ohs), -#in order to enable the Oracle HTTP Server instances to route applications -#deployed on the Admin Server, Single Managed Server or the Oracle WebLogic Server clusters -#Refer to Section 2.4 @ http://docs.oracle.com/middleware/12212/webtier/develop-plugin/oracle.htm#PLGWL553 -# -#Prerequisite: -#1.Create a directory which would be mounted to the container -#2.Create "custom_mod_wl_ohs.conf" as per your environment by referring to mod_wl_ohs.conf sample file and OHS document above -#3.Place the "custom_mod_wl_ohs.conf" inside the directory which will be mounted in the container -#4.During OHS container creation mount the directory which contains the "custom_mod_wl_ohs.conf" -# -# Note : -# If custom_mod_wl_ohs.conf is not provided, WebLogic Server Proxy Plug-In will not be configured. But OHS server will be still running. -# User may login to OHS container and manually configure the WebLogic Server Proxy Plug-In later -# -#MW_HOME - The root directory of your OHS standalone install -#DOMAIN_NAME - Env Value set by Dockerfile , default is "ohsDOmain" -#OHS_COMPONENT_NAME - Env Value set by Dockerfile , default is "ohs_sa1" -#************************************************************************* -echo "MW_HOME=${MW_HOME:?"Please set MW_HOME"}" -echo "DOMAIN_NAME=${DOMAIN_NAME:?"Please set DOMAIN_NAME"}" -echo "OHS_COMPONENT_NAME=${OHS_COMPONENT_NAME:?"Please set OHS_COMPONENT_NAME"}" - -DOMAIN_HOME=${MW_HOME}/user_projects/domains/${DOMAIN_NAME} -INSTANCE_CONFIG_HOME=$DOMAIN_HOME/config/fmwconfig/components/OHS/${OHS_COMPONENT_NAME} -export INSTANCE_CONFIG_HOME -echo "INSTANCE_CONFIG_DIR=${INSTANCE_CONFIG_HOME}" - -#Search for the customized mod_wl_ohs.conf file -modwlsconfigfile=`find / -name 'custom_mod_wl_ohs.conf' 2>&1 | grep -v 'Permission denied'` -export modwlsconfigfile -echo "MODWLSCONFIGFILE IS ${modwlsconfigfile}" - -# Check and copy custom_mod_wl_ohs.conf to OHS Instance Home -if [[ -n "${modwlsconfigfile/[ ]*\n/}" ]]; then -cd ${INSTANCE_CONFIG_HOME} -mv mod_wl_ohs.conf mod_wl_ohs.conf.ORIGINAL -echo "Copying ${modwlsconfigfile} to ${INSTANCE_CONFIG_HOME} " -cp ${modwlsconfigfile} ${INSTANCE_CONFIG_HOME}/mod_wl_ohs.conf -fi diff --git a/OracleHTTPServer/dockerfiles/12.2.1.2.0/container-scripts/create-sa-ohs-domain.py b/OracleHTTPServer/dockerfiles/12.2.1.2.0/container-scripts/create-sa-ohs-domain.py deleted file mode 100644 index 1f5b83b339..0000000000 --- a/OracleHTTPServer/dockerfiles/12.2.1.2.0/container-scripts/create-sa-ohs-domain.py +++ /dev/null @@ -1,56 +0,0 @@ -#!/usr/bin/python -# -# Copyright (c) 2016-2017 Oracle and/or its affiliates. All rights reserved. -# -# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl. -# -# Create OHS Domain and OHS System component -# -# OHS Domain 'ohsDomain' (or anything defined under DOMAIN_NAME) to be created inside the Docker image for OHS -# OHS System Component "ohs_sa1" (Or anything defined under OHS_COMPONENT_NAME)to be created inside the Docker image for OHS -# -# Author: hemastuti.baruah@oracle.com -# ============================================== -import os, sys -#admin_port = (os.environ.get("ADMIN_PORT", "7001")) -ohs_http_port = (os.environ.get("OHS_LISTEN_PORT", "7777")) -ohs_ssl_port = (os.environ.get("OHS_SSL_PORT", "3333")) -nm_pass = os.environ.get("NM_PASSWORD", "welcome1") -ohs_comp_name = os.environ.get("OHS_COMPONENT_NAME", "ohs_sa1") -domain_name = os.environ.get("DOMAIN_NAME", "ohsDomain") -domain_path = '/u01/oracle/ohssa/user_projects/domains/' + domain_name -# Select OHS standalone template -# ============================================== -setTopologyProfile('Compact') -selectTemplate('Oracle HTTP Server (Standalone)') -loadTemplates() -showTemplates() -# Create OHS System Component by the name ohs_sa1, Configure OHS Listen Port and SSL Port -# ====================================================================== -cd('/') -create(ohs_comp_name, 'SystemComponent') -cd('SystemComponent/' + ohs_comp_name) -set('ComponentType','OHS') -cd('/') -cd('OHS/' + ohs_comp_name) -set('ListenAddress','') -set('ListenPort', ohs_http_port) -set('SSLListenPort', ohs_ssl_port) -# Set NodeManager user name and password -# ====================================================================== -cd('/') -create('sc', 'SecurityConfiguration') -cd('SecurityConfiguration/sc') -set('NodeManagerUsername', 'weblogic') -set('NodeManagerPasswordEncrypted', nm_pass) -#set('NodeManagerUsername','weblogic') -#set('NodeManagerPasswordEncrypted','welcome1') -setOption('NodeManagerType','PerDomainNodeManager') -setOption('OverwriteDomain', 'true') -#Write Domain, close template and exit -# ====================================================================== -#writeDomain(r'/u01/oracle/ohssa/user_projects/domains/ohsDomain') -writeDomain(domain_path) -dumpStack() -closeTemplate() -exit() diff --git a/OracleHTTPServer/dockerfiles/12.2.1.2.0/container-scripts/helloWorld.html b/OracleHTTPServer/dockerfiles/12.2.1.2.0/container-scripts/helloWorld.html deleted file mode 100644 index 039c5a7aad..0000000000 --- a/OracleHTTPServer/dockerfiles/12.2.1.2.0/container-scripts/helloWorld.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - Oracle HHTP Server Test - - - -

Oracle HTTP Server Test

-

Welcome to Hello world!!! Test is successful

- - diff --git a/OracleHTTPServer/dockerfiles/12.2.1.2.0/container-scripts/mod_wl_ohs.conf.sample b/OracleHTTPServer/dockerfiles/12.2.1.2.0/container-scripts/mod_wl_ohs.conf.sample deleted file mode 100644 index 5222313fd0..0000000000 --- a/OracleHTTPServer/dockerfiles/12.2.1.2.0/container-scripts/mod_wl_ohs.conf.sample +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright (c) 2016-2017 Oracle and/or its affiliates. All rights reserved. -# -# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl. -# -#*************************************************************** -# NOTE : This is a sample template to configure mod_weblogic. -# Author: hemastuti.baruah@oracle.com -# -# -#Refer to OHS documentation for more details and examples -#Section 2.4 @ http://docs.oracle.com/middleware/12212/webtier/develop-plugin/oracle.htm#PLGWL553 -#************************************************************************* -LoadModule weblogic_module "/u01/oracle/ohssa/ohs/modules/mod_wl_ohs.so" - - -WebLogicHost WEBLOGIC_HOST -WebLogicPort WEBLOGIC_PORT - - -# Directive for weblogic admin Console deployed on Weblogic Admin Server - -SetHandler weblogic-handler -WebLogicHost WEBLOGIC_HOST -WeblogicPort WEBLOGIC_PORT - - -# Directive for all application deployed on weblogic cluster with /weblogic prepath -#All application deployed on cluster can be accessed via http://myhost:7777/weblogic/application_end_url - -WLSRequest On -WebLogicCluster WEBLOGIC_CLUSTER -PathTrim /weblogic - - -#Directive for application deployed on single or set of Managed Servers (and NOT on weblogic cluster) -# -#SetHandler weblogic-handler -#WebLogicHost ManagedServer_HOST -#WeblogicPort ManagedServer_PORT -# diff --git a/OracleHTTPServer/dockerfiles/12.2.1.2.0/container-scripts/provisionOHS.sh b/OracleHTTPServer/dockerfiles/12.2.1.2.0/container-scripts/provisionOHS.sh deleted file mode 100755 index 3c7a518cca..0000000000 --- a/OracleHTTPServer/dockerfiles/12.2.1.2.0/container-scripts/provisionOHS.sh +++ /dev/null @@ -1,143 +0,0 @@ -#!/bin/bash -# Author: prabhat.kishore@oracle.com -# Copyright (c) 2017 Oracle and/or its affiliates. All rights reserved. -# -# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl. -# -#************************************************************************* -# This script is used to create a standalone OHS domain and start NodeManager, OHS instance. -# This script sets the following variables: -# -# WL_HOME - The Weblogic home directory -# NODEMGR_HOME - Absolute path to Nodemanager directory under the configured domain home -# DOMAIN_HOME - Absolute path to configured domain home -# JAVA_HOME- Absolute path to jre inside the oracle home directory -#************************************************************************* -########### SIGTERM handler ############ -function _term() { - echo "Stopping container." - echo "SIGTERM received, shutting down the server!" - ${WLST_HOME}/wlst.sh /u01/oracle/container-scripts/stop-ohs.py - ${DOMAIN_HOME}/bin/stopNodeManager.sh -} - -########### SIGKILL handler ############ -function _kill() { - echo "SIGKILL received, shutting down the server!" - kill -9 $childPID -} - -# Set SIGTERM handler -trap _term SIGTERM - -# Set SIGKILL handler -trap _kill SIGKILL - -echo "MW_HOME=${MW_HOME:?"Please set MW_HOME"}" -echo "ORACLE_HOME=${ORACLE_HOME:?"Please set ORACLE_HOME"}" -echo "DOMAIN_NAME=${DOMAIN_NAME:?"Please set DOMAIN_NAME"}" -echo "OHS_COMPONENT_NAME=${OHS_COMPONENT_NAME:?"Please set OHS_COMPONENT_NAME"}" - -export MW_HOME ORACLE_HOME DOMAIN_NAME OHS_COMPONENT_NAME - - -#Set WL_HOME, WLST_HOME, DOMAIN_HOME and NODEMGR_HOME -WL_HOME=${ORACLE_HOME}/wlserver -WLST_HOME=${ORACLE_HOME}/oracle_common/common/bin -echo "WLST_HOME=${WLST_HOME}" - -DOMAIN_HOME=${ORACLE_HOME}/user_projects/domains/${DOMAIN_NAME} -export DOMAIN_HOME -echo "DOMAIN_HOME=${DOMAIN_HOME}" - -NODEMGR_HOME=${DOMAIN_HOME}/nodemanager -export NODEMGR_HOME - -echo "PATH=${PATH}" -PATH=$PATH:/usr/java/default/bin:/u01/oracle/ohssa/oracle_common/common/bin -export PATH -echo "PATH=${PATH}" - -# Set JAVA_OPTIONS and JAVA_HOME for node manager -JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.RootDirectory=${DOMAIN_HOME}" -export JAVA_OPTIONS - -JAVA_HOME=${ORACLE_HOME}/oracle_common/jdk/jre -export JAVA_HOME - -#Declare and initializing NMSTATUS -declare -a NMSTATUS -NMSTATUS[0]="NOT RUNNING" - -# If nodemanager$$.log does not exists,this is the first time configuring the NM -# generate the NM password - -if [ ! -f /u01/oracle/logs/nodemanager$$.log ]; then - -# Auto generate Node Manager password -while true; do - NM_PASSWORD=$(cat /dev/urandom | tr -dc "A-Za-z0-9" | fold -w 8 | head -n 1) - if [[ ${#NM_PASSWORD} -ge 8 && "$NM_PASSWORD" == *[A-Z]* && "$NM_PASSWORD" == *[a-z]* && "$NM_PASSWORD" == *[0-9]* ]]; then - break - else - echo "Password does not Match the criteria, re-generating..." - fi - done - -echo "" -echo " NodeManager Password Auto Generated:" -echo "" -echo " ----> 'OHS' Node Manager password: $NM_PASSWORD" -echo "" - -# Create an OHS domain -wlst.sh -skipWLSModuleScanning /u01/oracle/container-scripts/create-sa-ohs-domain.py -# Set the NM username and password in the properties file -echo "username=weblogic" >> /u01/oracle/ohssa/user_projects/domains/ohsDomain/config/nodemanager/nm_password.properties -echo "username=$NM_PASSWORD" >> /u01/oracle/ohssa/user_projects/domains/ohsDomain/config/nodemanager/nm_password.properties -mv /u01/oracle/container-scripts/helloWorld.html ${ORACLE_HOME}/user_projects/domains/ohsDomain/config/fmwconfig/components/OHS/ohs_sa1/htdocs/helloWorld.html -fi - -# Start node manager -${DOMAIN_HOME}/bin/startNodeManager.sh > /u01/oracle/logs/nodemanager$$.log 2>&1 & -statusfile=/tmp/notifyfifo.$$ - -#Check if Node Manager is up and running by inspecting logs -mkfifo "${statusfile}" || exit 1 -{ - # run tail in the background so that the shell can kill tail when notified that grep has exited - tail -f /u01/oracle/logs/nodemanager$$.log & - # remember tail's PID - tailpid=$! - # wait for notification that grep has exited - read templine <${statusfile} - echo ${templine} - # grep has exited, time to go - kill "${tailpid}" -} | { - grep -m 1 "Secure socket listener started on port 5556" - # notify the first pipeline stage that grep is done - echo "RUNNING"> /u01/oracle/logs/Nodemanage$$.status - echo "Node manager is running" - echo >${statusfile} -} -# clean up temporary files -rm "${statusfile}" - -#Check if configureWLSProxyPlugin.sh needs to be invoked -if [ -f /config/custom_mod_wl_ohs.conf ]; then -configureWLSProxyPlugin.sh -fi - -#Start OHS component only if Node Manager is up -if [ -f /u01/oracle/logs/Nodemanage$$.status ]; then -echo "Node manager running, hence starting OHS server" -${WLST_HOME}/wlst.sh /u01/oracle/container-scripts/start-ohs.py -echo "OHS server has been started " -fi - -#Tail all server logs -tail -f ${DOMAIN_HOME}/nodemanager/nodemanager.log ${DOMAIN_HOME}/servers/*/logs/*.log & - -childPID=$! -wait $childPID diff --git a/OracleHTTPServer/dockerfiles/12.2.1.2.0/container-scripts/start-ohs.py b/OracleHTTPServer/dockerfiles/12.2.1.2.0/container-scripts/start-ohs.py deleted file mode 100644 index 2ed750878e..0000000000 --- a/OracleHTTPServer/dockerfiles/12.2.1.2.0/container-scripts/start-ohs.py +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright (c) 2016-2017 Oracle and/or its affiliates. All rights reserved. -# -# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl. -# -# Author: hemastuti.baruah@oracle.com -# Starts the ohs_sa1 component server inside the ohsDomain -# ============================================== -import os, sys -java_home = os.environ.get("JAVA_HOME", "/usr/java/default") -nm_pass = os.environ.get("NM_PASSWORD", "welcome1") -ohs_comp_name = os.environ.get("OHS_COMPONENT_NAME", "ohs_sa1") -domain_name = os.environ.get("DOMAIN_NAME", "ohsDomain") -domain_path = '/u01/oracle/ohssa/user_projects/domains/' + domain_name -oracle_home = os.environ.get("ORACLE_HOME", "/u01/oracle/ohssa") -###################################################### -try: - JAVA_HOME = java_home - DOMAIN_HOME = domain_path - ORACLE_HOME = oracle_home - if DOMAIN_HOME is None: - sys.exit("Error: Please set the environment variable DOMAIN_HOME") - if JAVA_HOME is None: - sys.exit("Error: Please set the environment variable JAVA_HOME") - if ORACLE_HOME is None: - sys.exit("Error: Please set the environment variable ORACLE_HOME") -except (KeyError), why: - sys.exit("Error: Missing Environment Variables " + str(why)) -nmConnect(username='weblogic',password=nm_pass,domainName=domain_name) -nmServerStatus(serverName=ohs_comp_name,serverType='OHS') -nmStart(serverName=ohs_comp_name,serverType='OHS') -nmServerStatus(serverName=ohs_comp_name,serverType='OHS') -exit() diff --git a/OracleHTTPServer/dockerfiles/12.2.1.2.0/container-scripts/stop-ohs.py b/OracleHTTPServer/dockerfiles/12.2.1.2.0/container-scripts/stop-ohs.py deleted file mode 100644 index 8bfc106623..0000000000 --- a/OracleHTTPServer/dockerfiles/12.2.1.2.0/container-scripts/stop-ohs.py +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright (c) 2016-2017 Oracle and/or its affiliates. All rights reserved. -# -# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl. -# -# Author: hemastuti.baruah@oracle.com -# Stops the ohs_sa1 component server inside the ohsDomain -# ============================================== -import os, sys -java_home = os.environ.get("JAVA_HOME", "/usr/java/default") -nm_pass = os.environ.get("NM_PASSWORD", "welcome1") -ohs_comp_name = os.environ.get("OHS_COMPONENT_NAME", "ohs_sa1") -domain_name = os.environ.get("DOMAIN_NAME", "ohsDomain") -domain_path = '/u01/oracle/ohssa/user_projects/domains/' + domain_name -oracle_home = os.environ.get("ORACLE_HOME", "/u01/oracle/ohssa") -###################################################### -try: - JAVA_HOME = java_home - DOMAIN_HOME = domain_path - ORACLE_HOME = oracle_home - if DOMAIN_HOME is None: - sys.exit("Error: Please set the environment variable DOMAIN_HOME") - if JAVA_HOME is None: - sys.exit("Error: Please set the environment variable JAVA_HOME") - if ORACLE_HOME is None: - sys.exit("Error: Please set the environment variable ORACLE_HOME") -except (KeyError), why: - sys.exit("Error: Missing Environment Variables " + str(why)) -nmConnect(username='weblogic',password=nm_pass,domainName=domain_name) -nmServerStatus(serverName=ohs_comp_name,serverType='OHS') -nmKill(serverName=ohs_comp_name,serverType='OHS') -nmServerStatus(serverName=ohs_comp_name,serverType='OHS') -exit() diff --git a/OracleHTTPServer/dockerfiles/12.2.1.2.0/fmw_12.2.1.2.0_ohs_linux64_Disk1_1of1.zip.download b/OracleHTTPServer/dockerfiles/12.2.1.2.0/fmw_12.2.1.2.0_ohs_linux64_Disk1_1of1.zip.download deleted file mode 100644 index 97fe00b49f..0000000000 --- a/OracleHTTPServer/dockerfiles/12.2.1.2.0/fmw_12.2.1.2.0_ohs_linux64_Disk1_1of1.zip.download +++ /dev/null @@ -1,12 +0,0 @@ -# -# Copyright (c) 2016-2017 Oracle and/or its affiliates. All rights reserved. -# -# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl. -# -# -# Download the OHS 12.2.1.2.0 software for LINUX.x64 (fmw_12.2.1.2.0_ohs_linux64_Disk1_1of1.zip) -# -# from http://www.oracle.com/technetwork/middleware/webtier/downloads/index-jsp-156711.html -# -# -1c7b9613c1399861e17d4d98a5ed4ee1 fmw_12.2.1.2.0_ohs_linux64_Disk1_1of1.zip diff --git a/OracleHTTPServer/dockerfiles/12.2.1.2.0/install.file b/OracleHTTPServer/dockerfiles/12.2.1.2.0/install.file deleted file mode 100644 index 2267ffbb9e..0000000000 --- a/OracleHTTPServer/dockerfiles/12.2.1.2.0/install.file +++ /dev/null @@ -1,24 +0,0 @@ -# -# Copyright (c) 2016-2017 Oracle and/or its affiliates. All rights reserved. -# -# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl. -# -[ENGINE] - -#DO NOT CHANGE THIS. -Response File Version=1.0.0.0.0 - -[GENERIC] - -#Set this to true if you wish to skip software updates -DECLINE_AUTO_UPDATES=true - -#Set this variable value to the Installation Type selected as either Standalone HTTP Server (Managed independently of WebLogic server) OR Colocated HTTP Server (Managed through WebLogic server) -INSTALL_TYPE=Standalone HTTP Server (Managed independently of WebLogic server) - -#Set this to true if you wish to decline the security updates. Setting this to true and providing empty string for My Oracle Support username will ignore the Oracle Configuration Manager configuration -DECLINE_SECURITY_UPDATES=true - -#Set this to true if My Oracle Support Password is specified -SECURITY_UPDATES_VIA_MYORACLESUPPORT=false - diff --git a/OracleHTTPServer/dockerfiles/12.2.1.2.0/oraInst.loc b/OracleHTTPServer/dockerfiles/12.2.1.2.0/oraInst.loc deleted file mode 100644 index 2715ad6459..0000000000 --- a/OracleHTTPServer/dockerfiles/12.2.1.2.0/oraInst.loc +++ /dev/null @@ -1,7 +0,0 @@ -# -# Copyright (c) 2016-2017 Oracle and/or its affiliates. All rights reserved. -# -# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl. -# -inventory_loc=/u01/oracle/.inventory -inst_group=oracle