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

create uniq docker image #1067

Merged
merged 7 commits into from
Jan 9, 2025
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
update changelog and ensure compatibility
vincentsarago committed Jan 9, 2025
commit 144060e86864a613642a40fd4cef13f17ef245ed
38 changes: 38 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,43 @@
# Release Notes

## Unreleased

### Misc

* Unify Docker images (deprecate `titiler-uvicorn`)

```
# Uvicorn
# before
docker run \
--platform=linux/amd64 \
-p 8000:8000 \
--env PORT=8000 \
--rm -it ghcr.io/developmentseed/titiler-uvicorn:latest

# now
docker run \
--platform=linux/amd64 \
-p 8000:8000 \
--rm -it ghcr.io/developmentseed/titiler:latest \
uvicorn titiler.application.main:app --host 0.0.0.0 --port 8000 --workers 1

# Gunicorn
# before
docker run \
--platform=linux/amd64 \
-p 8000:8000 \
--env PORT=8000 \
--rm -it ghcr.io/developmentseed/titiler:latest

# now
docker run \
--platform=linux/amd64 \
-p 8000:8000 \
--rm -it ghcr.io/developmentseed/titiler:latest \
gunicorn -k uvicorn.workers.UvicornWorker titiler.application.main:app --bind 0.0.0.0:8000 --workers 1
```

## 0.20.0 (2025-01-07)

### titiler.core
9 changes: 8 additions & 1 deletion dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
@@ -20,4 +20,11 @@ COPY src/titiler/ /tmp/titiler/
RUN python -m pip install /tmp/titiler/core /tmp/titiler/extensions["cogeo,stac"] /tmp/titiler/mosaic /tmp/titiler/application --no-cache-dir --upgrade
RUN rm -rf /tmp/titiler

CMD ["echo", "Let's create happy tiles"]
###################################################
# For compatibility (might be removed at one point)
ENV MODULE_NAME=titiler.application.main
ENV VARIABLE_NAME=app
ENV HOST=0.0.0.0
ENV PORT=80
ENV WEB_CONCURRENCY=1
CMD gunicorn -k uvicorn.workers.UvicornWorker ${MODULE_NAME}:${VARIABLE_NAME} --bind ${HOST}:${PORT} --workers ${WEB_CONCURRENCY}