]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/stateofthemap/recipes/default.rb
stateofthemap: Use multiple threads for bundle
[chef.git] / cookbooks / stateofthemap / recipes / default.rb
index 39d537eea561e65205499c407a7a1dd5bf6585a9..b2a40d1e74087a73632e3988bb1e0ad208ebb9f2 100644 (file)
@@ -318,7 +318,7 @@ gem_package "bundler" do
   version "2.1.4"
 end
 
-%w[2016 2017 2018 2019 2020].each do |year|
+%w[2016 2017 2018 2019 2020 2021].each do |year|
   git "/srv/#{year}.stateofthemap.org" do
     action :sync
     repository "https://github.com/openstreetmap/stateofthemap-#{year}.git"
@@ -344,7 +344,7 @@ end
 
   execute "/srv/#{year}.stateofthemap.org/Gemfile" do
     action :nothing
-    command "bundle install --deployment"
+    command "bundle install --deployment --jobs #{node[:cpu][:total]}"
     cwd "/srv/#{year}.stateofthemap.org"
     user "root"
     group "root"