Skip to content

thorsager/docker-glassfish

Repository files navigation

Glassfish

This Dockerfile creates an image that will run Glassfish. It is to be used as the basis for thin Web-application images.

The is a twist though. To control the behaviour of the applications Environment variables will be added to Glassfish System.properties.

All environment variables defined in the container at execution of entrypoint, with a name starting with GF_ENV_, will be transferred to the Glassfish System.properties, without the GF_ENV_ prefix.

  $ export GF_ENV_NAME=Pablo

Would be available as:

  System.getProperty("NAME");

The System.properties can also be referenced in resources defined in domain.xml added by asadmin

Admin

The admin-password for remote admin of the GlassFish is glassfish this cannot be change at runtime a new image must be build for this to be altered.

Debugging

If the DEBUG environment variable is set (non-zero length) debug will be enabled and debugger will be exposed on port 9009.

About

My way of running glassfish in docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published