2026-03-31 16:03:40 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
echo "=== AME Remote Job Manager — Entrypoint ==="
|
|
|
|
|
|
2026-03-31 16:12:59 -04:00
|
|
|
# Verify mount points are accessible (mounted by host via docker-compose.yml bind-mounts)
|
|
|
|
|
echo "Checking mount points..."
|
|
|
|
|
for mount_point in /watch /output /ame-logs; do
|
|
|
|
|
if [ -d "$mount_point" ]; then
|
|
|
|
|
echo "✓ $mount_point is accessible"
|
2026-03-31 16:03:40 -04:00
|
|
|
else
|
2026-03-31 16:12:59 -04:00
|
|
|
echo "⚠ $mount_point not found — ensure SMB share is mounted on host"
|
|
|
|
|
mkdir -p "$mount_point"
|
2026-03-31 16:03:40 -04:00
|
|
|
fi
|
2026-03-31 16:12:59 -04:00
|
|
|
done
|
2026-03-31 16:03:40 -04:00
|
|
|
|
|
|
|
|
echo "Starting Node.js application..."
|
|
|
|
|
exec node server.js
|