Skip to content

Commit

Permalink
Change order of pip installs in stac_api
Browse files Browse the repository at this point in the history
  • Loading branch information
slesaad committed Jul 26, 2024
1 parent a4337dd commit 5eedb56
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions stac_api/runtime/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ FROM --platform=linux/amd64 public.ecr.aws/sam/build-python3.9:latest
WORKDIR /tmp

COPY stac_api/runtime /tmp/stac
COPY common/auth /tmp/stac/common/auth
RUN pip install /tmp/stac/common/auth -t /asset

RUN pip install "mangum>=0.14,<0.15" "plpygis>=0.2.1" /tmp/stac -t /asset --no-binary pydantic
COPY common/auth /tmp/stac/common/auth
RUN pip install /tmp/stac/common/auth -t /asset
RUN rm -rf /tmp/stac

# Reduce package size and remove useless files
Expand Down
3 changes: 1 addition & 2 deletions stac_api/runtime/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
"pygeoif<=0.8", # newest release (1.0+ / 09-22-2022) breaks a number of other geo libs
"aws-lambda-powertools>=1.18.0",
"aws_xray_sdk>=2.6.0,<3",
"pystac[validation]==1.10.1",
"brotli==1.1.0",
"pystac[validation]==1.10.1"
]

extra_reqs = {
Expand Down
2 changes: 1 addition & 1 deletion stac_api/runtime/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from src.config import get_request_model as GETModel
from src.config import post_request_model as POSTModel
from src.extension import TiTilerExtension
from veda_auth import VedaAuth

from fastapi import APIRouter, FastAPI
from fastapi.params import Depends
Expand Down Expand Up @@ -80,6 +79,7 @@
)

if api_settings.enable_transactions:
from veda_auth import VedaAuth
auth = VedaAuth(api_settings)
# Require auth for all endpoints that create, modify or delete data.
add_route_dependencies(
Expand Down

0 comments on commit 5eedb56

Please sign in to comment.