chore: Update deployment configuration and documentation
- Update Gitea configuration (remove DEFAULT_ACTIONS_URL) - Fix deployment documentation - Update Ansible playbooks - Clean up deprecated files - Add new deployment scripts and templates
This commit is contained in:
58
tests/debug/test-dockerfile-git.sh
Executable file
58
tests/debug/test-dockerfile-git.sh
Executable file
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Quick test script to verify Dockerfile.production contains Git and Composer
|
||||
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
|
||||
DOCKERFILE="$PROJECT_ROOT/Dockerfile.production"
|
||||
|
||||
echo "🧪 Testing Dockerfile.production for Git and Composer"
|
||||
echo ""
|
||||
|
||||
# Check if Dockerfile exists
|
||||
if [ ! -f "$DOCKERFILE" ]; then
|
||||
echo "❌ Dockerfile.production not found at $DOCKERFILE"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "✅ Found Dockerfile.production"
|
||||
echo ""
|
||||
|
||||
# Check for git installation
|
||||
echo "📋 Checking for git installation..."
|
||||
if grep -q "git" "$DOCKERFILE"; then
|
||||
echo "✅ git found in Dockerfile"
|
||||
echo " Relevant lines:"
|
||||
grep -n "git" "$DOCKERFILE" | head -3
|
||||
else
|
||||
echo "❌ git NOT found in Dockerfile"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check for composer installation
|
||||
echo ""
|
||||
echo "📋 Checking for composer installation..."
|
||||
if grep -q "composer" "$DOCKERFILE"; then
|
||||
echo "✅ composer found in Dockerfile"
|
||||
echo " Relevant lines:"
|
||||
grep -n "composer" "$DOCKERFILE" | head -3
|
||||
else
|
||||
echo "❌ composer NOT found in Dockerfile"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check for entrypoint copy
|
||||
echo ""
|
||||
echo "📋 Checking for entrypoint.sh copy..."
|
||||
if grep -q "entrypoint.sh\|ENTRYPOINT" "$DOCKERFILE"; then
|
||||
echo "✅ entrypoint.sh copy/ENTRYPOINT found"
|
||||
echo " Relevant lines:"
|
||||
grep -n "entrypoint\|ENTRYPOINT" "$DOCKERFILE" | head -3
|
||||
else
|
||||
echo "❌ entrypoint.sh copy/ENTRYPOINT NOT found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "✅ All Dockerfile checks passed!"
|
||||
64
tests/debug/test-entrypoint-git.sh
Executable file
64
tests/debug/test-entrypoint-git.sh
Executable file
@@ -0,0 +1,64 @@
|
||||
#!/bin/bash
|
||||
# Quick test script to verify entrypoint.sh Git functionality
|
||||
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
|
||||
ENTRYPOINT="$PROJECT_ROOT/docker/entrypoint.sh"
|
||||
|
||||
echo "🧪 Testing entrypoint.sh Git functionality"
|
||||
echo ""
|
||||
|
||||
# Check if entrypoint.sh exists
|
||||
if [ ! -f "$ENTRYPOINT" ]; then
|
||||
echo "❌ entrypoint.sh not found at $ENTRYPOINT"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "✅ Found entrypoint.sh"
|
||||
echo ""
|
||||
|
||||
# Check for GIT_REPOSITORY_URL handling
|
||||
echo "📋 Checking for GIT_REPOSITORY_URL handling..."
|
||||
if grep -q "GIT_REPOSITORY_URL" "$ENTRYPOINT"; then
|
||||
echo "✅ GIT_REPOSITORY_URL found in entrypoint.sh"
|
||||
else
|
||||
echo "❌ GIT_REPOSITORY_URL NOT found in entrypoint.sh"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check for git clone
|
||||
echo "📋 Checking for git clone functionality..."
|
||||
if grep -q "git clone" "$ENTRYPOINT"; then
|
||||
echo "✅ git clone found"
|
||||
else
|
||||
echo "❌ git clone NOT found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check for git pull
|
||||
echo "📋 Checking for git pull functionality..."
|
||||
if grep -q "git.*pull\|git fetch\|git reset" "$ENTRYPOINT"; then
|
||||
echo "✅ git pull/fetch/reset found"
|
||||
else
|
||||
echo "❌ git pull/fetch/reset NOT found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check for composer install
|
||||
echo "📋 Checking for composer install..."
|
||||
if grep -q "composer install" "$ENTRYPOINT"; then
|
||||
echo "✅ composer install found"
|
||||
else
|
||||
echo "❌ composer install NOT found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "📝 Relevant entrypoint.sh sections:"
|
||||
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
||||
grep -A 60 "Git Clone/Pull functionality" "$ENTRYPOINT" | head -65
|
||||
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
||||
echo ""
|
||||
echo "✅ All checks passed! Entrypoint.sh contains Git functionality."
|
||||
Reference in New Issue
Block a user