Add validation for docker registry v2

Validate that Registry is actually up and running.
It's useful to fail early if the registry is for some reasons not
started correctly. It avoids to go further in the deployments steps and
loose time before seeing the failures when deploying containers.

Change-Id: Ic29d1c10741bf946c1df709d14b9b30dcf7f6c9b
This commit is contained in:
Emilien Macchi 2018-05-13 21:09:05 -07:00
parent 7a3cd85d56
commit d6c63f1baa
1 changed files with 6 additions and 0 deletions

View File

@ -16,3 +16,9 @@
enabled: true
state: started
name: docker-distribution
- name: validate that registry is up
uri:
# Just checking API version should be fine
# https://docs.docker.com/registry/spec/api/#api-version-check
url: "http://{{ container_registry_host }}:{{ container_registry_port }}/v2/"