Docker Build Scripts & Images now available for Payara Server!

Photo of David Winters by David Winters

docker_resized.jpgThis is an old article - for the up-to-date Payara Docker images and more information,  see here.


 

Payara 4.1.152.1 Docker images are now available for download from the docker public repository. Currently, there are 2 Docker images available for download.

 

See the Payara Server & Payara Micro Docker Images here!

 

One of these images provides the latest official release for Payara full profile and one for Payara micro. Both images are built on top of ubuntu and the latest Oracle JDK 8 version.
Furthermore, we have made available the Docker build files and Docker build image scripts for Payara 4.1.152.1 full profile on Oracle JDK 8 and Open JDK 8 along with Payara Micro 4.1.152.1 on our Payara Github account here. Instructions to build a new Payara Docker image and to create a new Payara Docker container are contained in each relevant readme file.

 

Github

 

Figure 1: Payara Github Docker repository containing the relevant Docker build files.We will now discuss how you can access and run the Payara Docker instances from your own environment. I am assuming here you have Docker installed and setup within your own environment.Firstly open up a new terminal window and search for Payara Docker images in the Docker public repository by following command as in Figure 2 below: 

sudo docker search payara

We now need to download the relevant Payara Docker image from this repository by executing the following command as in Figure 3 below:
 
sudo docker pull payaradocker/payara-full:4.1.152.1.oraclejdk8

If you wish to download the Payara micro 4.1.1.52.1 image then execute this command as in Figure 4:

sudo docker pull payaradocker/payara-micro:4.1.152.1.micro.oraclejdk8

sudo docker run -i -t payaradocker/payara-micro:4.1.152.1.micro.oraclejdk8 /bin/bash

To start a new Docker container based on the Payara full image we have just downloaded, we execute the command below as per Figure 5. The Payara Docker container will now be started and you will be taken by default to the Payara bin directory to allow you to administer Payara.

 sudo docker run -i  -t payaradocker/payara-full:4.1.152.1.oraclejdk8 /bin/bash

Figure 6 shows the login screenshot for the Payara DAS console which is accessed from your host machine’s browser. You should note here that I am using the domain named “payaradomain” which is bundled with Payara 4.1.152.1 which has secure-admin enabled by default for the DAS. Since I wish to access the DAS from my host machine, secure-admin has to be enabled. The username and password to login into the DAS console for the domain payardomain is: admin/glassfish

 

Docker public repository

Figure 2: Search results for Payara Docker images in the Docker public repository.

Payara Full Profile DockerFigure 3: Download Payara Full Profile Docker Image

Payara Micro Docker ImageFigure 4: Download Payara Micro Docker Image.

PayaradomainFigure 5: Run the Docker image and start the DAS for the domain named payaradomain.

Payara DAS console login pageFigure 6: The Payara DAS console login page from the host machine browser.

 

 

 

Comments