-
Notifications
You must be signed in to change notification settings - Fork 6
Home
The Docker images are available at the following coordinates:
- GlassFish Server Full Profile:
ghcr.io/eclipse-ee4j/glassfish - Embedded GlassFish All:
ghcr.io/eclipse-ee4j/embedded-glassfish
More info about the images in the container registry:
- GlassFish Server Full Profile: https://ghcr.io/eclipse-ee4j/glassfish
- Embedded GlassFish All: https://ghcr.io/eclipse-ee4j/embedded-glassfish
Images are available for the amd64 and arm64 architectures.
docker run -p 8080:8080 -p 4848:4848 ghcr.io/eclipse-ee4j/glassfish
Deploy an application at startup:
docker run -p 8080:8080 -p 4848:4848 -v /path/to/application.war:/deploy/application.war ghcr.io/eclipse-ee4j/glassfish
-
/path/to/application.waris local path to the application -
/deploy/application.waris the path in the container
Open the following URLs in the browser:
- Welcome screen (HTTP listener): http://localhost:8080
-
Administration Console: https://localhost:4848 - log in using
admin/admin(User name/Password)
For more info about using GlassFish Server in the Docker image, see Using GlassFish Server with the docker Command
To run an application in /applications/myapp.war with Embedded GlassFish:
docker run -p 8080:8080 -v /applications/myapp.war:/deploy/myapp.war ghcr.io/eclipse-ee4j/glassfish runembedded apps/myapp.war
Or to deploy all applications in the /applications directory:
docker run -p 8080:8080 -v /applications:/deploy ghcr.io/eclipse-ee4j/embedded-glassfish
NOTE: Before 7.1.0, Embedded GlassFish used to be started using the GlassFish Server Docker image, using the runembedded argument. This is not supported anymore, the separate Embedded GlassFish Docker image should be used instead.
For more info about using Embedded GlassFish in the Docker image, see Using Embedded GlassFish with the docker Command
new GenericContainer<>("ghcr.io/eclipse-ee4j/glassfish:latest")
.withExposedPorts(8080, 4848)
.withCopyFileToContainer(MountableFile.forHostPath(applicationPath),
"/deploy/" + APP_FILENAME)
.waitingFor(
Wait.forLogMessage(".*Successfully autodeployed.*", 1)
.withStartupTimeout(Duration.ofSeconds(10L)))
;
- Examples of the docker image usage - deploy apps, configure, use in Test containers, etc.
- Read Eclipse GlassFish Documentation
- Browse Eclipse GlassFish own tests
- They don't use the docker image, however these tests use similar principles.
- These tests use
glassfish-itest-toolsinstead of docker. - Eclipse GlassFish Application Tests are covering application compatibility with GlassFish.
-
Eclipse GlassFish Admin Tests are covering usage of
asadminand the REST Admin Interface.
- GlassFish Mailing List for questions
- GlassFish GitHub for well defined and repeatable issues
- Other GlassFish community channels
- OmniFish Commercial Support for paid active help and other services
Eclipse GlassFish 6 contains many changes, however some of important start/stop issues were fixed with redesign and refactoring done for Eclipse GlassFish 7. Simply said, 6 is not ready for Docker.
Repository contains copy-pastes. The reason is that Docker Hub Container Image Library uses just and only Dockerfiles from this repository, but before we push them out, we already have to know that they are correct and we have to commit them. DockerHub then links its distribution image to the commit id in this repository.