Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Using Docker To Deploy Bluechatter To Bluemix

DZone's Guide to

Using Docker To Deploy Bluechatter To Bluemix

Some notes on how to deploy a simple Node.js application.

· Cloud Zone
Free Resource

Site24x7 - Full stack It Infrastructure Monitoring from the cloud. Sign up for free trial.

This week I gave a presentation at the local Bluemix meetup group on Docker containers and Bluemix.

For the demonstration during the presentation I decided I would use one of the apps I first wrote as a Bluemix developer advocateBluechatter.  Bluechatter is a very basic IRC/chat like application written in Node.js.  It uses the pub/sub feature of Redis to distribute chat messages amongst various instances of the application, so it can scale very well.  For the meetup demonstration I wanted to show how you can deploy the Bluechatter application as a Docker container in Bluemix.

bluemix_docker

To do this I added both a Dockerfile and a Docker Compose YAML file to the Bluechatter repository on GitHub.

If you would like to run Bluechatter in a Docker container on your local machine, I suggest you use Docker Compose, as it will start both a container running Redis and a container running Bluechatter.  See the README for instructions on how to do this.  If you want to start Bluechatter as a Docker container running in Bluemix than you have two options.  The first and easiest option is to use the Deploy To Bluemix button.  Clicking the button in the README (or just click here!) will setup a Git repo in IBM DevOps Services as well as configure a deployment pipeline to deploy the application as both a Cloud Foundry application and a Docker container on Bluemix.  Your second option is to deploy a Bluechatter Docker image to Bluemix using the CLI.  Again the README has instructions on how to do that as well.

So if you are looking for a sample app to get started with Docker containers on Bluemix check out Bluechatter, it is simple, strait forward, and easy to build upon!


Site24x7 - Full stack It Infrastructure Monitoring from the cloud. Sign up for free trial.

Topics:
docker ,bluemix

Published at DZone with permission of Ryan Baxter, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}