heat/contrib/docker/docker
Chmouel Boudjnah 13afa377ff Add docker network_gateway attribute
We previously had it in network_ip attribute when that value should have
been the container ip. Add a new value called network_gateway giving
this information to the user.

Change-Id: I8ebfc576f4bbc470aa2d405e8b063932017904cc
Closes-Bug: 1296745
2014-03-25 07:56:24 +01:00
..
resources Add docker network_gateway attribute 2014-03-25 07:56:24 +01:00
tests Add docker network_gateway attribute 2014-03-25 07:56:24 +01:00
__init__.py Restructure contrib/ directories 2014-03-03 10:49:28 -05:00
README.md Restructure contrib/ directories 2014-03-03 10:49:28 -05:00

Docker plugin for OpenStack Heat

This plugin enable using Docker containers as resources in a Heat template.

1. Install the Docker plugin in Heat

NOTE: Heat scans several directories to find plugins. The list of directories is specified in the configuration file "heat.conf" with the "plugin_dirs" directive.

Running the following commands will install the Docker plugin in an existing Heat setup.

pip install -r requirements.txt
ln -sf $(cd heat/contrib/docker-plugin/plugin; pwd) /usr/lib/heat/docker
echo "plugin_dirs=$(cd heat/contrib/docker-plugin/plugin; pwd)" > /etc/heat/heat.conf

NOTE: If you already have plugins enabled, you should not run the last command and instead edit the config file "/etc/heat/heat.conf" manually.

2. Restart heat

Only the process "heat-engine" needs to be restarted to load the new installed plugin.