11 lines
363 B
Bash
11 lines
363 B
Bash
|
|
#!/bin/sh
|
||
|
|
|
||
|
|
# Initialize auth file if it doesn't exist
|
||
|
|
if [ ! -f /etc/docker/registry/auth/htpasswd ]; then
|
||
|
|
echo "Initializing auth file with default user 'recruas'"
|
||
|
|
htpasswd -B -c /etc/docker/registry/auth/htpasswd recruas
|
||
|
|
echo "Auth file created. Default user: recruas"
|
||
|
|
fi
|
||
|
|
|
||
|
|
# Start the registry
|
||
|
|
exec /bin/registry /etc/docker/registry/config.yml "$@"
|