Building My Odroid-C2 Docker Cloud Part 4 – Application Deployment

Web Application with Database Backend

So far, I’ve only deployed trivial application on my docker cluster. In this article, I want to explore the level of difficulty in deploying a more realistic application. Being a lazy person who does not want to create a web application from scratch, I searched the Internet for a ready-made web application using a database backend as this kind of application is commonly deployed in the production environments. I came across a WEB4J sample application called the “Fish and Chips Club” which should do the job. From now on, I am going to refer to this application as “Fish”. This application includes features to:

  • edit club members
  • edit local restaurants
  • edit ratings of each restaurant
  • add new lunches (a given restaurant on a given day)
  • RSVP for each upcoming lunch
  • interact using a simple discussion board
  • produce simple reports
  • provide a simple search page

And it uses 3 databases running on MySQL. You can find out more about how to configure this application here.

The disadvantage of using ARM64 architecture machines like ODROID-C2 is that you don’t have that many docker images readily available to you on Docker Hub to choose from like INTEL-based machines. I can find only 1 MySQL docker image and no Apache Tomcat images at all! And this application requires Tomcat to run. However, this is not a showstopper as I can always create my own docker image!

In the following sections, I am going to deploy MySQL and Fish in different ways and assess their pros and cons. It will be a great learning experience for me as, like most of you, I am new to this too ;-) Continue reading Building My Odroid-C2 Docker Cloud Part 4 – Application Deployment