Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

tutum-docker-glassfish

Base docker image to run a Glassfish 4.1 application server

Usage

To create the image bonelli/glassfish-4.1, execute the following command on the tutum-docker-glassfish folder:

docker build -t tutum/glassfish .

To run the image and bind to port :

docker run -d -p 4848:4848 -p 8080:8080 -p 8181:8181 -p 9009:9009 bonelli/glassfish-4.1

PS: 4848 (for administration), 8080 (for the HTTP listener), and 8181 (for the HTTPS listener), and 9009 (for tcp jpda debug)

The first time that you run your container, a new user admin with all privileges
will be created in Glassfish with a random password. To get the password, check the logs
of the container by running:

docker logs <CONTAINER_ID>

You will see an output like the following:

========================================================================
You can now connect to this Glassfish server using:

    admin:b1uKcRK3r6SF

Please remember to change the above password as soon as possible!
========================================================================

In this case, b1uKcRK3r6SF 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 for the admin account

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" bonelli/glassfish-4.1

You can now test your deployment:

http://127.0.0.1:8080/

Done!

Starting the domain for debugging

If you want to start the domain with the --debug=true option you can
set the environment variable DEBUG to true:
docker run -d -p 4848:4848 -p 8080:8080 -p 9009:9009 -e DEBUG="true" bonelli/glassfish-4.1
This should allow for debugger connections on port 9009.

by http://www.tutum.co

modded for jdk 8 and gf 4.1 by Fedechicco

Docker Pull Command
Owner
bonelli
Source Repository

Comments (3)
dbaxps
2 years ago

dbaxps
2 years ago

git clone https://github.com/bonelli/tutum-docker-glassfish.git<br>
cd tutum-docker-glassfish<br>
UPDATED run.sh with asadmin start-database/stop-database *<br>
docker build -t tutum/glassfish .<br>
Successfully built tutum/glassfish<br>
Nova-Doker Container exits with message<br>
docker logs d3d0acb78165<br>
Starting database in Network Server mode on host 0.0.0.0 and port 1527.
Unable to start database. Please check log in /opt/glassfish4/glassfish/databases/derby.log.
Command start-database failed.

dbaxps
2 years ago

This image doesn't allow me to ssh to container and run :-
asadmin>start-database
Glusfish comes up with no JPA.
Am I missing something here or is it possible to fix problem, like it's done
for image arahman/docker-oracle-xe-11g ?