Skip to content

Commit

Permalink
add timeseries endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
hrodmn committed Oct 31, 2024
1 parent afe8b6d commit 3a4253e
Show file tree
Hide file tree
Showing 18 changed files with 2,536 additions and 23 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ repos:
additional_dependencies:
- types-cachetools
- types-attrs
- types-python-dateutil
- pydantic>=2.4
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ COPY titiler/ titiler/
COPY README.md README.md
COPY LICENSE LICENSE

RUN uv sync --frozen --extra uvicorn
RUN apt-get update && apt-get -y --no-install-recommends install libexpat1 && uv sync --frozen --extra uvicorn

ARG EARTHDATA_USERNAME
ARG EARTHDATA_PASSWORD
Expand All @@ -26,5 +26,5 @@ RUN if [ -z "$EARTHDATA_USERNAME" ] || [ -z "$EARTHDATA_PASSWORD" ]; then \
# http://www.uvicorn.org/settings/
ENV HOST 0.0.0.0
ENV PORT 80
CMD uv run uvicorn titiler.cmr.main:app --host ${HOST} --port ${PORT} --log-level debug
CMD uv run uvicorn titiler.cmr.main:app --host ${HOST} --port ${PORT} --log-level debug --reload

5 changes: 2 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ services:
EARTHDATA_PASSWORD: ${EARTHDATA_PASSWORD}
ports:
- "8081:8081"
volumes:
- ./titiler:/app/titiler
environment:
# Application
- HOST=0.0.0.0
Expand Down Expand Up @@ -49,8 +51,5 @@ services:
# - AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
develop:
watch:
- action: sync+restart
path: ./titiler/cmr/
target: /usr/local/lib/python3.11/site-packages/titiler/cmr/
- action: rebuild
path: ./pyproject.toml
Loading

0 comments on commit 3a4253e

Please sign in to comment.