ame-job-manager/entrypoint.sh
Claude 1c61d953fd refactor: Switch to host-level SMB mounting (bind-mount approach)
- Remove container-level CIFS mounting (requires SYS_ADMIN capability)
- Use docker-compose.yml bind-mounts from host (/mnt/smb-ame/*)
- Simplify entrypoint.sh to just verify mount points exist
- Include mount command in comments for host setup
- More reliable and doesn't require Docker capability grants

To use:
1. Mount SMB on host: sudo mount -t cifs //172.18.210.5/ame /mnt/smb-ame \
   -o username=smb,password=Production2020!,uid=1000,gid=1000,file_mode=0755,dir_mode=0755,vers=3.0
2. Update /etc/fstab to persist mount across reboots
3. Start container: docker compose up -d

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-03-31 16:12:59 -04:00

18 lines
502 B
Bash
Executable file

#!/bin/bash
set -e
echo "=== AME Remote Job Manager — Entrypoint ==="
# 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"
else
echo "$mount_point not found — ensure SMB share is mounted on host"
mkdir -p "$mount_point"
fi
done
echo "Starting Node.js application..."
exec node server.js