Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add /timeseries endpoints #33

Merged
merged 7 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't really need the reload here because the code is copied not mounted

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added it because I mount the titiler/ directory in docker-compose.yml. It is redundant to COPY and mount the volume but it is convenient for local development to have the reload functionality.


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
Loading