A command-line tool for processing BFS .xml files. Input files can be mounted anywhere on the filesystem, but by default the program looks at ./data/invoicing/pay/*.xml. Output files are written to ./data/processed (originals and re-formatted files) and ./data/rejected (error logs).
docker compose buildView the CLI tool help/description:
docker compose run --rm app helpAdds test data to the default watch directory:
docker compose run --rm app seedRun the app in the background. It will continue running, monitoring for .xml files to process every 10s.
docker compose up -d
docker compose logs -f # view processing logs in real timeWatch a non-standard directory:
docker compose run --rm app watch /path/in/container # absolute path
docker compose run --rm app watch data/somedir # path relative to /opt/appProcess a specific file:
docker compose run --rm app process /abs/path/to/myfile.xml # absolute path
docker compose run --rm app process data/invoicing/pay/somefile.xml # relative pathDelete previously processed files and error logs:
docker compose run --rm app clear