/salt-formula-docker

Primary LanguageSaltStackOtherNOASSERTION

Docker Formula

Docker is a platform for developers and sysadmins to develop, ship, and run applications. Docker lets you quickly assemble applications from components and eliminates the friction that can come when shipping code. Docker lets you get your code tested and deployed into production as fast as possible.

Sample Pillars

Docker Host

Configure proxy for docker host

Docker Swarm

Role can be master, manager or worker. Where master is the first manager that will initialize the swarm.

Metadata for manager (first node):

Metadata for worker.

Token to join to master node is obtained from grains using salt.mine. In case of any join_token undefined issues, ensure you have docker_swarm_ grains available.

Docker Client

Container

Using Docker Compose

There are two states that provides this functionality:

  • docker.client.stack
  • docker.client.compose

Stack is new and works with Docker Swarm Mode. Compose is legacy and works only if node isn't member of Swarm. Metadata for both states are similar and differs only in implementation.

Stack
Compose

There are three options how to install docker-compose:

  • distribution package (default)
  • using Pip
  • using Docker container

Install docker-compose using Docker (default is distribution package)

Registry

Service

To deploy service in Swarm mode, you can use docker.client.service:

Docker Registry

Docker login to private registry

Docker container service management

Enforce the service in container is started

or

Enforce the service in container is stoped

Enforce the service in container will be restarted

Enforce the service in container is enabled

Enforce the service in container is disabled

More Information

Documentation and Bugs

To learn how to install and update salt-formulas, consult the documentation available online at:

http://salt-formulas.readthedocs.io/

In the unfortunate event that bugs are discovered, they should be reported to the appropriate issue tracker. Use Github issue tracker for specific salt formula:

https://github.com/salt-formulas/salt-formula-docker/issues

For feature requests, bug reports or blueprints affecting entire ecosystem, use Launchpad salt-formulas project:

https://launchpad.net/salt-formulas

You can also join salt-formulas-users team and subscribe to mailing list:

https://launchpad.net/~salt-formulas-users

Developers wishing to work on the salt-formulas projects should always base their work on master branch and submit pull request against specific formula.

https://github.com/salt-formulas/salt-formula-docker

Any questions or feedback is always welcome so feel free to join our IRC channel:

#salt-formulas @ irc.freenode.net