This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |