conda env create --file environment.yml
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 build -t routing_app:0.1 .
docker run -p 5006:5006 routing_app:0.1
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
Create a biger swap file, please refer to here
- add the backend