DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Coding
  3. Java
  4. Deploying Java EE Apps to IBM Containers

Deploying Java EE Apps to IBM Containers

Do you have a Java EE application which is running successfully on your laptop and now you want to run it in a Docker container? Maybe you then want to take that container and deploy it to IBM Containers? What if that application requires access to a database? The following video tutorials can help you in getting started.

Kavi Suresh user avatar by
Kavi Suresh
·
Apr. 08, 16 · Tutorial
Like (3)
Save
Tweet
Share
5.11K Views

Join the DZone community and get the full member experience.

Join For Free

Do you have a Java EE application which is running successfully on your laptop and now you want to run it in a Docker container? Maybe you then want to take that container and deploy it to IBM Containers? What if that application requires access to a database?

The following videos can help you in getting started.

The first video demonstrates how to extend the websphere-liberty:kernel Docker image available in the Docker Hub public registry to build a new image. The new image adds the DayTrader sample application and the WebSphere Liberty features that it requires. DayTrader requires access to a DB2 database which, in this first scenario, is also running on the local machine.

Now we have learned how to package the application as a Docker image. Let’s see how we can take that same image and run it on IBM Containers, part of IBM Bluemix.

The following video demonstrates how to create a Secure Gateway Service in Bluemix and configure that with the DB2 database running on an on-premise system. The DayTrader application is then pushed to the IBM Containers registry and run. The application accesses the on-premise DB2 database via the Secure Gateway Service. Note that, in this video, an application is used to bind the Secure Gateway service to the container, but this step is no longer required. It is now possible to bind the service directly to the container when the container is created.

We have learned how to run the DayTrader application in IBM Containers with DB2 running on-premise. Now let’s run DB2 also in a container.

The final video demonstrates how to pull the websphere-liberty:kernel and ibmcom/db2express-c docker images from Docker Hub and build a new WebSphere Liberty image with the DayTrader application. The Liberty and DB2 containers share a network so that they can communicate with each other.


Docker (software) Java EE application Java (programming language) app Db2 Database

Published at DZone with permission of Kavi Suresh, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Beginners’ Guide to Run a Linux Server Securely
  • Continuous Development: Building the Thing Right, to Build the Right Thing
  • 7 Awesome Libraries for Java Unit and Integration Testing
  • Easy Smart Contract Debugging With Truffle’s Console.log

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: