I took the instruction from here: https://github.com/graphhopper/graphhopper/tree/master/reader-gtfs and tried to merge it into docker-compose.
In Dockerfile, nothing has changed, since the -D options from the PT example go into docker-compose.yml, overinging environment variables, and they get into command line correctly (see below).
I got the
gfts files of Germany/Brandenburg, as in the example. But Graphhopper says
"vehicle pt not supported":
gr | ## now web. JAVA_OPTS=-server -Xconcurrentio -Xmx1g -Xms1g -XX:+UseG1GC -XX:MetaspaceSize=100M -Dgraphhopper.datareader.file=/data/data.osm.pbf -Dgraphhopper.gtfs.file=/data/gtfs-vbb.zip -Dgraphhopper.graph.flag_encoders=pt -Dgraphhopper.prepare.ch.weightings=no -Dgraphhopper.graph.location=./graph-cache gr | 2018-05-28 21:44:25,332 [main] INFO com.graphhopper.http.CmdArgsModule - jsonp disabled gr | Exception in thread "main" com.google.inject.ProvisionException: Unable to provision, see the following errors: gr | gr | 1) Error in custom provider, java.lang.IllegalArgumentException: entry in encoder list not supported pt
(JAVA_OPTS has this line like in the example:
Error message is: entry in encoder list not supported pt
I looked through the docs in
reader-gtfs folder, but did not find anything that I could have missed. Should I build graphhopper with more options?
I ran the code on 0.10 branch.