From 43f1adb7f79806da5a6d604233914c2cf1f2e338 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 5 Sep 2026 10:52:23 +0100 Subject: [PATCH] Rename volume to volumes to better reflect what it does --- cookbooks/imagery/recipes/tiler.rb | 4 ++-- cookbooks/podman/resources/service.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cookbooks/imagery/recipes/tiler.rb b/cookbooks/imagery/recipes/tiler.rb index 8f5ac6dac..7733bd638 100644 --- a/cookbooks/imagery/recipes/tiler.rb +++ b/cookbooks/imagery/recipes/tiler.rb @@ -32,8 +32,8 @@ container_image = "ghcr.io/developmentseed/titiler:latest" podman_service "titiler" do description "Container service for titiler" image container_image - volume :"/store/imagery" => "/store/imagery", - :"/srv/imagery/sockets" => "/sockets" + volumes "/store/imagery" => "/store/imagery", + "/srv/imagery/sockets" => "/sockets" environment :GDAL_NUM_THREADS => "2", :GDAL_CACHEMAX => 2048, :CPL_VSIL_CURL_CACHE_SIZE => 200000000, diff --git a/cookbooks/podman/resources/service.rb b/cookbooks/podman/resources/service.rb index 5178980d9..43e34164f 100644 --- a/cookbooks/podman/resources/service.rb +++ b/cookbooks/podman/resources/service.rb @@ -26,7 +26,7 @@ property :description, String, :required => true property :image, String, :required => true property :ports, Hash, :default => {} property :environment, Hash, :default => {} -property :volume, Hash, :default => {} +property :volumes, Hash, :default => {} property :command, String, :default => "" action :create do @@ -88,7 +88,7 @@ action_class do end def volume_options - new_resource.volume.collect do |key, value| + new_resource.volumes.collect do |key, value| "-v '#{key}:#{value}'" end.join(" ") end -- 2.47.3