Skip to content

Commit

Permalink
Merge pull request oracle#1065 from mriccell/master
Browse files Browse the repository at this point in the history
Correct argument name
  • Loading branch information
mriccell authored Dec 4, 2018
2 parents b632840 + 6170a71 commit 5417af9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ FROM oracle/weblogic:12.2.1.3-developer
MAINTAINER Monica Riccelli <[email protected]>

ARG CUSTOM_DOMAIN_NAME="${CUSTOM_DOMAIN_NAME:-domain1}"
ARG CUSTOM_ADMIN_PORT="${CUSTOM__ADMIN_PORT:-7001}"
ARG CUSTOM_ADMIN_PORT="${CUSTOM_ADMIN_PORT:-7001}"
ARG CUSTOM_MANAGED_SERVER_PORT="${CUSTOM_MANAGED_SERVER_PORT:-8001}"
ARG CUSTOM_DEBUG_PORT="${CUSTOM_DEBUG_PORT:-8453}"
ARG CUSTOM_ADMIN_NAME="${CUSTOM_ADMIN_NAME:-admin-server}"
Expand Down
2 changes: 1 addition & 1 deletion OracleWebLogic/samples/12213-domain-home-in-image/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
#
#Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
#
. container-scripts/setEnv.sh ./properties/docker_build/domain.properties
. ./container-scripts/setEnv.sh ./properties/docker_build/domain.properties

docker build $BUILD_ARG -t 12213-domain-home-in-image .
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
#Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.

BUILD_ARG=''
if [ $# > 1 ]; then
PROPERTIES_FILE=$1
fi

if [ ! -e "${PROPERTIES_FILE}" ]; then
if [ "$#" -eq "0" ]
then
echo "A properties file with variable definitions should be supplied."
fi
exit 1
else
PROPERTIES_FILE=$1
echo Export environment variables from the ${PROPERTIES_FILE} properties file
fi

echo Export environment variables from the ${PROPERTIES_FILE} properties file

CUSTOM_DOMAIN_NAME=`awk '{print $1}' $PROPERTIES_FILE | grep ^DOMAIN_NAME= | cut -d "=" -f2`
if [ -n "$CUSTOM_DOMAIN_NAME" ]; then
Expand Down Expand Up @@ -43,11 +43,11 @@ if [ -n "$CUSTOM_ADMIN_PORT" ]; then
BUILD_ARG="$BUILD_ARG --build-arg CUSTOM_ADMIN_PORT=$CUSTOM_ADMIN_PORT"
fi

CUSTOM_MS_PORT=`awk '{print $1}' $PROPERTIES_FILE | grep ^MANAGED_SERVER_PORT= | cut -d "=" -f2`
if [ -n "$CUSTOM_MS_PORT" ]; then
export CUSTOM_MS_PORT=$CUSTOM_MS_PORT
echo CUSTOM_MS_PORT=$CUSTOM_MS_PORT
BUILD_ARG="$BUILD_ARG --build-arg CUSTOM_MS_PORT=$CUSTOM_MS_PORT"
CUSTOM_MANAGED_SERVER_PORT=`awk '{print $1}' $PROPERTIES_FILE | grep ^MANAGED_SERVER_PORT= | cut -d "=" -f2`
if [ -n "$CUSTOM_MANAGED_SERVER_PORT" ]; then
export CUSTOM_MANAGED_SERVER_PORT=$CUSTOM_MANAGED_SERVER_PORT
echo CUSTOM_MANAGED_SERVER_PORT=$CUSTOM_MANAGED_SERVER_PORT
BUILD_ARG="$BUILD_ARG --build-arg CUSTOM_MANAGED_SERVER_PORT=$CUSTOM_MANAGED_SERVER_PORT"
fi

CUSTOM_DEBUG_PORT=`awk '{print $1}' $PROPERTIES_FILE | grep ^DEBUG_PORT= | cut -d "=" -f2`
Expand All @@ -57,4 +57,5 @@ if [ -n "$CUSTOM_DEBUG_PORT" ]; then
BUILD_ARG="$BUILD_ARG --build-arg CUSTOM_DEBUG_PORT=$CUSTOM_DEBUG_PORT"
fi

export BUILD_ARG=$BUILD_ARG
echo BUILD_ARG=$BUILD_ARG

0 comments on commit 5417af9

Please sign in to comment.