Small utility that loads OSM planet data into PosgresSQL.
Utility does the following:
- Creates GCP instance with 4 SSD (1.5TB)
- Bootstraps instance with dependencies (
src/install.sh
) - Copies
src/load.sh
to instance.
Usage:
$ ./osm-loader.sh
Creating instance...
Waiting for instance to become ready...
Connection to 35.231.43.211 port 22 [tcp/ssh] succeeded!
Instance is ready!
Copying load.sh script to instance...
load.sh 100% 404 3.3KB/s 00:00
Usage:
SSH into instance:
$ gcloud compute ssh osm-loader
Check bootstrap progress:
$ sudo journalctl -u google-startup-scripts.service
Run load.sh in background...
$ nohup nohup bash load.sh &
Check load.sh progress...
$ tail -f nohup.out
Cleanup:
$ gcloud compute instances delete osm-loader