Added a dockerregistry docker.

We should roll out our dockers from here.

Changed password

(I failed to save it somewhere)

Reencrypted htpasswd using docker's htpasswd

see: 33a74ba9af/registry/part-3.md
This commit is contained in:
Egon Rijpkema
2017-05-04 16:32:18 +02:00
parent 90b25a6d6c
commit a058cadcf5
7 changed files with 260 additions and 0 deletions

View File

@ -0,0 +1,25 @@
# Install a docker based mariadb.
---
- include: ../common/tasks/docker.yml
- name: install service file.
template:
src: files/dockerregistry.service
dest: /etc/systemd/system/dockerregistry.service
mode: 644
owner: root
group: root
- name: install service file
command: systemctl daemon-reload
- name: make sure service is started
systemd:
name: dockerregistry.service
state: started
- name: Copy certificates and passwd file
copy:
src: "{{ item }}"
dest: /srv/dockerregistry
with_items:
- auth
- certs