Over a million developers have joined DZone.

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

Learn how our document data model can map directly to how you program your app, and native database features like secondary indexes, geospatial and text search give you full access to your data. Brought to you in partnership with MongoDB.

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.


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!

Discover when your data grows or your application performance demands increase, MongoDB Atlas allows you to scale out your deployment with an automated sharding process that ensures zero application downtime. Brought to you in partnership with MongoDB.

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.


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.


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

{{ parent.tldr }}

{{ parent.urlSource.name }}