-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add custom entrypoint with wrapper script for adaptive.sh execution w…
…hen required (#166) * Add custom entrypoint with wrapper script for adaptive.sh execution * Update dockerfiles/jdk17/ubuntu/obiam/README.md Co-authored-by: Hasitha Nanayakkara <[email protected]>
- Loading branch information
Showing
6 changed files
with
55 additions
and
0 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,15 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
# Execute adaptive.sh script | ||
sh ${WSO2_SERVER_HOME}/bin/adaptive.sh "$@" | ||
|
||
# Check the exit status | ||
if [ $? -ne 0 ]; then | ||
echo "Error executing adaptive.sh" | ||
exit 1 | ||
fi | ||
|
||
# Execute docker-entrypoint.sh script | ||
sh /home/wso2carbon/docker-entrypoint.sh |
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,15 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
# Execute adaptive.sh script | ||
sh ${WSO2_SERVER_HOME}/bin/adaptive.sh "$@" | ||
|
||
# Check the exit status | ||
if [ $? -ne 0 ]; then | ||
echo "Error executing adaptive.sh" | ||
exit 1 | ||
fi | ||
|
||
# Execute docker-entrypoint.sh script | ||
sh /home/wso2carbon/docker-entrypoint.sh |