Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
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
18 changes: 18 additions & 0 deletions library/glassfish
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Maintainers: David Matejcek <david.matejcek@omnifish.ee> (@dmatej),
Arjan Tijms <arjan.tijms@omnifish.ee> (@arjantijms),
Ondro Mihalyi <ondro.mihalyi@omnifish.ee> (@ondromih)
GitRepo: https://github.com/eclipse-ee4j/glassfish.docker.git
GitFetch: refs/heads/main
GitCommit: 6b6d0c78e65f0dfc219bdf19b4d2d2c92d732d75

Tags: 7.0.25, 7.0.25-jdk17, 7.0.25-jdk17-eclipse-temurin
Architectures: amd64, arm64v8
Directory: images/server/7.0.25

Tags: 7.1.0, 7.1.0-jdk21, 7.1.0-jdk21-eclipse-temurin
Architectures: amd64, arm64v8
Directory: images/server/7.1.0

Tags: latest, 8.0.0, 8.0.0-jdk21, 8.0.0-jdk21-eclipse-temurin
Architectures: amd64, arm64v8
Directory: images/server/8.0.0
3 changes: 3 additions & 0 deletions test/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ imageTests+=(
[ghost]='
ghost-basics
'
[glassfish]='
glassfish
'
[golang]='
golang-hello-world
'
Expand Down
27 changes: 27 additions & 0 deletions test/tests/glassfish/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash
set -eo pipefail

serverImage="$1"
containerId="$(docker run -d "$serverImage")"
trap "docker rm -vf $containerId > /dev/null" EXIT

waitForLogLine() {
timeout="$1";
logLine="$2";
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
}

waitForLogLine 60 '^\s+Eclipse GlassFish\s+[\.0-9]+';
echo "GlassFish started as ${containerId}"

docker stop "${containerId}" &
waitForLogLine 30 '^\s*Completed shutdown of GlassFish runtime';
echo "GlassFish stopped OK!"