Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed build for missing file #1887

Open
1 task done
godsgood33 opened this issue Nov 7, 2024 · 3 comments
Open
1 task done

Failed build for missing file #1887

godsgood33 opened this issue Nov 7, 2024 · 3 comments

Comments

@godsgood33
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Problem description

I am attempting to follow the instructions at https://giscience.github.io/openrouteservice/run-instance/running-with-docker. Receive the following error when attempting to build docker container receive the following error

image

This is the folder/file tree in that directory

image

Proposed solution

Unknown

Additional context

No response

Forum Topic Link

No response

@TheGreatRefrigerator
Copy link
Contributor

Hi @godsgood33,
it seems you are trying to build the docker image from source, without the sources.
If you do that you need to check out the full repository as the Dockerfile will try to copy those folders to the image from our repo root: https://github.com/GIScience/openrouteservice.
Hence copy from ors-api to /tmp/ors/ors-api fails.

If you just want to run ors without customization, best just edit the docker-compose.yml to use your pbf file and use the official image (see last text block in https://giscience.github.io/openrouteservice/run-instance/building-from-source#build-docker-image)

@godsgood33
Copy link
Author

@TheGreatRefrigerator I'm just following the direction with the "pre-built" docker container. The docker-compose file has a build and image statement in it. Maybe I should remove the build statement? None of the file comments say anything about removing it if you want a pre-built image. I don't need any customizations.

@TheGreatRefrigerator
Copy link
Contributor

If you followed these 2 steps, you should have a running container with the default pbf and the ors-docker folder created from the volume:

abutzer@HGH0090 /tmp/ors
  % wget https://github.com/GIScience/openrouteservice/releases/latest/download/docker-compose.yml                                         !10010
--2024-11-08 13:35:02--  https://github.com/GIScience/openrouteservice/releases/latest/download/docker-compose.yml
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github.com/GIScience/openrouteservice/releases/download/v8.2.0/docker-compose.yml [following]
--2024-11-08 13:35:03--  https://github.com/GIScience/openrouteservice/releases/download/v8.2.0/docker-compose.yml
Reusing existing connection to github.com:443.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/103155862/cba1b1e5-6b8b-4f60-b470-4d32fe69d91f?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20241108%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20241108T123503Z&X-Amz-Expires=300&X-Amz-Signature=697dad37d374ce7583528d5a1da5a49cbc1638a8f1b333de79fc2270e6d17742&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Ddocker-compose.yml&response-content-type=application%2Foctet-stream [following]
--2024-11-08 13:35:03--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/103155862/cba1b1e5-6b8b-4f60-b470-4d32fe69d91f?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20241108%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20241108T123503Z&X-Amz-Expires=300&X-Amz-Signature=697dad37d374ce7583528d5a1da5a49cbc1638a8f1b333de79fc2270e6d17742&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Ddocker-compose.yml&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.111.133, 185.199.109.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5282 (5.2K) [application/octet-stream]
Saving to: ‘docker-compose.yml’

docker-compose.yml                   100%[====================================================================>]   5.16K  --.-KB/s    in 0s

2024-11-08 13:35:03 (11.7 MB/s) - ‘docker-compose.yml’ saved [5282/5282]


abutzer@HGH0090 /tmp/ors
  % la                                                                                                                                     !10011
total 16
-rw-r--r--  1 abutzer  wheel   5.2K Oct  9 11:30 docker-compose.yml

abutzer@HGH0090 /tmp/ors
  % docker compose up -d

abutzer@HGH0090 /tmp/ors
  % la                                                                                                                                     !10014
total 16
-rw-r--r--  1 abutzer  wheel   5.2K Oct  9 11:30 docker-compose.yml
drwxr-xr-x@ 7 abutzer  wheel   224B Nov  8 13:35 ors-docker

abutzer@HGH0090 /tmp/ors
  % cd ors-docker                                                                                                                          !10015

abutzer@HGH0090 /tmp/ors/ors-docker
  % la                                                                                                                                     !10016
total 0
drwxr-xr-x@ 5 abutzer  wheel   160B Nov  8 13:35 config
drwxr-xr-x@ 3 abutzer  wheel    96B Nov  8 13:35 elevation_cache
drwxr-xr-x@ 3 abutzer  wheel    96B Nov  8 13:35 files
drwxr-xr-x@ 3 abutzer  wheel    96B Nov  8 13:35 graphs
drwxr-xr-x@ 3 abutzer  wheel    96B Nov  8 13:35 logs

What you should not have is Dockerfile and .dockerignore

If you now move your pbf to ./ors-docker/files
and change the entry in ./ors-docker/config/ors-config.yml from
source_file: /home/ors/files/example-heidelberg.osm.gz
to
source_file: /home/ors/files/north-america-latest.osm.pbf

After you remove the ./ors-docker/graphs folder and restart ors, it should build for NA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants