Docker plugin for Heat
Orchestrate containers with OpenStack Heat
by Sam Alba
@sam_alba
sam@dotcloud.com
Oct 2013
What is Heat?

“Heat implements an orchestration engine to
launch multiple composite cloud applications
based on templates.

”

Source: https://wiki.openstack.org/wiki/Heat

Oct 2013
Docker in OpenStack Havana
Nova supports Docker as a new hypervisor starting with the
Havana release
➔ Deploy containers instead of VM with the same API (Nova)

Oct 2013
Why using Heat directly?
● This is not a replacement to the Nova driver!
● It allows to use the whole Docker API from a Heat
template
Resources:
Blog:
Type: OS::Heat::Docker
Properties:
Image: samalba/wordpress
Env:
- DB_PORT=42

Oct 2013
How to use it?
1.

Install Heat with DevStack: https://wiki.openstack.
org/wiki/Heat/GettingStartedUsingDevstack

2.

Install the Docker plugin

# Clone the repos
git clone git@github.com:dotcloud/openstack-heat-docker.git
# Link the plugin so Heat can find it
ln -sf $(cd openstack-heat-docker/plugin; pwd) /usr/lib/heat/docker

Oct 2013
Demo time!
Example with Wordpress+MySQL
Demo time!
Horizon UI > Orchestration > Stacks

Oct 2013
Demo time!
Configure the Stack (parameters of the Heat template)

Oct 2013
Demo time!
Launch it

Oct 2013
Demo time!

Oct 2013
Run it yourself!
Project home page:
https://github.com/dotcloud/openstack-heat-docker

… and please ask for help:
#docker on irc.freenode.org

Oct 2013
Questions?

Oct 2013

[Open stack] heat + docker

  • 1.
    Docker plugin forHeat Orchestrate containers with OpenStack Heat by Sam Alba @sam_alba sam@dotcloud.com Oct 2013
  • 2.
    What is Heat? “Heatimplements an orchestration engine to launch multiple composite cloud applications based on templates. ” Source: https://wiki.openstack.org/wiki/Heat Oct 2013
  • 3.
    Docker in OpenStackHavana Nova supports Docker as a new hypervisor starting with the Havana release ➔ Deploy containers instead of VM with the same API (Nova) Oct 2013
  • 4.
    Why using Heatdirectly? ● This is not a replacement to the Nova driver! ● It allows to use the whole Docker API from a Heat template Resources: Blog: Type: OS::Heat::Docker Properties: Image: samalba/wordpress Env: - DB_PORT=42 Oct 2013
  • 5.
    How to useit? 1. Install Heat with DevStack: https://wiki.openstack. org/wiki/Heat/GettingStartedUsingDevstack 2. Install the Docker plugin # Clone the repos git clone git@github.com:dotcloud/openstack-heat-docker.git # Link the plugin so Heat can find it ln -sf $(cd openstack-heat-docker/plugin; pwd) /usr/lib/heat/docker Oct 2013
  • 6.
    Demo time! Example withWordpress+MySQL
  • 7.
    Demo time! Horizon UI> Orchestration > Stacks Oct 2013
  • 8.
    Demo time! Configure theStack (parameters of the Heat template) Oct 2013
  • 9.
  • 10.
  • 11.
    Run it yourself! Projecthome page: https://github.com/dotcloud/openstack-heat-docker … and please ask for help: #docker on irc.freenode.org Oct 2013
  • 12.