simplify: Remove unnecessary bind-mounts in entrypoint
- Docker-compose already handles the bind-mounts via volumes config - Entrypoint now just creates subdirectories and verifies access - Removes 'Could not bind' warnings that were noise - Cleaner startup logs Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
ba39da5098
commit
67533c1b24
1 changed files with 2 additions and 10 deletions
|
|
@ -20,18 +20,10 @@ else
|
|||
|
||||
# Create subdirectories if they don't exist
|
||||
mkdir -p "$SMB_SHARE/watch" "$SMB_SHARE/output" "$SMB_SHARE/logs"
|
||||
|
||||
# Bind-mount SMB subdirectories to container paths
|
||||
mkdir -p "$WATCH_DIR" "$OUTPUT_DIR" "$LOGS_DIR"
|
||||
|
||||
mount --bind "$SMB_SHARE/watch" "$WATCH_DIR" 2>/dev/null || echo "⚠ Could not bind watch folder"
|
||||
mount --bind "$SMB_SHARE/output" "$OUTPUT_DIR" 2>/dev/null || echo "⚠ Could not bind output folder"
|
||||
mount --bind "$SMB_SHARE/logs" "$LOGS_DIR" 2>/dev/null || echo "⚠ Could not bind logs folder"
|
||||
|
||||
echo "✓ Mount points configured"
|
||||
echo "✓ Subdirectories ready"
|
||||
fi
|
||||
|
||||
# Verify paths exist
|
||||
# Verify paths are accessible (docker-compose handles the bind-mounts)
|
||||
echo "Verifying mount points..."
|
||||
for dir in "$WATCH_DIR" "$OUTPUT_DIR" "$LOGS_DIR"; do
|
||||
if [ -d "$dir" ]; then
|
||||
|
|
|
|||
Loading…
Reference in a new issue