项目作者: xebialabs-community

项目描述 :
Provision docker.Engine using docker-machine
高级语言: Python
项目地址: git://github.com/xebialabs-community/xld-docker-machine-plugin.git


Overview

The Docker Machine plugin is a XL Deploy plugin.
It adds the capability for provision `docker.Engine’ using Docker Machine.
It defines 2 control tasks to start and to stop the docker-machine

CI status

Build Status

Installation

Place the plugin JAR file into your SERVER_HOME/plugins directory.

Dependencies:

Sample Package

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <udm.ProvisioningPackage version="1.0" application="Machina">
  3. <deployables>
  4. <docker.MachineSpec name="/machine">
  5. <tags></tags>
  6. <cardinality>1</cardinality>
  7. <boundTemplates>
  8. <ci ref="/engine"></ci>
  9. </boundTemplates>
  10. <provisioners></provisioners>
  11. <driver>vmwarefusion</driver>
  12. <insecureRegistries>
  13. <value>192.168.99.100:5000</value>
  14. </insecureRegistries>
  15. <engineOptions></engineOptions>
  16. <engineLabels></engineLabels>
  17. </docker.MachineSpec>
  18. </deployables>
  19. <templates>
  20. <template.docker.Engine name="/engine">
  21. <childTemplates></childTemplates>
  22. <tags></tags>
  23. <dockerHost>{{%docker_host%}}</dockerHost>
  24. <enableTLS>{{%docker_tls_verify%}}</enableTLS>
  25. <certPem>{{%docker_certPem%}}</certPem>
  26. <keyPem>{{%docker_keyPem%}}</keyPem>
  27. <caPem>{{%docker_caPem%}}</caPem>
  28. <machineName>{{%machineName%}}</machineName>
  29. </template.docker.Engine>
  30. </templates>
  31. <boundTemplates></boundTemplates>
  32. </udm.ProvisioningPackage>

DockerMachineDictionary

The docker.machine.DockerMachineDictionary is a new kind of dictionary that will resolve the ip of all the docker machines relative to the XL Deploy server host.
The default keu prefix is MACHINE- (see docker.machine.DockerMachineDictionary hidden property).

Screenshot