Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
# A build hook for managing a build-pipeline on a system running docker
# containers. This python script is inteded to be run in tandem with the
# `hooked` python module, to provide a post-commit hook to build your app
# from a Dockerfile, and cycle the running container with the freshly built
# image.
#
# This script does nothing with 'container management' - meaning you *will*
# flood your server with old container images. Cleanup is expected to be