Public Repository

Last pushed: 2 years ago
Short Description
Consul Template containerized in a scratch contaier
Full Description

This project puts Consul Template in scratch docker container. It is available on Docker Hub and can be pulled using the following command.

docker pull alectolytic/consul-template

You will note that this is a tiny image.

$ docker images | grep docker.io/alectolytic/consul-template
docker.io/alectolytic/consul-template  90424465fa2f  12 minutes ago  6.495 MB

Quickstart

Default

docker run --rm -it alectolytic/consul-template

Configuration file

docker run --rm -it \
  -v /path/to/config.json:/config.json \
  alectolytic/consul-template -config=/config.json

NOTE: If running on an SELinux enabled system, run chcon -Rt svirt_sandbox_file_t /path/to/config.json before staring consul.

Persisted Templates

# create data volume
docker create  --entrypoint=_ -v /templates --name templates scratch

# run consul-template with the data volume
docker run --rm -it \
  --volumes-from templates \
  alectolytic/consul-template
Docker Pull Command
Owner
alectolytic