migrate registry service to s6-rc
This commit is contained in:
parent
641c789bcd
commit
d8c6665a67
|
@ -26,8 +26,8 @@ docker run --rm -p 5000:5000 -it nephatrine/docker-registry:latest /bin/bash
|
|||
|
||||
## Docker Tags
|
||||
|
||||
- **nephatrine/docker-registry:testing**: Registry 2.7 / Alpine Edge
|
||||
- **nephatrine/docker-registry:latest**: Registry 2.7 / Alpine Latest
|
||||
- **nephatrine/docker-registry:testing**: Registry Main / Alpine Edge
|
||||
- **nephatrine/docker-registry:latest**: Registry Main / Alpine Latest
|
||||
|
||||
## Configuration Variables
|
||||
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
#!/usr/bin/with-contenv bash
|
||||
|
||||
if [[ ! -d /mnt/config/etc/registry ]]; then
|
||||
s6-setuidgid guardian mkdir -p /mnt/config/etc/registry
|
||||
fi
|
||||
s6-setuidgid guardian cp -n /etc/registry/* /mnt/config/etc/registry/
|
||||
|
||||
if [[ ! -d ${REGISTRY_DATA_DIR} ]]; then
|
||||
s6-setuidgid guardian mkdir -p ${REGISTRY_DATA_DIR}
|
||||
fi
|
|
@ -1 +0,0 @@
|
|||
0 6 * * * /usr/local/bin/clean-registry --delete-untagged=true
|
|
@ -1 +0,0 @@
|
|||
/mnt/config/data/docker true guardian:users,1000:100 0644 0755
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
export HOME=/mnt/config/home
|
||||
/command/s6-setuidgid guardian /usr/bin/registry garbage-collect --delete-untagged=true /mnt/config/etc/registry/config.yml
|
|
@ -0,0 +1 @@
|
|||
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Build Config
|
||||
|
||||
if [[ ! -d /mnt/config/etc/registry ]]; then
|
||||
/command/s6-setuidgid guardian /bin/mkdir -p /mnt/config/etc/registry
|
||||
fi
|
||||
/command/s6-setuidgid guardian /bin/cp -n /etc/registry/* /mnt/config/etc/registry/
|
||||
|
||||
# Start Service
|
||||
|
||||
if [[ ! -d /mnt/config/data ]]; then
|
||||
/command/s6-setuidgid guardian /bin/mkdir -p /mnt/config/data
|
||||
fi
|
||||
|
||||
export HOME=/mnt/config/home
|
||||
exec /command/s6-setuidgid guardian /usr/bin/registry serve /mnt/config/etc/registry/config.yml
|
|
@ -0,0 +1 @@
|
|||
longrun
|
|
@ -0,0 +1 @@
|
|||
|
|
@ -1,2 +0,0 @@
|
|||
#!/usr/bin/with-contenv sh
|
||||
exec s6-setuidgid guardian /usr/bin/registry serve /mnt/config/etc/registry/config.yml
|
|
@ -1,2 +0,0 @@
|
|||
#!/usr/bin/with-contenv sh
|
||||
/usr/bin/registry garbage-collect /mnt/config/etc/registry/config.yml $@
|
Reference in New Issue