Error in docker compose

Hi everyone,

I´m trying to get my instance of openrouteservice off the ground, but as i´m a newbie to a lot of the tools used it’s a little bit confusing. I followed the guide in github but the docker compose fails every time on step 10/13. This is the Error message that i get:

ERROR: Service ‘ors-app’ failed to build: The command ‘/bin/sh -c wget -q https://archive.apache.org/dist/tomcat/tomcat-8/v8.5.39/bin/apache-tomcat-8.5.39.tar.gz -O /tmp/tomcat.tar.gz && cd /tmp && tar xvfz tomcat.tar.gz && mkdir /usr/local/tomcat /ors-conf && cp -R /tmp/apache-tomcat-8.5.39/* /usr/local/tomcat/ && apt-get update -qq && apt-get install -qq -y locales nano maven moreutils jq && locale-gen en_US.UTF-8 && cp /ors-core/openrouteservice/src/main/resources/app.config.sample /ors-core/openrouteservice/src/main/resources/app.config && jq ‘.ors.services.routing.sources[0] = “data/osm_file.pbf”’ /ors-core/openrouteservice/src/main/resources/app.config |sponge /ors-core/openrouteservice/src/main/resources/app.config && jq ‘.ors.services.routing.profiles.default_params.elevation_cache_path = “data/elevation_cache”’ /ors-core/openrouteservice/src/main/resources/app.config |sponge /ors-core/openrouteservice/src/main/resources/app.config && jq ‘.ors.services.routing.profiles.default_params.graphs_root_path = “data/graphs”’ /ors-core/openrouteservice/src/main/resources/app.config |sponge /ors-core/openrouteservice/src/main/resources/app.config && jq ‘.ors.services.routing.init_threads = 1’ /ors-core/openrouteservice/src/main/resources/app.config |sponge /ors-core/openrouteservice/src/main/resources/app.config && jq ‘del(.ors.services.routing.profiles.active[1,2,3,4,5,6,7,8])’ /ors-core/openrouteservice/src/main/resources/app.config |sponge /ors-core/openrouteservice/src/main/resources/app.config’ returned a non-zero code: 4

I’ve tried looking at other posts in the forum, but i cannot see anyone with the same problem as I.

Thanks to everyone.

Ferr

I forgot to add the docker compose file that I’m using.

version: '2.4'
services:
  ors-app:
	container_name: ors-app
	ports:
  	- 8080:8080
  	- 9001:9001
	image: openrouteservice/openrouteservice:latest
	build:
  	context: ../
  	args:
    	APP_CONFIG: ./openrouteservice/src/main/resources/app.config.sample
    	OSM_FILE: ./spain-latest.osm.pbf
	volumes:
  	- ./graphs:/ors-core/data/graphs
  	- ./elevation_cache:/ors-core/data/elevation_cache
  	- ./logs/ors:/var/log/ors
  	- ./logs/tomcat:/usr/local/tomcat/logs
  	- ./conf:/ors-conf
  	- ./spain-latest.osm.pbf:/ors-core/data/osm_file.pbf
	environment:
  	- BUILD_GRAPHS=False  # Forces the container to rebuild the graphs, e.g. when PBF is changed
  	- "JAVA_OPTS=-Djava.awt.headless=true -server -XX:TargetSurvivorRatio=75 -XX:SurvivorRatio=64 -XX:MaxTenuringThreshold=3 -XX:+UseG1GC -XX:+ScavengeBeforeFullGC -XX:ParallelGCThreads=4 -Xms1g -Xmx2g"
  	- "CATALINA_OPTS=-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9001 -Dcom.sun.management.jmxremote.rmi.port=9001 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=localhost"