-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added simple test for glassfish and updated commit
Signed-off-by: David Matějček <[email protected]>
- Loading branch information
Showing
3 changed files
with
25 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ Maintainers: David Matejcek <[email protected]> (@dmatej), | |
Ondro Mihalyi <[email protected]> (@ondromih) | ||
GitRepo: https://github.com/OmniFish-EE/docker-library-glassfish.git | ||
GitFetch: refs/heads/main | ||
GitCommit: f7c6e852939b321ca1f9bb2ddeacab4df2ed0bc1 | ||
GitCommit: 12efd43d7633d89cb28edf3a5b0cf3c12ac31c1f | ||
|
||
Tags: 7.0.0, 7.0.0-jdk17, 7.0.0-jdk17-eclipse-temurin | ||
Architectures: amd64 | ||
|
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 |
---|---|---|
|
@@ -76,6 +76,9 @@ imageTests+=( | |
[ghost]=' | ||
ghost-basics | ||
' | ||
[glassfish]=' | ||
glassfish | ||
' | ||
[golang]=' | ||
golang-hello-world | ||
' | ||
|
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,21 @@ | ||
#!/bin/bash | ||
set -eo pipefail | ||
|
||
serverImage="$1" | ||
containerId="$(docker run -d "$serverImage")" | ||
trap "docker rm -vf $containerId > /dev/null" EXIT | ||
|
||
logLine='^\s+Eclipse GlassFish\s+[\.0-9]+' | ||
timeout=10 | ||
|
||
until docker logs $containerId 2>&1 | grep -q -E "$logLine" | ||
do | ||
if [ $timeout -eq 0 ] | ||
then | ||
exit 100; | ||
fi | ||
sleep 1 | ||
timeout=$((timeout-1)) | ||
done | ||
|
||
echo "Success!" |