Skip to content

ebiznext/ansible-docker-registry

 
 

Repository files navigation

ansible-docker-registry

#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.

Steps

Testing locally with Vagrant

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.

Include role in a larger playbook

Add this role as a git submodule

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"

Include this playbook as a role in your master playbook

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

Issues, requests, contributions

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.

Dependencies

None

License

MIT

Author Information

Stéphane Manciot - stephane.manciot [at] gmail.com

About

Ansible playbook for docker-registry

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%