A command-line tool for processing GOBI order marc files (.ord). Input files can be mounted anywhere on the filesystem, but by default the program looks at ./data/incoming/*.ord. Output files are written to ./data/gobi_processed. original input file are moved to ./data/incoming/processed after being processed.
docker-compose buildView the CLI tool help/description:
docker-compose run --rm gobi helpAdds test data to the default watch directory:
docker-compose run --rm gobi seedDeletes seed data and output files:
docker-compose run --rm gobi clearDeletes seed data and output files and reseeds with new data:
docker-compose run --rm gobi refresh Run the app in the background. It will continue running, monitoring for .ord files to process every 10s.
docker-compose up -d
docker-compose logs -f # view processing logs in real timeProcess a specific file:
docker-compose run --rm gobi process /abs/path/to/myfile.ord # absolute path
docker-compose run --rm gobi process data/incoming/somefile.ord # relative pathMonitor a directory for incoming Gobi files and process them. If no options are given it will use the default directories used locally
docker run --rm gobi watch --out_dir '/path_to_processed_gobi_directory_for_Alma' --input_dir '/path_to_incoming_gobi_files' --done_dir '/path_where_raw_Gobi_file_goes_after_processing'Run against a single Gobi file. If out_dir and done_dir options are missing it will use the default directories used locally
docker run -rm gobi process 'path_to_gobi_file' --out_dir 'path_to_processed_gobi_directory_for_Alma' --done_dir '/path_where_raw_Gobi_file_goes_after_processing'