Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

‘Micro’ Java EE on the Cloud with ‘Dockerized’ Payara

DZone's Guide to

‘Micro’ Java EE on the Cloud with ‘Dockerized’ Payara

The idea is to show you how easy it is to get up and running with Java EE on the cloud.

· DevOps Zone
Free Resource

The Nexus Suite is uniquely architected for a DevOps native world and creates value early in the development pipeline, provides precise contextual controls at every phase, and accelerates DevOps innovation with automation you can trust. Read how in this ebook.

Thankfully I don’t have to write much because I have a screen cast.. Yay ! My second one [ trying to get better at this ;-) ]

The idea is to show you how easy it is to get up and running with Java EE on the cloud. I decided to use Payara and its docker images because I particularly like its micro version. This should be applicable to any other dockerized Java EE server though e.g. Weblogic 12c.


Here is list of the commands for your reference

General Docker setup

  • sudo yum update
  • sudo yum install -y docker
  • sudo service docker start
  • sudo usermod -a -G docker ec2-user
  • docker info

‘Dockerized’ Payara setup

  • docker search payara
  • docker pull payaradocker/payara-micro:4.1.152.1.micro.oraclejdk8
  • docker run –name pmc -d -p 8080:8080 -i -t payaradocker/payara-micro:4.1.152.1.micro.oraclejdk8 /bin/bash
  • docker ps
  • docker attach –sig-proxy=false pmc
  • java -jar payara-micro-4.1.152.1.jar –port 8080 –deploy showcase-5.2.war

Useful links

Cheers amigos !

The DevOps Zone is brought to you in partnership with Sonatype Nexus.  See how the Nexus platform infuses precise open source component intelligence into the DevOps pipeline early, everywhere, and at scale. Read how in this ebook

Topics:
java ,devops

Published at DZone with permission of Abhishek Gupta, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}