Skip to content

Commit

Permalink
add requirements to run on version 0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
janf committed Oct 9, 2023
1 parent 685fe84 commit 42faa60
Show file tree
Hide file tree
Showing 14 changed files with 63 additions and 33 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.idea/
Pipfile
Pipfile.lock
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions src/app/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from wmts import titiler_version
__version__ = titiler_version
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 0 additions & 4 deletions titiler/app/wmts.py → src/app/wmts.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
from titiler.application import __version__ as titiler_version
from titiler.core.errors import DEFAULT_STATUS_CODES, add_exception_handlers
from cogeo_mosaic.mosaic import MosaicJSON
# from titiler.core.middleware import (LoggerMiddleware,
# LowerCaseQueryStringMiddleware,
# TotalTimeMiddleware)
from titiler.application.custom import templates
from titiler.mosaic.errors import MOSAIC_STATUS_CODES
from geojson_pydantic.features import Feature, FeatureCollection
Expand All @@ -27,7 +24,6 @@

import attr
from morecantile import TileMatrixSet
from rasterio.path import parse_path
from rio_tiler.constants import WEB_MERCATOR_TMS
from rio_tiler.errors import InvalidBandName
from rio_tiler.io import BaseReader, COGReader, MultiBandReader
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Dockerfile for running titiler application with uvicorn server
# Size ~600MB
ARG PYTHON_VERSION=3.9

ARG TITILER_VERSION=0.7.1
FROM python:${PYTHON_VERSION}-slim

RUN apt-get update && apt-get install curl -y
Expand All @@ -19,8 +19,10 @@ WORKDIR /opt/wmts
RUN python3 -m pip install -U pip
RUN python3 -m pip install pipenv
RUN pipenv --python ${PYTHON_VERSION}
RUN pipenv run pip install -U pip
RUN pipenv run pip install uvicorn titiler --no-cache-dir --upgrade
RUN pipenv run pip install -U pip
#RUN pipenv run pip install uvicorn #asyncpg postgis --no-cache-dir --upgrade
COPY requirements.txt /opt/wmts/
RUN pipenv run pip install -r requirements.txt
COPY app/wmts.py /opt/wmts/


Expand Down
54 changes: 54 additions & 0 deletions src/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
affine==2.3.1
anyio==3.6.2
attrs==22.1.0
boto3==1.24.93
botocore==1.27.93
cachetools==5.2.0
certifi==2022.9.24
click==8.1.3
click-plugins==1.1.1
cligj==0.7.2
cogeo-mosaic==4.1.0
cramjam==2.5.0
fastapi==0.85.1
geojson-pydantic==0.4.3
h11==0.12.0
httpcore==0.15.0
httpx==0.23.0
idna==3.4
Jinja2==3.1.2
jmespath==1.0.1
MarkupSafe==2.1.1
mercantile==1.2.1
morecantile==3.1.2
numexpr==2.8.3
numpy==1.23.4
packaging==21.3
pydantic==1.10.2
pygeos==0.13
pyparsing==3.0.9
pyproj==3.4.0
pystac==1.6.1
python-dateutil==2.8.2
python-dotenv==0.21.0
rasterio==1.3.2
rfc3986==1.5.0
rio-cogeo==3.4.1
rio-color==1.0.4
rio-mucho==1.0.0
rio-tiler==3.1.6
s3transfer==0.6.0
simplejson==3.17.6
six==1.16.0
sniffio==1.3.0
snuggs==1.4.7
starlette==0.20.4
starlette-cramjam==0.3.1
supermercado==0.2.0
titiler==0.7.1
titiler.application==0.7.1
titiler.core==0.7.1
titiler.mosaic==0.7.1
typing_extensions==4.4.0
urllib3==1.26.12
uvicorn==0.18.3
8 changes: 0 additions & 8 deletions titiler/app/__init__.py

This file was deleted.

18 changes: 0 additions & 18 deletions titiler/app/function.json

This file was deleted.

0 comments on commit 42faa60

Please sign in to comment.