ITxPT / DATA4PTTools

Shared space for the development of the DATA4PT Greenlight NeTEx validation tool(s)
MIT License
10 stars 2 forks source link

Cannot validate local file #16

Closed fchabouis closed 1 year ago

fchabouis commented 2 years ago

Hello, I'm trying to give the tool a first spin.

docker run -it -v /home/francis/Downloads/TBM_NeTEx/bordeaux_metropole-aggregated-netex.zip:/greenlight/documents lekojson/greenlight
stat /root/.greenlight/documents: no such file or directory

I've tried to work with an uncompressed netex directory, but I get the same error. Any advice? Thanks!

lekotros commented 2 years ago

There's a bug in the file loader resulting in an early exit, a workaround until this is fixed is to add -i /greenlight

e.g.

docker run -it -v /home/francis/Downloads/TBM_NeTEx/bordeaux_metropole-aggregated-netex.zip:/greenlight/documents lekojson/greenlight -i /greenlight
fchabouis commented 2 years ago

thanks, the workaround is working

lekotros commented 1 year ago

Specifying where input files are located (e.g. -i /greenlight) have been adopted to be the expected procedure and the documentation have been updated accordingly