X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ab2c6d2076df37980c251d076d5b8b151e12f5bf..75125cdf2506c06af92264ff2e58d942ff43eed1:/cookbooks/nominatim/recipes/default.rb diff --git a/cookbooks/nominatim/recipes/default.rb b/cookbooks/nominatim/recipes/default.rb index a025211c6..d8440761a 100644 --- a/cookbooks/nominatim/recipes/default.rb +++ b/cookbooks/nominatim/recipes/default.rb @@ -219,6 +219,7 @@ elsif node[:nominatim][:api_flavour] == "python" python_package "jinja2" do python_virtualenv python_directory version "3.1.4" + end python_package "datrie" do python_virtualenv python_directory @@ -228,6 +229,12 @@ elsif node[:nominatim][:api_flavour] == "python" python_package "psutil" do python_virtualenv python_directory version "6.0.0" + end + + python_package "osmium" do + python_virtualenv python_directory + version "3.7.0" + end end source_directory = "#{basedir}/src/nominatim" @@ -385,7 +392,7 @@ elsif node[:nominatim][:api_flavour] == "python" working_directory project_directory standard_output "append:#{node[:nominatim][:logdir]}/gunicorn.log" standard_error "inherit" - exec_start "#{python_directory}/bin/gunicorn --max-requests 200000 -b unix:/run/gunicorn-nominatim.openstreetmap.org.sock -w #{node[:nominatim][:api_workers]} -k uvicorn.workers.UvicornWorker nominatim.server.falcon.server:run_wsgi" + exec_start "#{python_directory}/bin/gunicorn --max-requests 200000 -b unix:/run/gunicorn-nominatim.openstreetmap.org.sock -w #{node[:nominatim][:api_workers]} -k uvicorn.workers.UvicornWorker nominatim_api.server.falcon.server:run_wsgi" exec_reload "/bin/kill -s HUP $MAINPID" environment :PYTHONPATH => "/usr/local/lib/nominatim/lib-python/" kill_mode "mixed"