Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion OracleGoldenGate/23/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Version 23.4 ...

### Running Scripts Before Setup and on Startup

The container images can be configured to run scripts before setup and on startup. Currently, `.sh` extensions are supported. For setup scripts just mount the volume `/u01/ogg/scripts/setup` or extend the image to include scripts in this directory. For startup scripts just mount the volume `/u01/ogg/scripts/startup` or extend the image to include scripts in this directory. Both of those locations
The container images can be configured to run scripts before setup and on startup. Currently, `.sh` and `.py` extensions are supported. For setup scripts just mount the volume `/u01/ogg/scripts/setup` or extend the image to include scripts in this directory. For startup scripts just mount the volume `/u01/ogg/scripts/startup` or extend the image to include scripts in this directory. Both of those locations
are static and the content is controlled by the volume mount.

The example below mounts the local directory `${PWD}/myScripts` to `/u01/ogg/scripts` which is then searched for custom startup scripts:
Expand Down
6 changes: 5 additions & 1 deletion OracleGoldenGate/23/bin/deployment-main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,14 @@ function run_user_scripts {
while read -r script; do
case "${script}" in
*.sh)
echo "Running script '${script}'"
echo "Running shell script '${script}'"
# shellcheck disable=SC1090
source "${script}"
;;
*.py)
echo "Running Python script '${script}'"
python3 "${script}"
;;
*)
echo "Ignoring '${script}'"
;;
Expand Down