From a73c8a3a20d4db81ea3942ed6354c759569c9f34 Mon Sep 17 00:00:00 2001 From: pacnpal <183241239+pacnpal@users.noreply.github.com> Date: Tue, 28 Jan 2025 22:43:40 -0500 Subject: [PATCH] feat(docker): add debugging outputs to entrypoint script for improved diagnostics --- docker-entrypoint.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index e61a7a0..45d9aa9 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -24,9 +24,27 @@ check_package() { log "Python version:" python3 --version + # Debug: Show current directory and its contents + log "Current directory: $(pwd)" + log "Directory contents:" + ls -la + + # Debug: Show /app directory contents + log "Contents of /app directory:" + ls -la /app + + # Debug: Show /app/src directory contents + log "Contents of /app/src directory:" + ls -la /app/src || echo "src directory not found" + log "Verifying package files..." if [ ! -d "/app/src/simpleguardhome" ]; then log "ERROR: Package directory not found!" + log "Contents of parent directories:" + ls -la / + ls -la /app || echo "/app not found" + log "Full path check:" + find / -name "simpleguardhome" 2>/dev/null || echo "No simpleguardhome directory found" exit 1 fi