Skip to content

Commit

Permalink
configurations must reside in dedicated directory
Browse files Browse the repository at this point in the history
* consul-template reads it recursively from the specified conf directory
  • Loading branch information
lgazo committed Jun 2, 2015
1 parent d7dbd5c commit d5479dd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ This Docker image follows official Nginx image extended with Consul Template to
Create your data volume image and place required configuration files based on the following matrix:

* /etc/nginx/conf.d -> nginx configuration
* /etc/consul-template -> Consul Template configurations taken and merged alphabetically - https://github.com/hashicorp/consul-template
* /etc/consul-template/conf -> Consul Template configurations taken and merged alphabetically - https://github.com/hashicorp/consul-template
* /etc/consul-template/templates -> a good place to situate your templates defined in the configuration

# Run

Expand Down
2 changes: 1 addition & 1 deletion consul-template.service
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh

exec consul-template -config "/etc/consul-template"
exec consul-template -config "/etc/consul-template/conf"
10 changes: 10 additions & 0 deletions docker-push.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

if [ $# -ne 1 ]; then
echo "Provide version"
exit 42
fi

version=":$1"

docker push seges/nginx-consul$version

0 comments on commit d5479dd

Please sign in to comment.