-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #217 from stac-utils/refactor/docker-images
unify docker images
- Loading branch information
Showing
10 changed files
with
95 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,47 @@ | ||
# Release Notes | ||
|
||
## 1.7.0 (2025-02-13) | ||
|
||
* update titiler requirement to `>=0.21,<0.22` | ||
* use `URN` style CRS notation in WMTS document | ||
* Unify Docker images (deprecate `uvicorn-*` tags) | ||
|
||
``` | ||
# Uvicorn | ||
# before | ||
docker run \ | ||
--platform=linux/amd64 \ | ||
-p 8000:8000 \ | ||
--env PORT=8000 \ | ||
--env DATABASE_URL=postgresql://username:[email protected]:5439/postgis \ | ||
--rm -it ghcr.io/stac-utils/titiler-pgstac:uvicorn-latest | ||
# now | ||
docker run \ | ||
--platform=linux/amd64 \ | ||
-p 8000:8000 \ | ||
--env DATABASE_URL=postgresql://username:[email protected]:5439/postgis \ | ||
--rm -it ghcr.io/stac-utils/titiler-pgstac:latest \ | ||
uvicorn titiler.pgstac.main:app --host 0.0.0.0 --port 8000 --workers 1 | ||
# Gunicorn | ||
# before | ||
docker run \ | ||
--platform=linux/amd64 \ | ||
-p 8000:8000 \ | ||
--env PORT=8000 \ | ||
--env DATABASE_URL=postgresql://username:[email protected]:5439/postgis \ | ||
--rm -it ghcr.io/stac-utils/titiler-pgstac:latest | ||
# now | ||
docker run \ | ||
--platform=linux/amd64 \ | ||
-p 8000:8000 \ | ||
--env DATABASE_URL=postgresql://username:[email protected]:5439/postgis \ | ||
--rm -it ghcr.io/stac-utils/titiler-pgstac:latest \ | ||
gunicorn -k uvicorn.workers.UvicornWorker titiler.pgstac.main:app --bind 0.0.0.0:8000 --workers 1 | ||
``` | ||
## 1.6.0 (2025-01-13) | ||
* remove `rescale_dependency` and `color_formula_dependency` attributes in TilerFactory class **breaking change** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
ARG PYTHON_VERSION=3.12 | ||
|
||
FROM bitnami/python:${PYTHON_VERSION} | ||
RUN apt update && apt upgrade -y \ | ||
&& apt install curl -y \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Ensure root certificates are always updated at evey container build | ||
# and curl is using the latest version of them | ||
RUN mkdir /usr/local/share/ca-certificates/cacert.org | ||
RUN cd /usr/local/share/ca-certificates/cacert.org && curl -k -O https://www.cacert.org/certs/root.crt | ||
RUN cd /usr/local/share/ca-certificates/cacert.org && curl -k -O https://www.cacert.org/certs/class3.crt | ||
RUN update-ca-certificates | ||
ENV CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt | ||
|
||
WORKDIR /tmp | ||
|
||
RUN python -m pip install -U pip | ||
RUN python -m pip install uvicorn uvicorn-worker gunicorn | ||
|
||
COPY titiler/ titiler/ | ||
COPY pyproject.toml pyproject.toml | ||
COPY README.md README.md | ||
COPY LICENSE LICENSE | ||
|
||
RUN python -m pip install --no-cache-dir --upgrade .["psycopg-binary"] | ||
RUN rm -rf titiler/ pyproject.toml README.md LICENSE | ||
|
||
################################################### | ||
# For compatibility (might be removed at one point) | ||
ENV MODULE_NAME=titiler.pgstac.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} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters