# README
Docker Builder
This a Builder implementation that builds Docker images inside Docker. So meta.
It does the following:
- Clones the GitHub repo.
- Pulls that last built docker image for the given branch.
- Builds a new image.
- Tags the new image with
latest
as well as the name of the branch and the git sha. - Pushes the image to the docker registry.
Usage
This image expects that the following files to be present:
/var/run/conveyor/.dockercfg
: .dockercfg file for credentials to use when pulling./var/run/conveyor/.ssh
: Should container anid_rsa
andid_rsa.pub
file which gives access to pull GitHub repos.
# Packages
No description provided by the author
# Functions
NewBuilder returns a new Builder backed by the docker client.
NewBuilderFromEnv returns a new Builder with a docker client configured from the standard Docker environment variables.
# Constants
DefaultBuilderImage is the docker image used to build docker images.
DefaultDataVolume is the default name of a container serving as a data volume for ssh keys and docker credentials.