Add registry image
Co-authored-by: Alexey Kostarev <kaf@altlinux.org>
This commit is contained in:
parent
731a9baa23
commit
10d10e1bc4
@ -26,6 +26,9 @@
|
||||
"alt/prometheus": {
|
||||
"skip-branches": ["p9"]
|
||||
},
|
||||
"alt/registry": {
|
||||
"skip-branches": ["p9"]
|
||||
},
|
||||
"k8s/cert-manager-cainjector": {
|
||||
"skip-branches": ["p9"]
|
||||
},
|
||||
|
15
org/alt/registry/Dockerfile.template
Normal file
15
org/alt/registry/Dockerfile.template
Normal 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"]
|
6
org/alt/registry/README.md
Normal file
6
org/alt/registry/README.md
Normal 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
10
org/alt/registry/entrypoint.sh
Executable 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 "$@"
|
Loading…
x
Reference in New Issue
Block a user