Scripted deployments in Elastic Beanstalk
António Gomes | October 29, 2018
With the advent of cloud computing services, hosting and managing a platform has never been easier. Nowadays, aspects like servers, networking, storage, and virtualization are handled by a provider who rents a piece of their infrastructure (huge data centers, scattered around the world). They also offer several tools to manage them, lifting the burden of having to hire multiple human and non-human resources to accommodate a company web platform.
Here at MindProber, we use AWS as our cloud hosting provider, taking advantage of their PaaS (platform as a service) model to establish the applications that comprise our platform.
When we first started, we chose to follow the Continuous Integration development practice, in which every iteration is integrated with our environments, following a semi-automated workflow (we have manual testing in our staging environment before persisting them into production).
When one of our developers finishes the development of a feature or a bugfix, their changes are merged (through a pull-request) into the staging branch, triggering a number of automated procedures that will result in an updated version of that component in the staging environment. These kind of procedures are very well defined and suited for automation.
This tutorial should work with any application, developed in any language, that is compatible with the following technologies:
Docker (to containerize the app)
I’ll use Node.js to script the tasks and I’ll also assume that you already know how to install it using nvm (one of these scripts requires Node.js 7.6 or higher, because of the await/async keywords).
Keep in mind that there are many different ways to accomplish what we have done, with this method. This story serves only to share some knowledge that could be useful for anyone out there, and not to shove a methodology on the community.
If you want to learn with us read the full article at Medium.
You may also like…
The potential in James One
James One was designed and released to be used by panelists. It has been doing great for the last 8 months having acquired biometric data in thousands of study participations. It measures heart rate – the number of times your heart beats per minute – an important index in the study of emotions. In addition, […]
Your Halloween nightmare was …
Halloween is the advertising prelude before the apotheotic Christmas season, where advertisement and entertainment investment across the world, particularly the US, goes sky high. This year, at MindProber, we wanted to know which is the best trailer of the season. Well, maybe not the best, but the most thrilling of this Halloween! Methodology We tested […]
Interpreting MindProber’s behavioral heatmaps
After dissecting the timeline results from our recent Moto GP Study, let’s explore a new technology we are working on, striving to bring our clients new and better approaches to explore their content. This was the first live test of our new behavioral heatmap tool, a simple yet powerful feature that can highlight the most […]