198 Lotus blogs updated hourly. Who will post next? Home | Blogs | Search | About 
 
Latest 7 Posts
My Favorite IBM Developer Journeys
Wed, Oct 18th 2017 146
Fast On-Ramp for building Cloud-Native Apps
Tue, Oct 17th 2017 63
How to write your own Slack Chatbots in Javascript
Mon, Oct 16th 2017 72
Composing Serverless Apps with IBM Cloud Functions
Tue, Oct 10th 2017 22
Testing Watson Conversations in Slack
Thu, Oct 5th 2017 9
Pictures from code.talks
Wed, Oct 4th 2017 10
Deploying Apps to Kubernetes on the IBM Cloud with Helm
Tue, Sep 26th 2017 8
Top 10
My Favorite IBM Developer Journeys
Wed, Oct 18th 2017 146
How to write your own Slack Chatbots in Javascript
Mon, Oct 16th 2017 72
Fast On-Ramp for building Cloud-Native Apps
Tue, Oct 17th 2017 63
Composing Serverless Apps with IBM Cloud Functions
Tue, Oct 10th 2017 22
Deploying Angular 2 Apps to Bluemix
Tue, Apr 11th 2017 18
How to build Facebook Chatbots with IBM Watson
Thu, May 12th 2016 15
Customization of Node-RED on Bluemix
Mon, Jan 11th 2016 11
Getting started with Tensorflow on IBM Bluemix
Mon, Apr 3rd 2017 11
Sample of the Watson Retrieve and Rank Service
Tue, Jan 12th 2016 10
How to write JavaScript Actions for OpenWhisk on Bluemix
Wed, Mar 16th 2016 10


Deploying MicroProfile based Apps to IBM Cloud private
Twitter Google+ Facebook LinkedIn Addthis Email Gmail Flipboard Reddit Tumblr WhatsApp StumbleUpon Yammer Evernote Delicious
Niklas Heidloff    

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 deploy a sample application to IBM Cloud private.

IBM Cloud private is a Kubernetes based platform to run cloud-native applications on-premises. It also comes with a Docker image registry. For developers there is a community edition available to run everything in one virtual machine.

The example I’m using is a simple conference application originally provided by the MicroProfile developers and slightly changed by the IBM team to showcase IBM technologies like WebSphere Liberty which has been open sourced this week. My colleagues Animesh Singh and Ishan Gulhane have documented how to deploy this sample to Kubernetes on Bluemix public.

There are different approaches to deploy applications to IBM Cloud private. I’d like to blog later about the approach to use delivery pipelines. Below I describe how to deploy from a development machine via command line.

Most of the steps to deploy the sample to Bluemix public or IBM Cloud private are identical. So I only document the differences below.

The Microservice Builder Fabric can be installed via helm commands as documented or from the IBM Cloud private admin interface.

cloud-private-sample1

Before building the images some configuration needs to be done. The hosts file of the development machine needs to be changed to define the IP of the cluster. Additionally Docker needs to be configured to be able to access the Docker host on the virtual machine. This process is a little tricky, especially on Mac. In one terminal invoke these commands:

ssh cluster@192.168.178.36
cd /etc/docker/certs.d/mycluster:8500/
cp ca.crt /tmp/

In a second terminal run these commands:

sudo screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
mkdir /etc/docker/certs.d/
mkdir /etc/docker/certs.d/mycluster:8500/
cd /etc/docker/certs.d/mycluster:8500/
scp cluster@192.168.178.36:/tmp/ca.crt .

After this you should be able to access the Docker registry on IBM Cloud private (user: admin, pw: admin):

docker login mycluster:8500
docker build -t mycluster:8500/admin/microservice-vote-cloudant sample.microservicebuilder.vote
docker push mycluster:8500/admin/microservice-vote-cloudant

There is also a script to build and push all six images. If you want to use it run “./scripts/build_and_push_docker_images.sh mycluster:8500/admin”.

After the images have been pushed you can see them also in the IBM Cloud private admin interface.

cloud-private-sample2

Before the sample can be deployed, Kubernetes needs to be configured. Open the admin interface (e.g. https://192.168.178.36:8443) and choose ‘Configure Client’. Copy and paste these commands in your terminal. For example:

kubectl config set-cluster mycluster --server=https://192.168.178.36:8001 --insecure-skip-tls-verify=true
kubectl config set-context mycluster-context --cluster=mycluster
kubectl config set-credentials mycluster-user --token=eyJhbG......q_ATOQe-J2A
kubectl config set-context mycluster-context --user=mycluster-user --namespace=default
kubectl config use-context mycluster-context

cloud-private-sample3

‘kubectl create -f manifests’ starts the deployment which takes a couple of minutes. After this the sample application can be accessed, e.g. via http://192.168.178.36:30056/#/speakers.

Thanks a lot, again, to Ansgar Schmidt for helping me with the setup.

The post Deploying MicroProfile based Apps to IBM Cloud private appeared first on Niklas Heidloff.



---------------------
http://heidloff.net/article/microprofile-ibm-cloud-private-kubernetes
Sep 21, 2017
7 hits



Recent Blog Posts
146
My Favorite IBM Developer Journeys
Wed, Oct 18th 2017 3:12p   Niklas Heidloff
The team of developer advocates within IBM has created a new site with journeys for developers. Journeys are sample scenarios that are available as open source, well documented and easy to reuse and deploy. There are roughly 60 journeys right now and new ones are published regularly. Check out the journeys at developer.ibm.com/code/journey. Here are my favorite journeys: Make Java microservices resilient with Istio “Twelve-factor apps make a strong case for designing and implementing you
63
Fast On-Ramp for building Cloud-Native Apps
Tue, Oct 17th 2017 9:32a   Niklas Heidloff
In order for developers to get started quickly to build applications and deploy them on the IBM Cloud, new starter kits have been made available. Check out the new IBM Cloud App Service. You can choose from several template the type of application or microservice you want to build: Express.js Backend, Express.js React, Java MicroProfile, Java Spring Backend, Swift Kitura, Python Microservice and more. Additionally you can create new or select existing IBM Cloud services, for example the Watson s
72
How to write your own Slack Chatbots in Javascript
Mon, Oct 16th 2017 2:54p   Niklas Heidloff
Last week Ansgar Schmidt and I gave a session at Codemotion How to write your own Slack Chatbots in Javascript. Below are the slides with screenshots of our demos. We demonstrated how to write a Node.js application that uses Botkit to connect with Slack and that uses IBM Watson Conversation as natural language processing service. Get the code of our sample from GitHub. The post How to write your own Slack Chatbots in Javascript appeared first on Niklas Heidloff.
22
Composing Serverless Apps with IBM Cloud Functions
Tue, Oct 10th 2017 8:13p   Niklas Heidloff
Today at Serverlessconf IBM announced a new key capability (as IBM Research preview) of IBM Cloud Functions. With the new tool ‘Composer‘ apps can be created which contain multiple cloud functions. These apps coordinate the invocations of actions and the data flow. Compared to the previously available action sequences the new functionality is much more flexible. Cloud functions are typically rather simple and focussed on specific tasks which is why people often refer to cloud functio
9
Testing Watson Conversations in Slack
Thu, Oct 5th 2017 7:03a   Niklas Heidloff
Next week Ansgar Schmidt and I will give a session ‘How to write your own Slack Chatbots in Javascript‘ at codemotion. We will demonstrate how to connect Slack to Watson Conversation via the open source project botkit which leverages the Slack Real Time Messaging API. This works well for production bots, but requires some configuration first. For testing purposes there is an easier way to create a Slack app with a bot user and to add this to a Slack team. From the ‘Deploy’
10
Pictures from code.talks
Wed, Oct 4th 2017 1:33p   Niklas Heidloff
Last week I attended code.talks in Hamburg, Germany, which is a development conference with roughly 1500 attendees. As always it was a pleasure to listen to great speakers and to talk with developers at our booth. Below are some pictures. Location (Cinemaxx cinema): Inside the cinema: Our booth: Booth after setup: Our giveaways: Thomas’ session about Blockchain: Serverless session mentioning OpenWhisk: The post Pictures from code.talks appeared first on Niklas Heidloff.
8
Deploying Apps to Kubernetes on the IBM Cloud with Helm
Tue, Sep 26th 2017 8:46a   Niklas Heidloff
Helm is the package manager for Kubernetes. With Helm you can very easily deploy applications, tools and databases like MongoDB, PostgreSQL, WordPress and Apache Spark into your own Kubernetes clusters. Below is a brief description how to use Helm for the IBM Cloud Container service. Here is a short description of Helm and Helm Charts from the Helm home page: “Helm helps you manage Kubernetes applications. Helm Charts helps you define, install, and upgrade even the most complex Kubernetes
7
Deploying MicroProfile based Java Applications to Bluemix
Fri, Sep 22nd 2017 2:50p   Niklas Heidloff
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 Kubernet
7
Deploying MicroProfile based Apps to IBM Cloud private
Thu, Sep 21st 2017 2:30p   Niklas Heidloff
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 deploy a sample application to IBM Cloud private. IBM Cloud private is a Kubernetes based platform to run cloud-native applications on-premises. It also comes with a Docker image registry. For developers there is a community edition available to run everything in one virtual machine. The example I&
3
Watson Machine Learning Sample Walkthrough
Tue, Sep 19th 2017 3:37p   Niklas Heidloff
Last month IBM announced the general availability of Watson Machine Learning which can be used by data scientists to create models and it can be used by developers to run predictions from their applications. Below is a simple sample walkthrough. As sample scenario I’ve chosen the Titanic dataset to predict whether people would have survived based on their age, ticket class, sex and number of siblings and spouses aboard the Titanic. I picked this dataset because it seems to be used a lot in




Created and Maintained by Yancy Lent - About - Planet Lotus Blog - Advertising - Mobile Edition