Adoptable Cookbooks List

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

ama-docker-compose Cookbook

This cookbook automates installation and usage of
Docker Compose tool.

Please not that most of the actions - at least for 0.1.x - are executed
regardless of current state. Even if all containers are up and running,
action :up will issue a new shell command. Single-service actions
are not yet supported either.

Dev branch state:

Requirements

Platforms

Ubuntu LTS 14.04+

Debian 7+

Fedora 21+

Centos 6.5+

Should work on other Linux distros as well, but we don't
have enough time to set up kitchen grounds for all cases. Should work
on Mac as well but never tested.

Chef

Chef 12.0 or later

Cookbooks

This cookbook doesn't have any dependencies on other cookbooks.

Attributes

Attributes are used to set default values only.

Key

Default

['ama-docker-compose']['version']

1.16.1

Recipes

You can skip some burden and include default recipe to install
version specified in attribute in default location
(/usr/local/bin/docker-compose).

Resources

docker_compose_installation

Installs Docker Compose, latest version (known by cookbook) by default.

Examples:

docker_compose_installation '/usr/local/bin/docker-compose'

docker_compose_installation 'default' do
version '1.10.1'
path '/usr/local/bin/docker-compose'
end

Available actions are :create/:install and :delete/:remove,
path attribute defaults to resource name, version attribute
defaults to node['ama-docker-compose']['version']. I can't promise
it will always be up to date, though.

docker_compose_deployment

This resource operates with docker composition (named as deployment for
clarity), running commands as up, down, kill and others against set of
docker-compose files.

Please note that those actions are always executed (at least, for now),
since it is difficult to check whether all containers are up, killed,
stopped or anything else regarding state of deployment. However, you
can always use guard files that, if present, would guarantee action
has been executed.

[0.1.0]

Added

Collaborator Number Metric

0.1.2 failed this metric

Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric

0.1.2 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric

0.1.2 failed this metric

FC066: Ensure chef_version is set in metadata: ama-docker-compose/metadata.rb:1FC091: Use property not attribute in custom resources: ama-docker-compose/resources/docker_compose_deployment.rb:6FC091: Use property not attribute in custom resources: ama-docker-compose/resources/docker_compose_deployment.rb:7FC091: Use property not attribute in custom resources: ama-docker-compose/resources/docker_compose_deployment.rb:8FC091: Use property not attribute in custom resources: ama-docker-compose/resources/docker_compose_deployment.rb:9FC091: Use property not attribute in custom resources: ama-docker-compose/resources/docker_compose_deployment.rb:10FC091: Use property not attribute in custom resources: ama-docker-compose/resources/docker_compose_deployment.rb:11FC091: Use property not attribute in custom resources: ama-docker-compose/resources/docker_compose_deployment.rb:12FC091: Use property not attribute in custom resources: ama-docker-compose/resources/docker_compose_installation.rb:6FC091: Use property not attribute in custom resources: ama-docker-compose/resources/docker_compose_installation.rb:7FC092: Custom resources should not define actions: ama-docker-compose/resources/docker_compose_deployment.rb:3FC092: Custom resources should not define actions: ama-docker-compose/resources/docker_compose_installation.rb:3Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric

0.1.2 passed this metric

Publish Metric

0.1.2 passed this metric

Supported Platforms Metric

0.1.2 passed this metric

Testing File Metric

0.1.2 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file