From 4c219eafc29cb8794163bb29672528b3c8fca53b Mon Sep 17 00:00:00 2001 From: Egon Rijpkema Date: Thu, 8 Jun 2017 16:51:50 +0200 Subject: [PATCH] MAde registry less secure. Probably not going to use it though... --- hosts | 4 ++-- roles/dockerregistry/files/dockerregistry.service | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/hosts b/hosts index ec982b9..43d6e0b 100644 --- a/hosts +++ b/hosts @@ -2,8 +2,8 @@ ansible-test [keystone] ansible-test -[registry] -ansible-test +[dockerregistry] +openstack01-node01 [rabbitmq] ansible-test ansible-test-2 diff --git a/roles/dockerregistry/files/dockerregistry.service b/roles/dockerregistry/files/dockerregistry.service index bbc811f..05023e4 100644 --- a/roles/dockerregistry/files/dockerregistry.service +++ b/roles/dockerregistry/files/dockerregistry.service @@ -9,9 +9,8 @@ Restart=on-failure ExecStartPre=-/usr/bin/docker stop %n ExecStartPre=-/usr/bin/docker rm %n ExecStartPre=/usr/bin/docker pull registry:2 -ExecStart=/usr/bin/docker run -d -p 5000:5000 --restart=always --name %n \ - -v /srv/dockerregistry/auth:/auth -e "REGISTRY_AUTH=htpasswd" -e "REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm" \ - -e REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd -v /srv/dockerregistry/certs:/certs \ +ExecStart=/usr/bin/docker run -d -p 5000:5000 --name %n \ + -v /srv/dockerregistry/certs:/certs \ -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/docker-registry.hpc.service.rug.nl.crt \ -e REGISTRY_HTTP_TLS_KEY=/certs/docker-registry.hpc.service.rug.nl.key \ -e REGISTRY_HTTP_SECRET=jahNoh2teev0 registry:2