Fast and easy docker builds with the simplest 'git push' workflow
Often when I’m working outside as a digital nomad have pretty poor connection. This is especially frustrating when you have to build docker containers and push them to your registry since they can quite big in terms of size.
In order to counter this, I wrote a small script that builds a container on your build server upon a git push in similar fashion how Heroku works.
It simply executes a bin/build
file in your repo on git push so you can add things like vulnerability checking, testing or even deployment of said container.
This way you only need to push your code changes and the rest will be done on the server with a bad ass connection.
All you need is a fresh Ubuntu box with git and docker installed and access to your registry.