Q-Cloud File Parser Container Run and Cron Examples

The parser is designed as a one-shot container and can run under any compatible container runtime. Each run scans the mounted input directory, processes the matching files, emits a summary, and exits.

Docker Run: Minimal Invocation

docker run --rm \
  -v /srv/qcloud/in:/data/input \
  -e QWEB_USERNAME=my-user \
  -e QWEB_PASSWORD=my-password \
  -e URL=https://api.example \
  registry.acgpulse.se/qcloud-file-parser:3.0.0

Use PARSER_MODE=zwz or PARSER_MODE=unilinunimat when you want one of the laundry integrations instead of the generic ACG file interface. Set FILE_REGEX for those modes.

Run Every 5 Minutes With Cron

  1. Put runtime values in a local env file and restrict access:

QWEB_USERNAME=my-user
QWEB_PASSWORD=my-password
URL=https://api.example
PARSER_MODE=acg
chmod 600 /etc/qcloud-file-parser/parser.env
  1. Add this crontab entry (crontab -e) to run every 5 minutes:

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
*/5 * * * * /usr/bin/docker run --rm --env-file /etc/qcloud-file-parser/parser.env -v /srv/qcloud/in:/data/input registry.acgpulse.se/qcloud-file-parser:3.0.0 >> /var/log/qcloud-file-parser.log 2>&1

If you need supplier-mode routing or dry-run execution, add extra variables to the env file.