Add registry image

Co-authored-by: Alexey Kostarev <kaf@altlinux.org>
This commit is contained in:
Mikhail Gordeev 2023-02-28 15:46:55 +03:00
parent 731a9baa23
commit 10d10e1bc4
4 changed files with 34 additions and 0 deletions

View File

@ -26,6 +26,9 @@
"alt/prometheus": {
"skip-branches": ["p9"]
},
"alt/registry": {
"skip-branches": ["p9"]
},
"k8s/cert-manager-cainjector": {
"skip-branches": ["p9"]
},

View File

@ -0,0 +1,15 @@
FROM {{ registry }}{{ alt_image }}:{{ branch }}
MAINTAINER alt-cloud
{{ install_pakages("docker-registry") }}
RUN ln -sf /usr/bin/docker-registry /bin/registry
VOLUME ["/var/lib/registry"]
EXPOSE 5000
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/etc/docker-registry/config.yml"]

View File

@ -0,0 +1,6 @@
# Docker registry image
Command for run:
```
docker run -d -p 5000:5000 registry.altlinux.org/alt/registry
```

10
org/alt/registry/entrypoint.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
set -e
case "$1" in
*.yaml|*.yml) set -- registry serve "$@" ;;
serve|garbage-collect|help|-*) set -- registry "$@" ;;
esac
exec "$@"