Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abn/docker-consul-template
Consul Template containerized in a scratch container
https://github.com/abn/docker-consul-template
Last synced: 7 days ago
JSON representation
Consul Template containerized in a scratch container
- Host: GitHub
- URL: https://github.com/abn/docker-consul-template
- Owner: abn
- License: mpl-2.0
- Created: 2015-08-11T23:05:41.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-21T12:10:23.000Z (about 9 years ago)
- Last Synced: 2024-11-18T07:49:53.016Z (about 1 month ago)
- Language: Makefile
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Consul Template Container
This project puts [Consul Template](https://github.com/hashicorp/consul-template) in scratch docker container. It is available on [Docker Hub](https://registry.hub.docker.com/u/alectolytic/consul-template/) and can be pulled using the following command.
```sh
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
```sh
docker run --rm -it alectolytic/consul-template
```#### Configuration file
```sh
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
```sh
# 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
```