rasterio/Dockerfile
Sean Gillies 5db194fe99
Sidecar support for Python openers (#3032)
* Failing test with a .msk sidecar

* POC of sidecar support for Python openers

Towards resolving #3027

* Register opener for the parent directory/folder of the given URL

Handling the error cases properly gets all our tests passing again.

* Add opener adapter classes and a factory

Still a lot of redundant code here, needs refactoring.

* Remove unused import

* Don't raise exceptions when files aren't found

Just return 1 or NULL

* Add two tests of using fsspec filesystem objs and fix a bug.

* Allow testing with tiledb.VFS

* More tests of fsspec http filesystem and .msk sidecar

* Module clean up

* Add mtime to stats, docstrings to abstract class

* Expand documentation

* Reassign name_list in loop

* Return -1 on stat failure, remove useless except clauses

* Don't set an error when OpenFile doesn't resolve

* Add eof callback
2024-02-29 10:48:18 -07:00

30 lines
862 B
Docker

ARG GDAL=ubuntu-small-3.6.4
FROM ghcr.io/osgeo/gdal:${GDAL} AS gdal
ARG PYTHON_VERSION=3.9
ENV LANG="C.UTF-8" LC_ALL="C.UTF-8"
RUN apt-get update && apt-get install -y software-properties-common
RUN add-apt-repository -y ppa:deadsnakes/ppa
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
g++ \
gdb \
make \
python3-pip \
python${PYTHON_VERSION} \
python${PYTHON_VERSION}-dev \
python${PYTHON_VERSION}-venv \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements*.txt ./
RUN python${PYTHON_VERSION} -m venv /venv && \
/venv/bin/python -m pip install -U pip && \
/venv/bin/python -m pip install -r requirements-dev.txt && \
/venv/bin/python -m pip list
FROM gdal
COPY . .
RUN /venv/bin/python setup.py install
ENTRYPOINT ["/venv/bin/rio"]
CMD ["--help"]