cloudify-incubator / cloudify-swarm-plugin

Cloudify plugin for packaging Docker Swarm microservices in Cloudify blueprints.
Apache License 2.0
1 stars 1 forks source link

Cloudify Swarm Plugin

This project contains a plugin that enables Cloudify to install, configure, and run services on a Docker Swarm Cluster:

Limitations:

Plugin components

cloudify.swarm.Manager

Represents a Swarm manager node. This simple type is provided just to provide connection info for the cloudify.swarm.Microservice type, in the case that the manager is not managed by Cloudify. It is expected that a Manager managed by Cloudify will be referenced using the DeploymentProxy plugin.

Significant properties

cloudify.swarm.Microservice node type

Represents a service in a Swarm cluster. Requires the cloudify.swarm.relationships.microservice_contained_in_manager relationship to get connection information. A service can be defined either by referencing a docker Compose descriptor, or by setting properties directly in the node template definition. If using node properties, refer to the "create a service" section in the Docker remote REST API. The properties of the type are specified by a simple conversion of the native camel case: camel case identifiers in the REST are converted by separating camel case words with underscores, and converting to lower case. Example: LogDriver == log_driver. See the example blueprint for more details.

cloudify.swarm.relationships.microservice_contained_in_manager relationship

Just retrieves the master ip and port for use by the dependent node. Can be targeted at either a cloudify.swarm.Manager node or a cloudify.nodes.DeploymentProxy instance.