-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
fetch_git() { | ||
git clone https://github.com/hikeratlas/basemap.git | ||
} | ||
|
||
# A rough-and-ready script to configure a Hetzner CAX41 box to do a build | ||
# of the world, and publish it to R2. | ||
|
||
wget https://download.geofabrik.de/north-america/canada/nova-scotia-latest.osm.pbf | ||
|
||
apt-get update | ||
apt-get dist-upgrade --yes | ||
|
||
apt install libboost-dev libboost-filesystem-dev libboost-iostreams-dev libboost-program-options-dev libboost-system-dev libluajit-5.1-dev libshp-dev libsqlite3-dev rapidjson-dev zlib1g-dev luarocks lua-sql-sqlite3 --yes | ||
curl -fsSL https://bun.sh/install | bash | ||
ln -s ~/.bun/bin/bun /usr/bin/bun | ||
|
||
( cd basemap && bun install ) | ||
|
||
( cd basemap && wget --progress=dot:giga https://github.com/hikeratlas/qrank/releases/download/latest/qrank.db ) | ||
|
||
( cd basemap && wget --progress=dot:giga https://osmdata.openstreetmap.de/download/water-polygons-split-4326.zip && unzip water-polygons-split-4326.zip && mv water-polygons-split-4326 slices/coastline ) |