Edward Kenneway on board
This commit is contained in:
33
setup.sh
Executable file
33
setup.sh
Executable file
@@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Setup script for Lightweight Docker Registry
|
||||
|
||||
echo "🐳 Setting up Lightweight Docker Registry..."
|
||||
|
||||
# Create necessary directories
|
||||
mkdir -p data auth certs
|
||||
|
||||
# Copy environment file if it doesn't exist
|
||||
if [ ! -f .env ]; then
|
||||
cp .env.example .env
|
||||
echo "✅ Created .env file from template"
|
||||
else
|
||||
echo "ℹ️ .env file already exists"
|
||||
fi
|
||||
|
||||
# Set proper permissions
|
||||
chmod 755 data auth certs
|
||||
|
||||
echo "🚀 Starting registry..."
|
||||
docker-compose up -d
|
||||
|
||||
echo ""
|
||||
echo "✅ Registry is running!"
|
||||
echo "📊 Web UI: http://localhost:8080"
|
||||
echo "🔌 Registry API: http://localhost:5000"
|
||||
echo ""
|
||||
echo "💡 To push an image:"
|
||||
echo " docker tag myimage localhost:5000/myimage"
|
||||
echo " docker push localhost:5000/myimage"
|
||||
echo ""
|
||||
echo "📝 Edit .env file to customize configuration"
|
||||
Reference in New Issue
Block a user