MobilityData / gtfs-validator

Canonical GTFS Validator project for schedule (static) files.
https://gtfs-validator.mobilitydata.org/
Apache License 2.0
278 stars 100 forks source link

Bug: Running using documented Docker documentation fails #1111

Open e-lo opened 2 years ago

e-lo commented 2 years ago

Bug report

Describe the bug I followed the directions in readme.md for running app via Docker but it did not work. Suspect documentation just needs to be adjusted.

How we reproduce the bug Steps to reproduce the behaviour:

  1. docker pull ghcr.io/mobilitydata/gtfs-validator
  2. docker run -v /myDirectory:/theContainerDirectory -it ghcr.io/mobilitydata/gtfs-validator:latest (with appropriate substitutions)
  3. java -jar gtfs-validator-v-snapshot_cli.jar -u https://content.amtrak.com/content/gtfs/GTFS.zip (or whatever .zip)_

Expected behaviour Runs validator on specified URL or file.

Observed behaviour Opens a Java command line // which failes with the java -jar command.

Environment versions

derhuerst commented 2 years ago

When fixing this bug, the ergonomics of the Docker image could also be improved:

themightychris commented 2 years ago

My pull request #1120 implements much of @derhuerst 's suggestions above—would love your feedback over there!