Deploy microservices hosted on the LinuxONE Community Cloud
Deploy a containerized IBM Db2 Movie Database with Node.js API Restful Service
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.
- Register a Red Hat Enterprise Linux instance on the LinuxONE Community Cloud.
- Install Docker.
- Create a Db2 database container using Docker.
- Populate the database container with movie records.
- Deploy a Node.js app container that will expose the Db2 database container to an API restful service.
- 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:
- Clone the Db2 repo.
- Set up your Db2 container.
- Clone the Node.js app repo.
- Build and run Node.js app.
- Test the environment.