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 bfs helpAdds test data to the default watch directory:
docker-compose run --rm bfs 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 bfs watch /path/in/container # absolute path
docker-compose run --rm bfs watch data/somedir # path relative to /opt/app-root/srcProcess a specific file:
docker-compose run --rm bfs process /abs/path/to/myfile.xml # absolute path
docker-compose run --rm bfs process data/invoicing/pay/somefile.xml # relative pathDelete previously processed files and error logs:
docker-compose run --rm bfs clear