jenkins-raspberri-pi-1.png

The Cloud Application Manager Rocket™ is one of two winners from the official Cloud Application Manager Desk Decor Competition. Created by the Cloud Application Manager product team, Alex and Lavanya, our CTO Alberto and designer Matt, we knew from the beginning, they would be winners (cough CTO on team cough); but more importantly, we also discovered that Cloud Application Manager + Jenkins + Raspberry Pi = Awesome.

If you haven’t had a chance to see the homepage of the Cloud Application Manager website, then you’re probably wondering where they got the idea. But since you have seen the Cloud Application Manager website, then you know that the mission was to create a life size version of the scrolling animation on our homepage.

But in this version of the Cloud Application Manager Rocket™ there is a twist, it’s connected to our production deployment Jenkins build job! Internet geeks, try and maintain composure here – but yes – the rocket deploys every time we deploy Cloud Application Manager to production, which is several times a day.

How It is Built

There are three tools that make the Cloud Application Manager Deployment Rocket a reality.

  1. Cloud Application Manager, of course, to reinstall the instance that manages our Raspberry PI device.
  2. A Raspberry PI to control the stepper.
  3. And our trusty friend Jenkins to trigger the reinstallation of the instance that initiates the Rocket and our production deployment.

Step 1: The Rocket & Cloud

Building the clouds and the rocket were arguably the easiest tasks, because they didn’t require any scripting, advanced hardware or integrations, but they did require Legos amongst construction materials that you’d find in a 3rd grade classroom.

The entire rocket was custom built from a Rocket Lego kit. It measures an impressive 4 whole inches in real life. The clouds are perhaps the least exciting piece of the puzzle and are made out of posterboard.

Step 2: The Raspberry PI Box

The Raspberry PI Box in Cloud Application Manager is where the magic really happens, and no, sadly it’s not the kind you can eat. On the hardware side, we bought Raspberry PI that connects to WiFi and stepper motor so we could control the exact number of rotations, and hence, the distance that the Cloud Application Manager Rocket Deploys.

The Deployment Process (the rocket, not the product) is triggered when we deploy Cloud Application Manager (the product, not the rocket) to production. In the Jenkins build job that re-installs our production instances, we include a build step that triggers the reinstallation of our Raspberry PI Box. All this is made possible by our extremely powerful and convenient Jenkins Plugin which you can learn more about here.

jenkins-raspberri-pi-2.png

Arguably the most important part of the script, which is written in Python, is what we print in the logs when the instance successfully re-installs.

jenkins-raspberri-pi-3.png

Looking closer at the Box, there are only two variables, a WAV file and a steps variable. In the post_configure script, we load three python modules to make the Cloud Application Manager Rocket™ possible. The first is RPi.GPIO which provides a class to control the GPIO (general purpose ins and outs) on the Raspberry Pi. The second is time, a python module that provides various time related functions and is used to time the various elements of the Cloud Application Manager Rocket ™. The last module is called called pygame.mixer which allows us to trigger sound effects throughout the deployment process.

In the script, which you can see here you can see how we execute actions such as the Raspberry PI blinking, steps up and down, and the triggering of multiple WAV files throughout the entire process.

The Final Product

Now that you know how the Cloud Application Manager Rocket™ works, you’re probably curious about what this little guy looks like while in action. Luckily there is a “high quality” YouTube video for your convenience. Not only does the Cloud Application Manager Rocket ™ launch into posterboard clouds (as explained previously) but it also comes equipped with quite a unique and unoriginal victory theme song. Can you guess which one?

…Don’t Stop Believing By Journey.

And so folks, there you have it, the Cloud Application Manager Rocket™… mind blowing, isn’t it?

Want to Learn More About Cloud Application Manager and ElasticKube?

Cloud Application Manager is a powerful, scalable platform for deploying applications into production across any cloud infrastructure – private, public or hosted. It provides interactive visualization to automate application provisioning, including configuration, deployment, scaling, updating and migration of applications in real-time. Offering two approaches to cloud orchestration — Cloud Application Manager and ElasticKube — enterprise IT and developers alike can benefit from multi-cloud flexibility.

Explore ElasticKube by visiting GitHub (curl -s https://elastickube.com | bash).

Visit the Cloud Application Manager product page to learn more.