Sign inSign up

omnifish/glassfish

By omnifish

•Updated over 2 years ago

Eclipse GlassFish Docker images provided by OmniFish.

Image
2

3.1K

omnifish/glassfish repository overview

⁠Eclipse GlassFish Docker images (by OmniFish)

Source code repository: https://github.com/OmniFish-EE/docker-library-glassfish⁠

⁠Quick start

⁠Start GlassFish

Run GlassFish with the following command:

docker run -p 8080:8080 -p 4848:4848 omnifish/glassfish:latest

Open the following URLs in the browser:

⁠Stop GlassFish

Stop GlassFish with the following command:

docker stop CONTAINER_ID

CONTAINER_ID can be found from the output of the following command:

docker ps

⁠Run an application with GlassFish in Docker

You can run an application located in your filesystem with GlassFIsh in a Docker container.

Follow these steps:

  1. Create an empty directory on your filesystem, e.g. /deployment
  2. Copy the application package to this directory - so that it's for example on the path /deployment/application.war
  3. Run the following command to start GlassFish in Docker with your application, where /deployments is path to the directory created in step 1:
docker run -p 8080:8080 -p 4848:4848 -v /deployments:/opt/glassfish7/glassfish/domains/domain1/autodeploy omnifish/glassfish:latest

Then you can open the application in the browser with:

The context root (application) is derived from the name of the application file (e.g. application.war would deployed under the application context root). If your application file has a different name, please adjust the contest root in the URL accordingly.

Tag summary

Content type

Image

Digest

sha256:4f3959699…

Size

412.8 MB

Last updated

over 2 years ago

docker pull omnifish/glassfish