Awesome
Taal
Simple build service on the cloud
Setup
Deploy to Heroku, and setup your web and worker dynos, for example:
heroku ps:scale web=1 worker=1
heroku ps:resize web=1X worker=PX
We used XL dynos (PX size) to have a better performance in building process, the worker dyno can be disabled when isn't used to avoid excesive costs.
Setup required environment variables:
heroku config:set AWS_ACCESS_KEY_ID=... AWS_SECRET_ACCESS_KEY=... AWS_S3_BUCKET=...
Setup database and queue:
heroku run bundle exec rake db:migrate
heroku run bundle exec rake qc:create
Usage
Queue a new build task on server
curl -X POST -H "Content-Type: application/json" -d '{"build":{"script":"https://gist.github.com/guilleiguaran/8936760/raw/4a8257f2b15ea967abfd41380c93c84d3da3ad99/gnugo.sh"}}' http://taal-builder.herokuapp.com/builds
You can check the GNU Go example building script here
Check the status of a existing build on server
curl -H "Content-Type: application/json" http://taal-builder.herokuapp.com/builds/1
Note: A CLI app for queueing and status checking will be introduced soon :trollface:.
License
MIT License
Author
Guillermo Iguaran guilleiguaran@gmail.com