Sign inSign up

alectolytic/consul-template

By alectolytic

Updated over 10 years ago

Consul Template containerized in a scratch contaier

Image
0

1.8K

alectolytic/consul-template repository overview

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

Tag summary

Content type

Image

Digest

sha256:cc62dcc7e

Size

4.2 MB

Last updated

over 10 years ago

docker pull alectolytic/consul-template