Files
Registry/setup.sh
renzaspiras d8bfde5796 refactor: restructure registry with auth and agent guidelines
- Add built-in authentication with Apache utils
- Add AGENTS.md for coding guidelines
- Enhance security with authentication enabled by default
- Remove unnecessary template files
- Simplify configuration and setup process
2025-11-05 04:11:21 -08:00

22 lines
685 B
Bash
Executable File

#!/bin/bash
echo "Setting up Docker Registry with authentication..."
# Build and start the registry
docker-compose up -d --build
echo "Waiting for registry to start..."
sleep 5
# Set initial password for recruas user
echo "Setting password for 'recruas' user..."
docker exec -it registry htpasswd -B /etc/docker/registry/auth/htpasswd recruas
echo "Setup complete!"
echo "Registry is running with authentication enabled."
echo "Default user: recruas"
echo "UI will be available on port 80 (exposed)"
echo "Registry API available on port 5000 (exposed)"
echo ""
echo "To change password later:"
echo "docker exec -it registry htpasswd -B /etc/docker/registry/auth/htpasswd recruas"