Files
pygeoapi/docker/simple/Dockerfile
T
Jorge Samuel Mendes de Jesus c1e9943c48 Docker composition (ES docker + pygeoapi docker) (#31)
* 	new file:   docker/Dockerfile
Dockerfile for pygeoapi

* Using 0.0.0.0 in pygeoapi-config otherwise no docker for flask

* ES and pygeoapi docker

* Final file structure

* generic port 5000 and localhost

* sqlit3 suport in alpine and fixes on sqlite provider

* B4 sync with upstream

* Working composition problems with ES features

* Cosmetic changes update to README.md

* using load_es_data.py from github local openapi.yml

* added docker pull only of pygeoapi

* b4 rebase

* Using 0.0.0.0 in pygeoapi-config otherwise no docker for flask

* ES and pygeoapi docker

* Final file structure

* generic port 5000 and localhost

* sqlit3 suport in alpine and fixes on sqlite provider

* B4 sync with upstream

* Cosmetic changes update to README.md

* using load_es_data.py from github local openapi.yml

* added docker pull only of pygeoapi

* b4 rebase

* updates and sync

* missing proper local.config.yml

* wait-for pygeoapi

* sync with master config

* 	deleted:    docker/ES/wait-for-it.sh
	new file:   docker/pygeoapi/docker-entrypoint.sh
	new file:   docker/pygeoapi/run_pygeoapi.sh
	openapi.yml
	pygeoapi/provider/__sqlite.py

Missing sh files

* missing set +e

* wait for ES to be yellow or green

* More detailed Readme

* 	new file:   .gitignore

* simple image docker

* missing docker run

* 	new file:   Dockerfile
	new file:   docker.config.yml
	new file:   run_pygeoapi.sh
Simple image

* typos on README
2018-07-03 14:52:17 -04:00

63 lines
1.8 KiB
Docker

FROM alpine:edge
LABEL maintainer="jorge.dejesus@geocat.net"
ENV GITHUB https://github.com/geopython/pygeoapi.git
ENV PYGEOAPI_CONFIG /pygeoapi/local.config.yml
ENV PYGEOAPI_OPENAPI /pygeoapi/openapi.yml
ARG FREEXL=freexl-1.0.5.tar.gz
ARG LIBSPATIALITE=libspatialite-4.3.0a.tar.gz
RUN echo "@edge-testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
RUN apk update && apk add --no-cache \
git \
python3-dev \
libffi \
libffi-dev \
musl-dev \
gcc \
openssl-dev \
g++ \
make \
curl \
sqlite-dev \
libxml2-dev \
"proj4-dev@edge-testing" \
"geos-dev@edge-testing"
RUN wget "http://www.gaia-gis.it/gaia-sins/${FREEXL}" && \
tar zxvf "${FREEXL}" && cd "${FREEXL%.*.*}" $ && \
./configure && make -j 4 && make install
RUN ldconfig /usr/local/lib
RUN wget "http://www.gaia-gis.it/gaia-sins/${LIBSPATIALITE}" && \
tar zxvf "${LIBSPATIALITE}" && cd "${LIBSPATIALITE%.*.*}" && \
./configure && make -j 4 && make install
RUN ldconfig /usr/local/lib
#RUN git clone -b docker ${GITHUB}
RUN git clone $GITHUB
#remove elatic search
RUN rm /pygeoapi/pygeoapi/provider/elasticsearch_.py
RUN sed -i '/pygeoapi.provider.elasticsearch/d' /pygeoapi/pygeoapi/provider/__init__.py
WORKDIR /pygeoapi
RUN pip3 install -r requirements.txt
RUN pip3 install -r requirements-dev.txt
RUN pip3 install -e .
COPY docker.config.yml local.config.yml
COPY run_pygeoapi.sh /run_pygeoapi.sh
ENTRYPOINT ["/run_pygeoapi.sh"]
#Run using:
#docker run -p5000:5000 pygeoapi:latest
#Run using unamed volume:
#docker run -p5000:5000 -v /pygeoapi/tests/data pygeoapi:latest
#Run using named volume:
#docker volume create pygeoapi_volume
#docker run -p5000:5000 -v pygeoapi_volume:/pygeoapi/tests/data pygeoapi:latest