-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
21c regular image improvements, DISABLE_OOB (#54)
* Add artifactory upload Signed-off-by: gvenzl <gerald.venzl@gmail.com> * Adding Container Example Start/Creation Script * Incorporated feedback and fixes from pull request in example script * Fix for #43 Signed-off-by: gvenzl <gerald.venzl@gmail.com> * Remove Oracle Memory Speed (OMS) PMEM binaries Signed-off-by: gvenzl <gerald.venzl@gmail.com> * Remove MLE Signed-off-by: gvenzl <gerald.venzl@gmail.com> * Added PWgen check * Clean lastlog Signed-off-by: gvenzl <gerald.venzl@gmail.com> * Add 21c backups Signed-off-by: gvenzl <gerald.venzl@gmail.com> * Fix typo for 21 tests Signed-off-by: gvenzl <gerald.venzl@gmail.com> * Fix for #50, set exec permissions for shell scripts Signed-off-by: gvenzl <gerald.venzl@gmail.com> * Add utPLSQL as users Signed-off-by: gvenzl <gerald.venzl@gmail.com> * Better GitHub Actions documentation as per #45 Signed-off-by: gvenzl <gerald.venzl@gmail.com> Co-authored-by: Daniel Haanpaa [Lab0] <dhaanpaa@djhent.us>
- Loading branch information
1 parent
359e20b
commit 2c0b7b4
Showing
11 changed files
with
158 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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 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 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,5 @@ | ||
# Examples | ||
|
||
| Script | Parameters | Description | | ||
|--------|------------|-------------| | ||
| dkr-create-oracle-xe-server | hostXePort containerName | Create Oracle XE Container using docker | |
This file contains 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,51 @@ | ||
#!/usr/bin/env bash | ||
# Variables used for the script | ||
|
||
if [ ! -f `which pwgen` ]; then | ||
echo "You must have pwgen on your machine to run this script" | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$DKR_HOST_PORT" ]; then | ||
echo "You must provide docker host port" | ||
exit 1 | ||
fi | ||
|
||
|
||
if [ -z "$DKR_CNT_NAME" ]; then | ||
echo "You must provide dockercontainer name" | ||
exit 1 | ||
fi | ||
|
||
|
||
CMG_COMMAND=docker | ||
DKR_IMAGE="gvenzl/oracle-xe" | ||
DKR_HOST_PORT=$1 | ||
DKR_CNT_NAME=$2 | ||
DKR_DATA_PATH=dbcxe-$DKR_CNT_NAME-dvol | ||
DKR_ORA_USER_APP=DAAPPUSER | ||
DKR_ORA_PW=`pwgen -1 16 | tr -d '\n'` | ||
DKR_ORA_PW_APP=`pwgen -1 16 | tr -d '\n'` | ||
|
||
echo "Docker Image ............................ :'$DKR_IMAGE'" | ||
echo "Database (SYS AND SYSTEM) User Password . :'$DKR_ORA_PW'" | ||
echo "Database Application User ............... :'$DKR_ORA_USER_APP'" | ||
echo "Database Application User Password ...... :'$DKR_ORA_PW_APP'" | ||
echo "Docker Volume Name ...................... :'$DKR_DATA_PATH'" | ||
echo "Docker Host Port ........................ :'$DKR_HOST_PORT'" | ||
echo "Docker Container Name ................... :'$DKR_CNT_NAME'" | ||
|
||
|
||
|
||
$CMG_COMMAND run --name $DKR_CNT_NAME \ | ||
-p $DKR_HOST_PORT:1521 \ | ||
-e "ORACLE_PASSWORD=$DKR_ORA_PW" \ | ||
-e "APP_USER=$DKR_ORA_USER_APP" \ | ||
-e "APP_USER_PASSWORD=$DKR_ORA_PW_APP" \ | ||
-v $DKR_DATA_PATH:/opt/oracle/oradata \ | ||
-d $DKR_IMAGE | ||
|
||
echo "Waiting for container '$DKR_CNT_NAME' to start ... " | ||
sleep 10 | ||
|
||
echo "Docker Container '$DKR_CNT_NAME' has been started on port '$DKR_HOST_PORT'" |
Empty file.
This file contains 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 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 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 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 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 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