Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Prepare openrouteservice #13

Open
paddyroddy opened this issue May 23, 2023 · 2 comments
Open

Prepare openrouteservice #13

paddyroddy opened this issue May 23, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@paddyroddy
Copy link
Member

paddyroddy commented May 23, 2023

See this YouTube video.

  1. Download docker compose file
wget https://raw.githubusercontent.com/GIScience/openrouteservice/master/docker-compose.yml
  1. Download data
wget http://download.geofabrik.de/europe/great-britain/england-latest.osm.pbf
  1. Modify docker-compose.yml
  • If running on ARM chip, add platform: linux/x86_64 to ors-app
  • Change -Xmx2g to -Xmx5g. The England data is 1.2 GB and need about 2* the memory per profile.
  • Change #- ./your_osm.pbf:/home/ors/ors-core/data/osm_file.pbf to - ./england-latest.osm.pbf:/home/ors/ors-core/data/osm_file.pbf
  1. Create directories for volumes to mount as local user
mkdir -p conf elevation_cache graphs logs/ors logs/tomcat
  1. Start server
docker compose up -d
  1. Check logs
docker compose logs -ft

They will say org.apache.catalina.startup.Catalina.start Server startup in when ready
7. Stop server

docker compose down
  1. Modify docker/conf/ors-config.json. Changing
"profiles": {
  "active": [
    "car"
  ],

to

"profiles": {
  "active": [
    "car",
    "bike-regular"
  ],
  1. Restart server
docker compose up -d
  1. Check server health http://localhost:8080/ors/v2/health wait until ready
  2. Add URL to OPENROUTESERVICE_BASE_URL in .envrc
@paddyroddy paddyroddy self-assigned this May 23, 2023
@paddyroddy paddyroddy added the enhancement New feature or request label May 23, 2023
@paddyroddy paddyroddy mentioned this issue May 23, 2023
@paddyroddy
Copy link
Member Author

Had this working locally for car. Seems quite buggy, various answers can be found at ask.openrouteservice.org. Ultimately, we'll need this running on the server. Then can check if #9 works as expected.

@paddyroddy
Copy link
Member Author

Have this set this up on the EC2 instance. Need to then check if I can ping it from the actions.

@paddyroddy paddyroddy removed their assignment Oct 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant