There’re some general ideas in all scripts, so let’s overview ’em:
From build machine we’ll use AWS, BitBucket and DockerHub and I want to automate auth process.
Now it’s time to setup build machine.
I’ll use Ubuntu instead of Amazon Linux because of problems with AWS CLI installing.
Hope it will be fixed soon, but Ubuntu is quiet good for us too.
It might be a bit different from “classic” definition, but let’s call build & deploy logical steps “pipelines”.
Every logical step is put in separate function to make things simple & clear.
I’ll list and describe logical steps (functions sequence) for all actions for you:
In this part I’ll create quite simple app and this is “developer” piece of work.
We need to install node, npm & meteor on work machine:
brew install nodejs
curl https://install.meteor.com/ | sh
You can register free trial account on compose.io and start using it in a few minutes – that’s really awesome service!
In this example we’ll use stack consisting of:
Framework: Meteor, great new platform;
Database: mongoDB hosted on compose.io SaaS to show you how to work with external services;
Git repo hosting: BitBucket, because nowadays it’s more common than AWS CodeCommit;
Docker repo hosting: DockerHub, because it’s more common than AWS EC2 Container Registry.
Nowadays applications can be created really fast, but Ops teams are still slow.
It this article I’ll show an example how to manage this situation.