Sign inSign up

lastbackend/glassfish

By lastbackend

•Updated almost 11 years ago

Image
0

171

lastbackend/glassfish repository overview

⁠lb-docker-glassfish

Base docker image to run a Glassfish 4.0 application server

⁠Usage

To create the image lastbackend/glassfish, execute the following command on the lb-docker-glassfish folder:

docker build -t lastbackend/glassfish .

To run the image and bind to port :

docker run -d -p 4848:4848 -p 8080:8080 -p 8181:8181 lastbackend/glassfish

PS: 4848 (for administration), 8080 (for the HTTP listener), and 8181 (for the HTTPS listener)

The first time that you run your container, a new random password will be set. To get the password, check the logs of the container by running:

docker logs <CONTAINER_ID>

You will see an output like the following:

	----------------------------- Glassfish ----------------------------
	  +-++-+ admin:x6A2lf95orICrknznA0UNyLz
	  | LB | 
	  +-++-+ Please remember to change the above password!
	--------------------------------------------------------------------

In this case, x6A2lf95orICrknznA0UNyLz is the password allocated to the admin user.

You can now login to you admin console to configure your Glassfish server:

http://127.0.0.1:4848/

⁠Setting a specific password

If you want to use a preset password instead of a random generated one, you can set the environment variable GLASSFISH_PASS to your specific password when running the container:

docker run -d -p 4848:4848 -p 8080:8080 -e GLASSFISH_PASS="mypass" lastbackend/glassfish

	----------------------------- Glassfish ----------------------------
	  +-++-+ admin:mypass
	  | LB | 
	  +-++-+ Please remember to change the above password!
	--------------------------------------------------------------------

If you want to disable password authentication, you can set MEMCACHED_PASS to **None**

You can now test your deployment:

http://127.0.0.1:8080/

by http://www.lastbackend.com⁠

Tag summary

Content type

Image

Digest

sha256:5e4968a8e…

Size

311.1 MB

Last updated

almost 11 years ago

docker pull lastbackend/glassfish:4.0