Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GlassFish Image is back! #14107

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
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
54 changes: 54 additions & 0 deletions library/glassfish
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
Maintainers: David Matejcek <[email protected]> (@dmatej),
Arjan Tijms <[email protected]> (@arjantijms),
Ondro Mihalyi <[email protected]> (@ondromih)
GitRepo: https://github.com/eclipse-ee4j/glassfish.docker.git
GitFetch: refs/heads/main
GitCommit: 4507192e8332614e653d9a0394eb5c94955c1bfe

Tags: 7.0.8, 7.0.8-jdk17, 7.0.8-jdk17-eclipse-temurin
Architectures: amd64, arm64v8
Directory: 7.0.8

Tags: 7.0.9, 7.0.9-jdk17, 7.0.9-jdk17-eclipse-temurin
Architectures: amd64, arm64v8
Directory: 7.0.9

Tags: 7.0.10, 7.0.10-jdk17, 7.0.10-jdk17-eclipse-temurin
Architectures: amd64, arm64v8
Directory: 7.0.10

Tags: 7.0.11, 7.0.11-jdk17, 7.0.11-jdk17-eclipse-temurin
Architectures: amd64, arm64v8
Directory: 7.0.11

Tags: 7.0.12, 7.0.12-jdk17, 7.0.12-jdk17-eclipse-temurin
Architectures: amd64, arm64v8
Directory: 7.0.12

Tags: 7.0.13, 7.0.13-jdk17, 7.0.13-jdk17-eclipse-temurin
Architectures: amd64, arm64v8
Directory: 7.0.13

Tags: 7.0.14, 7.0.14-jdk17, 7.0.14-jdk17-eclipse-temurin
Architectures: amd64, arm64v8
Directory: 7.0.14

Tags: 7.0.15, 7.0.15-jdk17, 7.0.15-jdk17-eclipse-temurin
Architectures: amd64, arm64v8
Directory: 7.0.15

Tags: 7.0.16, 7.0.16-jdk17, 7.0.16-jdk17-eclipse-temurin
Architectures: amd64, arm64v8
Directory: 7.0.16

Tags: 7.0.17, 7.0.17-jdk17, 7.0.17-jdk17-eclipse-temurin
Architectures: amd64, arm64v8
Directory: 7.0.17

Tags: 7.0.18, 7.0.18-jdk17, 7.0.18-jdk17-eclipse-temurin
Architectures: amd64, arm64v8
Directory: 7.0.18

Tags: latest, 7.0.19, 7.0.19-jdk17, 7.0.19-jdk17-eclipse-temurin
Architectures: amd64, arm64v8
Directory: 7.0.19
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!"