From 3dc4213b35c69a3ab460822a00bca909dac7882a Mon Sep 17 00:00:00 2001 From: Sean Sullivan Date: Tue, 27 Feb 2024 12:57:13 -0500 Subject: [PATCH 1/2] cast to int --- elastic_datashader/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elastic_datashader/config.py b/elastic_datashader/config.py index f8dfc9e..164dd7f 100644 --- a/elastic_datashader/config.py +++ b/elastic_datashader/config.py @@ -94,7 +94,7 @@ def config_from_env(env) -> Config: datashader_headers=load_datashader_headers(env.get("DATASHADER_HEADER_FILE", "headers.yaml")), elastic_hosts=env.get("DATASHADER_ELASTIC", "http://localhost:9200"), ellipse_render_mode=env.get("DATASHADER_ELLIPSE_RENDER_MODE", "matrix"), - ellipse_render_min_zoom=env.get("DATASHADER_ELLIPSE_RENDER_MIN_ZOOM", 8), + ellipse_render_min_zoom=int(env.get("DATASHADER_ELLIPSE_RENDER_MIN_ZOOM", 8)), hostname=getfqdn(), log_level=get_log_level(env.get("DATASHADER_LOG_LEVEL", None)), max_batch=int(env.get("DATASHADER_MAX_BATCH", 10_000)), From 49bf934266d109bd0109e413ada1a2eee9261cc8 Mon Sep 17 00:00:00 2001 From: Nate Bynum Date: Thu, 30 May 2024 15:00:17 -0400 Subject: [PATCH 2/2] Update versions due to CVE vulnerabilities --- Dockerfile | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ef68d3a..096f1ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,7 +23,7 @@ COPY --from=builder /build/dist/*.whl /home/datashader/tmp/ ENV PATH="$PATH:/home/datashader/.local/bin" RUN pip install --upgrade pip && \ pip install --no-cache-dir /home/datashader/tmp/*.whl && \ - pip install gunicorn==20.1.0 && \ + pip install gunicorn==22.0.0 && \ pip install uvicorn==0.24.0 COPY deployment/logging_config.yml /opt/elastic_datashader/ diff --git a/pyproject.toml b/pyproject.toml index f61d11a..c2a5f3a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ humanize = "*" uvicorn = {extras = ["standard"], version = "0.24.0", optional = true} fastapi = ">=0.109.1" georgio = "2023.156.924" -jinja2 = "3.1.2" +jinja2 = "3.1.4" [tool.poetry.dev-dependencies] pytest = "*"