UCL / ioe-student-school-allocation

Public release of the code for paper 846 of AGILE2023
BSD 3-Clause "New" or "Revised" License
4 stars 2 forks source link

Prepare `openrouteservice` #13

Open paddyroddy opened 1 year ago

paddyroddy commented 1 year ago

See this YouTube video.

  1. Download docker compose file
    wget https://raw.githubusercontent.com/GIScience/openrouteservice/master/docker-compose.yml
  2. Download data
    wget http://download.geofabrik.de/europe/great-britain/england-latest.osm.pbf
  3. 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
  4. Create directories for volumes to mount as local user
    mkdir -p conf elevation_cache graphs logs/ors logs/tomcat
  5. Start server
    docker compose up -d
  6. 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
  8. Modify docker/conf/ors-config.json. Changing
    "profiles": {
    "active": [
    "car"
    ],

    to

    "profiles": {
    "active": [
    "car",
    "bike-regular"
    ],
  9. Restart server
    docker compose up -d
  10. Check server health http://localhost:8080/ors/v2/health wait until ready
  11. Add URL to OPENROUTESERVICE_BASE_URL in .envrc
paddyroddy commented 1 year ago

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 commented 1 year ago

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