Best way to invoke from a python program #1665
-
Hi, big thanks to the developers and hosters of this tool, it's a big improvement over the old google feedvalidator. I have a python backend deployed on a server, where, as part of the gtfs output flow I want it to be able to "call" this program and get the report.json it produces in return. Now the best thing would be if this was available as an api call. But I understand that's not the makeup of the program as it currently is. (but this could be a worthy api-wrapper project, tip for those looking for contribution opportunities) Still, I'd like to know which ways have been tried out by folks. Would anybody know what to add to Dockerfile to ensure that the .jar works inside the docker container? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Got it! Have to add this line in my dockerfile:
I included the .jar in my code folder, it's sitting next to my python files.
here, a persistent volume with rw permissions is mounted on /home/output/ path, and this ensures that the java program has the necessary permissions to run and write the output files here. Once the shell process has completed, I'm picking up the html and json files created in the output folder for next steps. |
Beta Was this translation helpful? Give feedback.
-
Hi @answerquest, welcome aboard! I'm glad that you found a solution, and the community really appreciates that you shared it back with a detailed explanation. Thanks! |
Beta Was this translation helpful? Give feedback.
Got it! Have to add this line in my dockerfile:
I included the .jar in my code folder, it's sitting next to my python files.
Once this is baked in, I'm able to successfully run this shell command from my py…