cookbook 'apt-docker', '~> 0.3.0'
apt-docker (3) Versions 0.3.0 Follow12
Installs/Configures apt Docker Vendor-Specific Repository
cookbook 'apt-docker', '~> 0.3.0', :supermarket
knife supermarket install apt-docker
knife supermarket download apt-docker
apt-docker Cookbook
Installs/Configures apt Docker Vendor-Specific Repositories.
This cookbook installs & configures apt Docker repositories per
https://get.docker.com/.
Requirements
- Chef 11 or higher
- Ruby 1.9 or higher (preferably from the Chef full-stack installer)
- Network accessible package repositories
- apt Cookbook
Attributes
apt-docker::default
The default recipe is for installing & configuring the apt Docker repostories.
Any attribute supported by the apt cookbook
is supported by this cookbook and can be used to override attributes in this
cookbook.
Per https://get.docker.com/, there are currently three repositories for Docker:
main, testing & experimental. Main is the stable repository. Testing is for
test builds (ie. release candidates). Experimental is for experimental builds.
-
['apt-docker']['supported-codenames']
- Type: Hash
- Description:
Debian-ish platform support for this cookbook and the Docker repository.
Designed to be a private attribute however it can be overridden in the case
Docker supports additional platforms and this cookbook has not been updated
yet.This check was implemented as a result of the repo could be successfully
installed yet not be valid for a given platform and a Docker package could
be successfully installed as a result of it being available natively on the
platform it which it was run which results in a false positive for the
consumer of the cookbook.The hash key is the codename of the OS/version. If the hash value evaluates
to true, the OS/version is considered supported.
- Default:{ wheezy: true, # Debian 7.x jessie: true, # Debian 8.x stretch: true, # Debian 9.x precise: true, # Ubuntu 12.04 trusty: true, # Ubuntu 14.04 utopic: true, # Ubuntu 14.10 vivid: true, # Ubuntu 15.04 wily: true, # Ubuntu 15.10 }
-
Docker Main Repo
['apt-nginx']['repos']['docker-main']['managed']
- Type: Boolean
- Description: Does this cookbook manage the install of the Docker Main Repo?
-
Default:
true
['apt-nginx']['repos']['docker-main']['uri']
- Type: String
- Description: URI of Docker Main Repo
-
Default:
https://apt.dockerproject.org/repo
['apt-nginx']['repos']['docker-main']['distribution']
- Type: String
- Description: Package distribution of Docker Main Repo
-
Default:
#{node['platform']}-#{node['lsb']['codename']}
['apt-nginx']['repos']['docker-main']['components']
- Type: String
- Description: Docker Main Repo Package Groupings
-
Default:
['main']
['apt-nginx']['repos']['docker-main']['deb-src']
- Type: String
- Description: Whether or not to add the Docker Main Source Repo?
-
Default:
false
['apt-nginx']['repos']['docker-main']['keyserver']
- Type: String
- Description: GPG keyserver for the Docker Main Repo
-
Default:
hkp://p80.pool.sks-keyservers.net:80
['apt-nginx']['repos']['docker-main']['key']
- Type: String
- Description: GPG fingerprint for the Docker Main Repo
-
Default:
58118E89F3A912897C070ADBF76221572C52609D
-
Docker Testing Repo
['apt-nginx']['repos']['docker-testing']['managed']
- Type: Boolean
- Description: Does this cookbook manage the install of the Docker Testing Repo?
-
Default:
false
['apt-nginx']['repos']['docker-testing']['uri']
- Type: String
- Description: URI of Docker Testing Repo
-
Default:
https://apt.dockerproject.org/repo
['apt-nginx']['repos']['docker-testing']['distribution']
- Type: String
- Description: Package distribution of Docker Testing Repo
-
Default:
#{node['platform']}-#{node['lsb']['codename']}
['apt-nginx']['repos']['docker-testing']['components']
- Type: String
- Description: Docker Testing Repo Package Groupings
-
Default:
['testing']
['apt-nginx']['repos']['docker-testing']['deb-src']
- Type: String
- Description: Whether or not to add the Docker Testing Source Repo?
-
Default:
false
['apt-nginx']['repos']['docker-testing']['keyserver']
- Type: String
- Description: GPG keyserver for the Docker Testing Repo
-
Default:
hkp://p80.pool.sks-keyservers.net:80
['apt-nginx']['repos']['docker-testing']['key']
- Type: String
- Description: GPG fingerprint for the Docker Testing Repo
-
Default:
58118E89F3A912897C070ADBF76221572C52609D
-
Docker Experimental Repo
['apt-nginx']['repos']['docker-experimental']['managed']
- Type: Boolean
- Description: Does this cookbook manage the install of the Docker Experimental Repo?
-
Default:
false
['apt-nginx']['repos']['docker-experimental']['uri']
- Type: String
- Description: URI of Docker Experimental Repo
-
Default:
https://apt.dockerproject.org/repo
['apt-nginx']['repos']['docker-experimental']['distribution']
- Type: String
- Description: Package distribution of Docker Experimental Repo
-
Default:
#{node['platform']}-#{node['lsb']['codename']}
['apt-nginx']['repos']['docker-experimental']['components']
- Type: String
- Description: Docker Experimental Repo Package Groupings
-
Default:
['experimental']
['apt-nginx']['repos']['docker-experimental']['deb-src']
- Type: String
- Description: Whether or not to add the Docker Experimental Source Repo?
-
Default:
false
['apt-nginx']['repos']['docker-experimental']['keyserver']
- Type: String
- Description: GPG keyserver for the Docker Experimental Repo
-
Default:
hkp://p80.pool.sks-keyservers.net:80
['apt-nginx']['repos']['docker-experimental']['key']
- Type: String
- Description: GPG fingerprint for the Docker Experimental Repo
-
Default:
58118E89F3A912897C070ADBF76221572C52609D
Usage
apt-docker::default
Just include apt-docker
in your node's run_list
:
{ "name": "my_node", "run_list": [ "recipe[apt-docker]" ] }
Contributing
- Fork the repository on GitHub
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using GitHub
Development Environment
This repository contains a Vagrantfile which can be used to spin up a
fully configured development environment in Vagrant.
Vagrant requires the following:
- VirtualBox
- Vagrant
The Vagrant environment for this repository is based on:
- st-isidore-de-seville/trusty64-rvm-docker
The Vagrant environment will initialize itself to:
- install required Ruby gems
- run integration testing via kitchen-docker when calling kitchen
The Vagrant environment can be spun up by performing the following commands:
vagrant up
vagrant ssh
cd /vagrant
Authors
- Author:: St. Isidore de Seville (st.isidore.de.seville@gmail.com)
License
The MIT License (MIT) Copyright (c) 2015 St. Isidore de Seville (st.isidore.de.seville@gmail.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Dependent cookbooks
apt ~> 2.9 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
apt-docker CHANGELOG
This file is used to list changes made in each version of the apt-docker
cookbook.
0.3.0
- Sean OMeara (sean@chef.io)
- fix Chef 13 deprecation warnings
0.2.0
- St. Isidore de Seville (st.isidore.de.seville@gmail.com)
- increase unit testing coverage
0.1.0
- St. Isidore de Seville (st.isidore.de.seville@gmail.com)
- initial release of apt-docker
Collaborator Number Metric
0.3.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.3.0 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.3.0 passed this metric
No Binaries Metric
0.3.0 passed this metric
Testing File Metric
0.3.0 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
Version Tag Metric
0.3.0 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 include a tag that matches this cookbook version number
0.3.0 failed this metric
0.3.0 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.3.0 passed this metric
No Binaries Metric
0.3.0 passed this metric
Testing File Metric
0.3.0 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
Version Tag Metric
0.3.0 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 include a tag that matches this cookbook version number
0.3.0 passed this metric
0.3.0 passed this metric
Testing File Metric
0.3.0 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
Version Tag Metric
0.3.0 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 include a tag that matches this cookbook version number
0.3.0 failed this metric
0.3.0 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 include a tag that matches this cookbook version number