Menu

Deploying MicroProfile based Java Applications to Bluemix

Eclipse MicroProfile is an open source project to optimize Enterprise Java for microservices architectures. MicroProfile based applications can be deployed to Kubernetes. This article describes how to build microservices via the Microservice Builder and how to deploy them to Bluemix.

The Microservice Builder provides functionality to easily create new Java based microservices. Below is a quick walkthrough how to create new microservices, how to run them locally and how to deploy them to Kubernetes on Bluemix public. You can find more information on the Microservice Builder landing page.

To create a new project install the Bluemix CLI and run these commands:

bx plugin install -r bluemix dev
bx dev create

After this you can change the starter template with your IDE of choice. Here is a sample project that contains the generated code.

In order to run the microservice locally (http://localhost:9080) run these commands.

bx dev build
bx dev run

Before deploying the microservice to Bluemix, you need to login with the CLI: