heat-agents/hot/software-config/elements/heat-config-docker-compose
Rabi Mishra ab45e3d398 Add env_file support for docker-compose hook
Added support for `env_file` which can be single file or a list
of files. Use special input 'env_files' for the env_files. These
files will be created by the hook relative to the compose project
directory.

if 'env_file' entries in 'docker-compose.yml' do not exist in the
`input_values` supplied, docker-compose will throw an error as it
can't find these files.

Change-Id: I0dbe80e8c8c56cc680f8ee86b4f34cf3d27533c4
2017-01-04 16:57:10 +01:00
..
install.d Add env_file support for docker-compose hook 2017-01-04 16:57:10 +01:00
os-refresh-config/configure.d heat-config-docker-compose hook 2017-01-04 16:57:10 +01:00
README.rst Add env_file support for docker-compose hook 2017-01-04 16:57:10 +01:00
element-deps heat-config-docker-compose hook 2017-01-04 16:57:10 +01:00

README.rst

A hook which uses docker-compose to deploy containers.

A special input 'env_files' can be used with SoftwareConfig and StructuredConfig for docker-compose env_file key(s).

if env_file keys specified in the docker-compose.yml, do not exist in input_values supplied, docker-compose will throw an error, as it can't find these files.

Also, -Pf option can be used to pass env files from client.

Example:

$ heat stack-create test_stack -f example-docker-compose-template.yaml -Pf env_file_0=./common.env -Pf env_file_1=./apps/web.env -Pf env_file_2=./test.env -Pf env_file_3=./busybox.env