From: Grant Slater Date: Tue, 2 Apr 2024 16:55:41 +0000 (+0100) Subject: imagery: switch to volume mount for imagery X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/18db4c72edea0d2cd4df5b7d7d9011df618d0ff9 imagery: switch to volume mount for imagery --- diff --git a/cookbooks/imagery/recipes/tiler.rb b/cookbooks/imagery/recipes/tiler.rb index f1f06015a..f5eff5c66 100644 --- a/cookbooks/imagery/recipes/tiler.rb +++ b/cookbooks/imagery/recipes/tiler.rb @@ -20,6 +20,13 @@ include_recipe "imagery" include_recipe "podman" +directory "/store/imagery" do + owner "root" + group "root" + mode "755" + recursive true +end + # FIXME: until upstream supports arm64 images: https://github.com/developmentseed/titiler/pull/740 container_image = if arm? "ghcr.io/firefishy/titiler:latest" @@ -31,6 +38,7 @@ podman_service "titiler" do description "Container service for titiler" image container_image ports 8080 => 8080 + volume "/store/imagery" => "/store/imagery" environment :PORT => 8080, :WORKERS_PER_CORE => 1, :GDAL_CACHEMAX => 200, diff --git a/cookbooks/imagery/recipes/za_ngi_aerial.rb b/cookbooks/imagery/recipes/za_ngi_aerial.rb index c091b94d9..a888375a2 100644 --- a/cookbooks/imagery/recipes/za_ngi_aerial.rb +++ b/cookbooks/imagery/recipes/za_ngi_aerial.rb @@ -30,7 +30,7 @@ imagery_layer "ngi-aerial" do site "aerial.openstreetmap.org.za" uses_tiler true title "NGI Aerial 25cm/50cm" - source "https://tiler.openstreetmap.org/za-25cm/mosaic-tiler-https.json.gz" + source "https://tiler.openstreetmap.org/za-25cm/mosaic-tiler-file.json.gz" copyright 'State Copyright © 2024 Chief Directorate: National Geo-spatial Information' max_zoom 20 extension "jpg"