gis-ops / docker-valhalla

This is our flexible Docker repository for the Valhalla routing engine
MIT License
249 stars 71 forks source link

docker-compose: sudo: /valhalla/scripts/configure_valhalla.sh: command not found #55

Closed mickael-bdias closed 2 years ago

mickael-bdias commented 2 years ago

Hello all,

I used the Dockerfile to build the image (just changed the ports). And then:

When I tried to use docker-compose:

Creating valhalla ... done Attaching to valhalla valhalla | valhalla | INFO: Running container with user valhalla UID 59999 and GID 59999. valhalla | valhalla | sudo: /valhalla/scripts/configure_valhalla.sh: command not found

Thanks.

nilsnolde commented 2 years ago

hm not sure.. without exact commands and the docker-compose it's also impossible to tell. does the pre-built image from dockerhub/github work for you?

mickael-bdias commented 2 years ago
  1. I used the Dockerfile and scripts of this repo
  2. Build the image (just changed the ports to 6001 and named to valhalla:0.0.6)
  3. docker-compose up --build

docker-compose.yml version: '3.0' services: valhalla: image: valhalla:0.0.6 restart: always container_name: valhalla ports:

PS: I´ve a directory named 'valhalla' inside this dir:

  1. dir custom_files
  2. dir scripts
  3. Dockerfile
  4. docker-compose.yml

Thank you!

mickael-bdias commented 2 years ago

This is main difference of the Dockerfile:

Expose the necessary port

EXPOSE 6001 ENTRYPOINT ["/valhalla/scripts/run.sh"] CMD ["build_tiles"]

nilsnolde commented 2 years ago

still don't know actually.. the script is copied in our dockerfile: https://github.com/gis-ops/docker-valhalla/blob/058ba03e13bee73f95ac5d28ac109fac15d50e32/Dockerfile#L54. so somehow you must've deviated from that. our image builds fine, just 2 days ago on dockerhub. good luck still!