0583740cd4
The docker plugin tests would not run without the docker lib being installed even though the client was mocked in the tests. This patch adds conditional import of the client and registration of the plugin so that the contrib tests can be run in the gates without having to hack requirements or add more third party libs. Change-Id: Ia114f8ebc0cf0b72af8e6e5d2c3264fb7952d7f9 Partial-Bug: #1251380 |
||
---|---|---|
.. | ||
plugin | ||
tests | ||
__init__.py | ||
README.md | ||
requirements.txt |
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.