Skip to content

cga-harvard/routing_app

 
 

Repository files navigation

Create a env

conda env create --file environment.yml

Run the App

conda activate routing_app
# panel serve testing_app.ipynb
panel serve --port 5006 --address 0.0.0.0 --allow-websocket-origin=199.94.60.108:5006 testing_app.ipynb 

Docker deployment

docker build -t routing_app:0.1 .  
docker run -p 5006:5006 routing_app:0.1

backend

  1. Download the planet.osm.pbf file from here
  2. follow the instruction here
wget https://download.bbbike.org/osm/planet/planet-latest.osm.pbf
# install docker in ubuntu
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo \
  "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin 

# docker-compose-plugin

sudo apt-get update
# sudo apt-get install docker-compose-plugin

sudo docker run hello-world
# docker compose version
# it may take a while
# sudo docker run -t -v "${PWD}:/data" ghcr.io/project-osrm/osrm-backend osrm-extract -p /opt/car.lua /data/planet-latest.osm.pbf || echo "osrm-extract failed"

use the this url for openshift deployment

routing-ui-gis-data-science-big-data-projects-at-cga.apps.shift.nerc.mghpcc.org

Tips

Create a biger swap file, please refer to here

To do

  • add the backend

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 98.1%
  • Python 1.5%
  • Dockerfile 0.4%