Public Repository

Last pushed: 3 years ago
Short Description
consul-template + docker client in a container
Full Description

An image based on debian:jessie that includes a docker client (v1.6.2) and consul-template (v0.9.0).

This is useful if you need to run something like:

docker run \
    -v /var/run/docker.sock:/var/run/docker.sock \
    micahhausler/consul-template \
    -template "in.tpl:out.conf:docker kill -s <container-name"

Dockerfile

FROM debian:jessie
MAINTAINER Micah Hausler, micah.hausler@ambition.com

# Install Docker
RUN apt-get update && \
    apt-get -y install \
    wget \
    && wget https://get.docker.com/builds/Linux/x86_64/docker-1.6.2 -O /usr/bin/docker \
    && chmod 755 /usr/bin/docker \
    && rm -rf /var/lib/apt/lists/*

# Add consul-template
RUN cd /tmp/ \
    && wget -O ./consul-template.tgz https://github.com/hashicorp/consul-template/releases/download/v0.9.0/consul-template_0.9.0_linux_amd64.tar.gz \
    && tar xfz consul-template.tgz \
    && mv consul-template_0.9.0_linux_amd64/consul-template /usr/local/bin/consul-template \
    && rm -rf consul-template* \
    && chmod 755 /usr/local/bin/consul-template

ENTRYPOINT ["/usr/local/bin/consul-template"]
Docker Pull Command
Owner
micahhausler