docker-conf

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2015 License: MIT Imports: 5 Imported by: 0

README

docker-conf

docker-conf is intended to be used with a wrapper script inside of a docker container to create configuration files from environment variables before the main docker application runs.

Usage

Inside of a wrapper script you would use docker-conf this way:

#!/bin/bash
docker-conf -t /opt/templates

run_your_app_here

The -t option tells docker-conf where to look for templates that it needs to fill out for your application.

Template Format

docker-conf templates use the following format for creating templates. Template files must end with .tmpl The .tmpl will get removed when processing occurs so if you have a file named nginx.conf.tmpl the resulting file will be named nginx.conf

You can inject values into the template files with {{ env name }} where env is telling docker-conf to look for the enviornment variable name

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL