diff --git a/.github/workflows/tilemaker-layers.yml b/.github/workflows/tilemaker-layers.yml index 742f789..019a360 100644 --- a/.github/workflows/tilemaker-layers.yml +++ b/.github/workflows/tilemaker-layers.yml @@ -7,10 +7,8 @@ jobs: build: runs-on: ubuntu-latest env: - #AREA: north-america - #BBOX: --bbox -170,20,-48,75 - - AREA: nova-scotia + AREA: north-america + BBOX: --bbox -170,20,-48,75 strategy: matrix: diff --git a/prod/build-all b/prod/build-all new file mode 100755 index 0000000..6b0ad09 --- /dev/null +++ b/prod/build-all @@ -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 )