This commit is contained in:
Zsolt Ero
2025-09-18 01:33:02 +02:00
parent 638337398f
commit 11c72cb6d6
4 changed files with 26 additions and 7 deletions

View File

@@ -2,7 +2,7 @@ from ssh_lib import PLANETILER_BIN, PLANETILER_SRC
from ssh_lib.utils import apt_get_install, apt_get_update, exists, sudo_cmd
PLANETILER_COMMIT = 'ee22a014022f1dcc120cba6a768567408ba74908'
PLANETILER_COMMIT = 'cc769c4f'
PLANETILER_PATH = f'{PLANETILER_BIN}/planetiler.jar'
@@ -17,6 +17,7 @@ def install_planetiler(c):
c.sudo(f'rm -rf {PLANETILER_BIN} {PLANETILER_SRC}')
c.sudo(f'mkdir -p {PLANETILER_BIN} {PLANETILER_SRC}')
c.sudo('git config --global advice.detachedHead false')
c.sudo(
f'git clone --recurse-submodules https://github.com/onthegomap/planetiler.git {PLANETILER_SRC}'
)

View File

@@ -12,7 +12,7 @@ from ssh_lib import (
dotenv_val,
)
from ssh_lib.benchmark import c1000k, wrk
from ssh_lib.kernel import kernel_tweaks_ofm
from ssh_lib.kernel import kernel_limits1m, kernel_somaxconn65k
from ssh_lib.nginx import certbot, nginx
from ssh_lib.pkg_base import pkg_base, pkg_upgrade
from ssh_lib.planetiler import install_planetiler
@@ -83,7 +83,8 @@ def prepare_tile_gen(c, *, enable_cron):
def prepare_http_host(c):
kernel_tweaks_ofm(c)
kernel_somaxconn65k(c)
kernel_limits1m(c)
nginx(c)
certbot(c)