Kubernetes with OpenShift World Tour: Get hands-on experience and build applications fast! Find a workshop!

Deploy microservices hosted on the LinuxONE Community Cloud


Software companies large and small are embracing microservices as a superior approach to application development and management. With microservices, a complex application is broken up into a series of smaller, more specialized services. Microservices then communicate with each other across common interfaces (like APIs) and REST interfaces (like HTTP). Using microservices, development teams can focus on updating specific areas of an application without affecting the application as a whole, resulting in faster development, testing, and deployment. This code pattern demonstrates how easily you can run microservices hosted on the LinuxONE Community Cloud.


Containerization allows developers to create and deploy applications faster and more securely. With traditional methods, code is developed in a specific computing environment, which, when transferred to a new location, often results in bugs and errors. Containerization eliminates this problem by bundling the application code together with the related configuration files, libraries, and dependencies required for it to run. This single package of software, known as a container, is abstracted away from the host operating system, and hence it stands alone and becomes portable — able to run across any platform or cloud, free of issues.

One tool that allows you to run containers is Docker, a set of open source platform as a service (PaaS) products that are designed to make it easier to create, deploy, and run applications by using containers. LinuxONE was built for open source, so you can harness the agility of the open revolution on the secure, scalable, and high-performing Linux server. In this code pattern, we show you how to run open source Db2 and Node.js Docker images on LinuxONE using Docker.



  1. Register a Red Hat Enterprise Linux instance on the LinuxONE Community Cloud.
  2. Install Docker.
  3. Create a Db2 database container using Docker.
  4. Populate the database container with movie records.
  5. Deploy a Node.js app container that will expose the Db2 database container to an API restful service.
  6. Test the environment using postman and/or your web browser.


Find the detailed steps for this pattern in the README file. These steps show you how to:

  1. Clone the Db2 repo.
  2. Set up your Db2 container.
  3. Clone the Node.js app repo.
  4. Build and run Node.js app.
  5. Test the environment.
Lehlogonolo Masubelele
Phila Dlamini
Elvin Maditsi
Colin Page