Merge "Make docker registry volume configurable"

This commit is contained in:
Zuul 2020-03-19 13:50:18 +00:00 committed by Gerrit Code Review
commit 8bd7df5de3
4 changed files with 15 additions and 1 deletions

View File

@ -18,3 +18,6 @@ docker_registry_env: {}
# NOTE: This is set to 4000 rather than the default of 5000 to avoid clashing # NOTE: This is set to 4000 rather than the default of 5000 to avoid clashing
# with keystone. # with keystone.
docker_registry_port: 4000 docker_registry_port: 4000
# Name or path to use as the volume for the docker registry.
docker_registry_datadir_volume: docker_registry

View File

@ -25,6 +25,8 @@ to ``true``.
``docker_registry_restart_policy``: Docker restart policy for ``docker_registry_restart_policy``: Docker restart policy for
``docker_registry`` container. Defaults to ``unless-stopped``. ``docker_registry`` container. Defaults to ``unless-stopped``.
``docker_registry_restart_retries``: Number of Docker restarts. Defaults to 10. ``docker_registry_restart_retries``: Number of Docker restarts. Defaults to 10.
``docker_registry_datadir_volume``: The name or path to use for the docker
volume that backs the registry. Defaults to ``docker_registry``.
Dependencies Dependencies
------------ ------------

View File

@ -28,11 +28,15 @@ docker_registry_services:
- "{{ docker_registry_port }}:5000" - "{{ docker_registry_port }}:5000"
volumes: volumes:
- "/etc/localtime:/etc/localtime:ro" - "/etc/localtime:/etc/localtime:ro"
- "docker_registry:/var/lib/registry" - "{{ docker_registry_datadir_volume }}:/var/lib/registry"
# The port on which the docker registry server should listen. # The port on which the docker registry server should listen.
docker_registry_port: 5000 docker_registry_port: 5000
# The name or path to use for the docker volume that backs the registry.
# Defaults to ``docker_registry``.
docker_registry_datadir_volume: docker_registry
#################### ####################
# Docker # Docker
#################### ####################

View File

@ -0,0 +1,5 @@
---
features:
- |
Adds the variable, ``docker_registry_datadir_volume``. This allows you to
configure the name or path of the docker volume used for the docker registry.