Docker Template

Build Test Code Dependency

Docker Template is an organization and templating system for Docker images. A way to make your life easier and more organized by having repositories within repositories that share data among multiple sets of images. It is currently used to build all the images for Jekyll and EnvyGeeks. To see the full docs instead of synapsis and snippets please visit https://github.com/envygeeks/docker-template/tree/master/docs

Installation

sudo gem install docker-template  

From Gemfile

gem "docker-template", {
  :github => "envygeeks/docker-template"
}

Commands

Build

You can build a template by sending either image, user/image, image:tag or user/image:tag: docker-template build image. Build supports the following arguments:

Usage:
  docker-template build [REPOS [OPTS]]

Options:
  [--cache-only], [--no-cache-only]  # Only cache your repositories, don't build.
  [--clean-only], [--no-clean-only]  # Only clean your repositories, don't build.
  [--push-only], [--no-push-only]    # Only push  your repositories, don't build.
  [--profile], [--no-profile]        # Profile Memory.
  [--tty], [--no-tty]                # Enable TTY Output.
  [--push], [--no-push]              # Push Repo After Building.
  [--cache], [--no-cache]            # Cache your repositories to cache.
  [--mocking], [--no-mocking]        # Disable Certain Actions.
  [--clean], [--no-clean]            # Cleanup your caches.

Build all (or some) of your repositories

You can send as many repos/images as you like, or you can send none, the lack of any repos/images will result in all of the possible images being built from your repos/ folder. This is good for automated building. NOTE: When building images we sort them, in that scratch images are built first, normal images are built second and aliases are done last, so that if you have dependencies within your dependencies hopefully they will get built first, however this is not always likely if your images rely on another normal image. In that case you might want to send a manual list for us.

List

You can get a list of the possible images that can be built, an example:

envygeeks/alpine:3.3
envygeeks/alpine:latest -> envygeeks/alpine:3.3