more podman fixes
This commit is contained in:
31
setup.sh
31
setup.sh
@@ -91,27 +91,24 @@ echo "Creating required directories..."
|
||||
mkdir -p data logs output configs
|
||||
echo "✓ Directories created"
|
||||
|
||||
# Check if Docker is running
|
||||
# Check if Podman is running
|
||||
echo ""
|
||||
echo "Checking Docker..."
|
||||
if ! docker info > /dev/null 2>&1; then
|
||||
echo "✗ Docker is not running or not installed"
|
||||
echo "Please install Docker and start the Docker daemon"
|
||||
echo "Checking Podman..."
|
||||
if ! podman info > /dev/null 2>&1; then
|
||||
echo "✗ Podman is not running or not installed"
|
||||
echo "Please install Podman"
|
||||
exit 1
|
||||
fi
|
||||
echo "✓ Docker is running"
|
||||
echo "✓ Podman is available"
|
||||
|
||||
# Build and start
|
||||
echo ""
|
||||
echo "Building and starting SneakyScanner..."
|
||||
echo "Starting SneakyScanner..."
|
||||
echo "This may take a few minutes on first run..."
|
||||
echo ""
|
||||
|
||||
docker compose build
|
||||
|
||||
echo ""
|
||||
echo "Starting SneakyScanner..."
|
||||
docker compose up -d
|
||||
podman-compose build
|
||||
podman-compose up -d
|
||||
|
||||
# Wait for service to be healthy
|
||||
echo ""
|
||||
@@ -119,7 +116,7 @@ echo "Waiting for application to start..."
|
||||
sleep 5
|
||||
|
||||
# Check if container is running
|
||||
if docker ps | grep -q sneakyscanner-web; then
|
||||
if podman ps | grep -q sneakyscanner-web; then
|
||||
echo ""
|
||||
echo "================================================"
|
||||
echo " ✓ SneakyScanner is Running!"
|
||||
@@ -140,15 +137,15 @@ if docker ps | grep -q sneakyscanner-web; then
|
||||
fi
|
||||
echo ""
|
||||
echo "Useful commands:"
|
||||
echo " docker compose logs -f # View logs"
|
||||
echo " docker compose stop # Stop the service"
|
||||
echo " docker compose restart # Restart the service"
|
||||
echo " podman-compose logs -f # View logs"
|
||||
echo " podman-compose stop # Stop the service"
|
||||
echo " podman-compose restart # Restart the service"
|
||||
echo ""
|
||||
echo "⚠ IMPORTANT: Change your password after first login!"
|
||||
echo "================================================"
|
||||
else
|
||||
echo ""
|
||||
echo "✗ Container failed to start. Check logs with:"
|
||||
echo " docker compose logs"
|
||||
echo " podman-compose logs"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user