HSLdevcom / OpenTripPlanner

An open source multi-modal trip planner
http://www.opentripplanner.org
Other
33 stars 31 forks source link

Unable to run docker image in Google Cloud #375

Closed manuelsilverio closed 8 months ago

manuelsilverio commented 1 year ago

NOTE: this issue system is intended for reporting bugs and tracking progress in software development. For all other usage and software development questions or discussion, please write to the user mailing list(https://groups.google.com/forum/#!forum/opentripplanner-users) or post a question in the developer chat: https://gitter.im/opentripplanner/OpenTripPlanner.

Expected behavior

Image should be deployed succesfully

Observed behavior

When attempting to deploy image in cloud run I get the following error:

I think it could be related to the API key that is now needed to access routing data

Version of OTP used (exact commit hash or JAR name)

I used the latest image from docker hub: https://hub.docker.com/r/hsldevcom/opentripplanner

Data sets in use (links to GTFS and OSM PBF files)

Command line used to start OTP

On the cloud shell of Google Cloud platform (linux) I used this:

These commands pull tag and push the container image to the container registry of GCP.

Router config and graph build config JSON

Steps to reproduce the problem

On GCP open the cloud shell and run this:

I hope I have provided enough information. Let me know if you need any more details.

optionsome commented 1 year ago

Hi, API key is now indeed required. You can find more information in https://digitransit.fi/en/developers/api-registration/ . We run this docker image within the same environment as where the data resides so we haven't needed the API keys in our calls and therefore the code lacks support for setting those keys. We are probably not going to add support for it in the near future but you can create a pr that adds the support and we can merge it. The file you need to edit is https://github.com/HSLdevcom/OpenTripPlanner/blob/dev-1.x/run.sh

manuelsilverio commented 1 year ago

Thanks, I will have a look at it and try to make it work.