Open e-lo opened 2 years ago
When fixing this bug, the ergonomics of the Docker image could also be improved:
ENTRYPOINT
directive to the Dockerfile, I could specify the URL to validate directly with the docker run
command, without having to enter it into the shell as currently documented./app
) instead of /
is a best practice, because figuring out which tools are available to run is a lot easier then.docker pull
in the docs is optional, docker run
will pull automatically if the image is missing. If you want to force updating the image, you can pass --pull always
to docker run
(but I can see that this makes the command more confusing).openjdk
Docker base image, which doesn't have the full Debian Linux userland, but a slimmed down version, usually Alpine Linux. This reduces size and speed of the Docker image.My pull request #1120 implements much of @derhuerst 's suggestions above—would love your feedback over there!
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:
docker pull ghcr.io/mobilitydata/gtfs-validator
docker run -v /myDirectory:/theContainerDirectory -it ghcr.io/mobilitydata/gtfs-validator:latest
(with appropriate substitutions)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