Este commit está contenido en:
Your Name
2020-05-27 18:33:34 +00:00
padre 77607ac48b
commit 16f6052fdd
Se han modificado 4 ficheros con 97 adiciones y 0 borrados

53
production/registry/config.yml Archivo normal
Ver fichero

@@ -0,0 +1,53 @@
version: 0.1
log:
accesslog:
disabled: true
level: info
hooks:
- type: mail
disabled: false
levels:
- panic
options:
smtp:
addr: smtp.hatthieves.es:25
insecure: false
from: docker@hatthieves.es
to:
- webmaster@hatthieves.es
#auth:
# silly:
# realm: silly-realm
# service: nginx
auth:
htpasswd:
realm: basic-realm
path: /etc/docker/htpasswd
storage:
filesystem:
rootdirectory: /var/lib/registry
delete:
enabled: false
redirect:
disable: false
#middleware:
# storage:
# - name: redirect
# options:
# baseurl: https://registry.hatthieves.es/
http:
addr: 172.110.0.101:5000
host: https://registry.hatthieves.es
# tls:
# certificate: /etc/docker/ssl/fullchain.pem
# key: /etc/docker/ssl/privkey.pem
relativeurls: true
secret: nopass
headers:
X-Content-Type-Options: [nosniff]
http2:
disabled: false

Ver fichero

@@ -0,0 +1,30 @@
version: '2'
services:
registry:
image: registry:2
restart: always
hostname: registry
container_name: registry
# ports:
# - "5000:5000"
environment:
- REGISTRY_HTTP_RELATIVEURLS=true
expose:
- 5000
volumes:
- ./registry:/var/lib/registry
- ./config.yml:/etc/docker/registry/config.yml
- /opt/docker/secure:/etc/docker/ssl:ro
- ./htpasswd:/etc/docker/htpasswd
networks:
mynet:
ipv4_address: 172.110.0.101
networks:
mynet:
driver: bridge
ipam:
config:
- subnet: 172.110.0.0/24

Ver fichero

@@ -0,0 +1,7 @@
#!/bin/bash
for i in $(cat images.txt | awk '{print $1":"$2}')
do
docker tag $i registry.hatthieves.es/$i
docker push registry.hatthieves.es/$i
docker rmi registry.hatthieves.es/$i
done

7
production/registry/tags.sh Archivo ejecutable
Ver fichero

@@ -0,0 +1,7 @@
#!/bin/bash
for i in $(cat images)
do
docker tag "$i" "registry.hatthieves.es/$i"
docker push "registry.hatthieves.es/$i"
docker rmi "registry.hatthieves.es/$i"
done