Skip to content

Commit e8957eb

Browse files
author
Sean Sullivan
committed
update dependencies and clear CVE's
1 parent 00bf936 commit e8957eb

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ COPY elastic_datashader /build/elastic_datashader
1111
WORKDIR /build/elastic_datashader
1212
RUN poetry build
1313

14-
FROM python:3.11 AS deployment
14+
FROM python:3.11-slim AS deployment
1515
LABEL maintainer="foss@spectric.com"
1616
RUN useradd -d /home/datashader datashader && \
1717
mkdir -p /home/datashader /opt/elastic_datashader/tms-cache && \
@@ -23,8 +23,8 @@ COPY --from=builder /build/dist/*.whl /home/datashader/tmp/
2323
ENV PATH="$PATH:/home/datashader/.local/bin"
2424
RUN pip install --upgrade pip && \
2525
pip install --no-cache-dir /home/datashader/tmp/*.whl && \
26-
pip install gunicorn==20.1.0 && \
27-
pip install uvicorn==0.22.0
26+
pip install gunicorn==21.2.0 && \
27+
pip install uvicorn==0.24.0
2828

2929
COPY deployment/logging_config.yml /opt/elastic_datashader/
3030
COPY deployment/gunicorn_config.py /opt/elastic_datashader/

elastic_datashader/routers/tms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ def cached_response(es, idx, x, y, z, params, parameter_hash) -> Optional[Respon
149149

150150
try:
151151
es.update( # pylint: disable=E1123
152-
".datashader_tiles",
153-
tile_id(idx, x, y, z, parameter_hash),
152+
index=".datashader_tiles",
153+
id=tile_id(idx, x, y, z, parameter_hash),
154154
body={"script" : {"source": "ctx._source.cache_hits++"}},
155155
retry_on_conflict=5,
156156
)

elastic_datashader/tilegen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ def generate_tile(idx, x, y, z, headers, params, tile_width_px=256, tile_height_
969969

970970
# Create base search
971971
base_s = get_search_base(config.elastic_hosts, headers, params, idx)
972-
base_s = base_s[0:0]
972+
#base_s = base_s[0:0]
973973
# Now find out how many documents
974974
count_s = copy.copy(base_s)[0:0] # slice of array sets from/size since we are aggregating the data we don't need the hits
975975
count_s = count_s.filter("geo_bounding_box", **{geopoint_field: bb_dict})
@@ -1023,7 +1023,7 @@ def generate_tile(idx, x, y, z, headers, params, tile_width_px=256, tile_height_
10231023
geotile_precision = min(max(current_zoom, current_zoom + agg_zooms), MAXIMUM_PERCISION)
10241024

10251025
tile_s = copy.copy(base_s)
1026-
tile_s = tile_s.params(size=0, track_total_hits=False)
1026+
tile_s = tile_s.params(track_total_hits=False)
10271027
tile_s = tile_s.filter(
10281028
"geo_bounding_box", **{geopoint_field: bb_dict}
10291029
)

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ elastic_datashader = "elastic_datashader.cli:main"
2121

2222
[tool.poetry.dependencies]
2323
python = ">=3.10,<4"
24-
elasticsearch = "7.17.4"
25-
elasticsearch-dsl = "7.4.0"
26-
datashader = "0.15.2"
24+
elasticsearch = "8.11.1"
25+
elasticsearch-dsl = "8.11.0"
26+
datashader = "0.16.0"
2727
pandas = "^1.5.3"
2828
colorcet = "^3.0.1"
2929
mercantile = "1.2.1"
@@ -32,11 +32,11 @@ Pillow = "*"
3232
pynumeral = "*"
3333
arrow = "*"
3434
python-datemath = "*"
35-
numba = "0.57.0"
35+
numba = "0.57.1"
3636
numpy = "^1.23"
3737
PyYAML = "*"
3838
humanize = "*"
39-
uvicorn = {extras = ["standard"], version = "^0.18.2", optional = true}
39+
uvicorn = {extras = ["standard"], version = "0.24.0", optional = true}
4040
fastapi = "^0.96"
4141
georgio = "2023.156.924"
4242
jinja2 = "3.1.2"

0 commit comments

Comments
 (0)