This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terraform { | |
required_providers { | |
google = { | |
source = "hashicorp/google" | |
version = "4.51.0" | |
} | |
} | |
} | |
variable "project" { } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -it \ | |
-v nominatim-flatnode:/nominatim/flatnode \ | |
-e PBF_URL=https://download.geofabrik.de/south-america-latest.osm.pbf \ | |
-e REPLICATION_URL=https://download.geofabrik.de/south-america-updates \ | |
-e UPDATE_MODE=catch-up \ | |
-e REVERSE_ONLY=true \ | |
--shm-size=16g \ | |
-p 8080:8080 \ | |
--name nominatim \ | |
mediagis/nominatim:4.4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -it \ | |
-v nominatim-flatnode:/nominatim/flatnode \ | |
-e PBF_URL=https://osm-pds.s3.us-east-1.amazonaws.com/planet-latest.osm.pbf \ | |
-e REVERSE_ONLY=true \ | |
--shm-size=16g \ | |
-p 8080:8080 \ | |
--name nominatim \ | |
mediagis/nominatim:4.4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update | |
apt install -y docker.io | |
mkdir custom_files | |
#wget https://download.geofabrik.de/south-america/chile-latest.osm.pbf | |
wget https://download.geofabrik.de/south-america/brazil-latest.osm.pbf | |
#wget https://download.geofabrik.de/africa/morocco-latest.osm.pbf | |
mv -v *.pbf custom_files | |
docker run -dt --name valhalla_gis-ops -p 8002:8002 -v $PWD/custom_files:/custom_files ghcr.io/gis-ops/docker-valhalla/valhalla:latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -dt \ | |
-v $PWD/custom_files:/custom_files \ | |
-v nominatim-flatnode:/nominatim/flatnode \ | |
-e PBF_PATH=/custom_files/brazil-latest.osm.pbf \ | |
-e REVERSE_ONLY=true \ | |
-p 8080:8080 \ | |
--name nominatim \ | |
mediagis/nominatim:4.4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map $http_upgrade $connection_upgrade { | |
default upgrade; | |
'' close; | |
} | |
server { | |
listen 80; | |
location / { | |
proxy_pass http://127.0.0.1:8069; | |
proxy_http_version 1.1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt update | |
apt install -y nginx | |
wget -O /etc/nginx/sites-enabled/default https://gist.githubusercontent.com/jcardus/bf078cc0c4d026cfdb42279883f1ad27/raw | |
service nginx restart | |
snap install docker | |
echo "Waiting for Docker to start..." | |
sleep 10 | |
docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres --name db postgres:15 | |
docker run -p 8069:8069 --name odoo --link db:db odoo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run \ | |
--name traccar \ | |
--hostname traccar \ | |
--detach \ | |
--restart unless-stopped \ | |
--publish 8082:8082 \ | |
--publish 5000-5150:5000-5150 \ | |
--publish 5000-5150:5000-5150/udp \ | |
--volume /root/traccar/logs:/opt/traccar/logs:rw \ | |
--volume /root/traccar/traccar.xml:/opt/traccar/conf/traccar.xml:ro traccar/traccar:latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import subprocess | |
import requests | |
from flask import Flask, request, send_file, jsonify | |
import base64 | |
TRACCAR_SERVER_URL = "." | |
app = Flask(__name__) |