#Ansible playbook for docker-registry (v1 and v2 using docker official registry image)
This is an Ansible playbook for Docker registry. You can use it by itself or as part of a larger playbook customized for your local environment.
A sample Vagrant configuration is provided to help with local testing. After installing Vagrant, run vagrant up
at the root of the project to get a VM instance bootstrapped and configured with a running instance of docker registry.
Assuming your playbook structure is such as:
- my-master-playbook
|- filter_plugins
|- vars
|- roles
|- my-master-playbook-main.yml
\- my-master-inventory.ini
Add filter_plugins/group.py file to your filter_plugins directory
Checkout this project as a submodule under roles:
$ cd roles
$ git submodule add git://github.com/fupelaqu/ansible-docker-registry.git ./docker-registry
$ git submodule update --init
$ git commit ./docker-registry -m "Added ansible-docker-registry as ./docker-registry"
Example my-master-playbook-main.yml
:
---
#########################
# docker-registry install #
#########################
- hosts: docker-registry
user: ubuntu
sudo: yes
roles:
- docker-registry
vars_files:
- vars/my-vars.yml
This software is provided as is. Having said that, if you see an issue, feel free to log a ticket. We'll do our best to address it. Same if you want to see a certain feature supported in the fututre. No guarantees are made that any requested feature will be implemented. If you'd like to contribute, feel free to clone and submit a pull request.
None
MIT
Stéphane Manciot - stephane.manciot [at] gmail.com