Skip to content

Commit 1796ad4

Browse files
fix: pin titiler and mangum (#576)
Co-authored-by: Vincent Sarago <vincent.sarago@gmail.com>
1 parent 5f331f3 commit 1796ad4

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

raster_api/runtime/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ RUN dnf install -y gcc-c++
55
WORKDIR /tmp
66

77
COPY raster_api/runtime /tmp/raster
8-
RUN pip install mangum /tmp/raster["psycopg-binary"] -t /asset --no-binary pydantic
8+
RUN pip install "mangum<=0.19" /tmp/raster["psycopg-binary"] -t /asset --no-binary pydantic
99
RUN rm -rf /tmp/raster
1010
RUN cp /usr/lib64/libexpat.so.1 /asset/
1111

raster_api/runtime/setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
# highest-tested versions of raster_api dependencies
1111
"rio-tiler>=7.0,<8.0",
1212
"titiler.pgstac==1.5.0",
13-
# use highest available titiler based on rio-tiler and titiler-pgstac pins
13+
# use highest available titiler based on rio-tiler and titiler-pgstac pins (not 2.0 yet though)
1414
"titiler.core<0.20",
15-
"titiler.mosaic",
16-
"titiler.extensions[cogeo]",
15+
"titiler.mosaic<0.20",
16+
"titiler.extensions[cogeo]<0.20",
1717
"starlette-cramjam>=0.3,<0.4",
1818
# based on AWS observability requirements
1919
"aws_xray_sdk>=2.6.0,<3",

stac_api/runtime/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ WORKDIR /tmp
55
COPY common/auth /tmp/common_auth
66
COPY stac_api/runtime /tmp/stac
77

8-
RUN pip install "mangum" "plpygis>=0.2.1" /tmp/common_auth /tmp/stac -t /asset --no-binary pydantic
8+
RUN pip install "mangum<=0.19" "plpygis>=0.2.1" /tmp/common_auth /tmp/stac -t /asset --no-binary pydantic
99
RUN rm -rf /tmp/stac
1010

1111
# Reduce package size and remove useless files

stac_api/runtime/src/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,9 @@ async def viewer_page(request: Request):
223223
"""Search viewer."""
224224
path = api_settings.root_path or ""
225225
return templates.TemplateResponse(
226+
request,
226227
"stac-viewer.html",
227-
{"request": request, "endpoint": str(request.url).replace("/index.html", path)},
228+
{"endpoint": str(request.url).replace("/index.html", path)},
228229
media_type="text/html",
229230
)
230231

0 commit comments

Comments
 (0)