-
Notifications
You must be signed in to change notification settings - Fork 91
Issue#owls 69931 align docker sample with operator #196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mriccell
merged 12 commits into
master
from
Issue#OWLS-69931-align-docker-sample-with-operator
Dec 7, 2018
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
ec52a79
Changes to properties
CarolynRountree cd8d38c
fix up topology
CarolynRountree fa907e4
make build args from var file
CarolynRountree db28651
Add prefix ARG to arg variables
CarolynRountree c6ddf1a
More alignment for operator
CarolynRountree 8682342
Changes to readme and copyright
CarolynRountree ecd219b
push changes for property problems
CarolynRountree 92f3710
remove derby database from resources section
CarolynRountree a60e5ef
Update README.md
CarolynRountree 0717999
Update Dockerfile
CarolynRountree f3a1564
Update README.md
CarolynRountree 218213c
Update startAdminServer.sh
CarolynRountree File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
#!/bin/bash ex | ||
|
||
# Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. | ||
# The Universal Permissive License (UPL), Version 1.0 | ||
# | ||
# This example creates the BUILD_ARG environment variable as a string of --build-arg for | ||
# the arguments passed on the docker build command. The variable file that is used for the WDT | ||
# create domain step is the input to this script. This insures that the values persisted | ||
# as environment variables in the docker image match the configured domain home. | ||
|
||
BUILD_ARG='' | ||
if [ $# > 1 ]; then | ||
PROPERTIES_FILE=$1 | ||
fi | ||
|
||
if [ ! -e "${PROPERTIES_FILE}" ]; then | ||
echo "A properties file with variable definitions should be supplied." | ||
fi | ||
|
||
echo Export environment variables from the ${PROPERTIES_FILE} properties file | ||
|
||
DOMAIN_DIR=`awk '{print $1}' $PROPERTIES_FILE | grep ^DOMAIN_NAME= | cut -d "=" -f2` | ||
if [ ! -n "$DOMAIN_DIR" ]; then | ||
if [ -n "$DOMAIN_NAME" ]; then | ||
DOMAIN_DIR=$DOMAIN_NAME | ||
fi | ||
fi | ||
if [ -n "$DOMAIN_DIR" ]; then | ||
DOMAIN_NAME=$DOMAIN_DIR | ||
export DOMAIN_NAME | ||
echo DOMAIN_NAME=$DOMAIN_NAME | ||
BUILD_ARG="$BUILD_ARG --build-arg CUSTOM_DOMAIN_NAME=$DOMAIN_NAME" | ||
fi | ||
|
||
ADMIN_HOST=`awk '{print $1}' $PROPERTIES_FILE | grep ^ADMIN_HOST= | cut -d "=" -f2` | ||
if [ -n "$ADMIN_HOST" ]; then | ||
export ADMIN_HOST | ||
echo ADMIN_HOST=$ADMIN_HOST | ||
BUILD_ARG="$BUILD_ARG --build-arg CUSTOM_ADMIN_HOST=$ADMIN_HOST" | ||
fi | ||
|
||
ADMIN_NAME=`awk '{print $1}' $PROPERTIES_FILE | grep ^ADMIN_NAME= | cut -d "=" -f2` | ||
if [ -n "$ADMIN_NAME" ]; then | ||
export ADMIN_NAME | ||
echo ADMIN_NAME=$ADMIN_NAME | ||
BUILD_ARG="$BUILD_ARG --build-arg CUSTOM_ADMIN_NAME=$ADMIN_NAME" | ||
fi | ||
|
||
ADMIN_PORT=`awk '{print $1}' $PROPERTIES_FILE | grep ^ADMIN_PORT= | cut -d "=" -f2` | ||
if [ -n "$ADMIN_PORT" ]; then | ||
export ADMIN_PORT | ||
echo ADMIN_PORT=$ADMIN_PORT | ||
BUILD_ARG="$BUILD_ARG --build-arg CUSTOM_ADMIN_PORT=$ADMIN_PORT" | ||
fi | ||
|
||
MANAGED_SERVER_PORT=`awk '{print $1}' $PROPERTIES_FILE | grep ^MANAGED_SERVER_PORT= | cut -d "=" -f2` | ||
if [ -n "$MANAGED_SERVER_PORT" ]; then | ||
export MANAGED_SERVER_PORT | ||
echo MANAGED_SERVER_PORT=$MANAGED_SERVER_PORT | ||
BUILD_ARG="$BUILD_ARG --build-arg CUSTOM_MANAGED_SERVER_PORT=$MANAGED_SERVER_PORT" | ||
fi | ||
|
||
DEBUG_PORT=`awk '{print $1}' $PROPERTIES_FILE | grep ^DEBUG_PORT= | cut -d "=" -f2` | ||
if [ -n "$DEBUG_PORT" ]; then | ||
export DEBUG_PORT | ||
echo DEBUG_PORT=$DEBUG_PORT | ||
BUILD_ARG="$BUILD_ARG --build-arg CUSTOM_DEBUG_PORT=$DEBUG_PORT" | ||
fi | ||
|
||
echo BUILD_ARG=$BUILD_ARG |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.