5-mapproxy.sh | ●●●●● patch | view | raw | blame | history | |
common.sh | ●●●●● patch | view | raw | blame | history | |
mapproxy/Dockerfile | ●●●●● patch | view | raw | blame | history | |
mapproxy/mapproxy.yaml | ●●●●● patch | view | raw | blame | history | |
mapproxy/start.sh | ●●●●● patch | view | raw | blame | history |
5-mapproxy.sh
@@ -10,6 +10,7 @@ chown 500:500 "${HOST_MAPPROXY_DIR}" docker build -t "${DOCKER_IMAGE}" "${DOCKER_DIR}" docker stop "${DOCKER_NAME}" docker rm -v "${DOCKER_NAME}" docker run -i -t -d \ --link "${DOCKER_PREFIX}-postgis:postgres" \ @@ -17,6 +18,7 @@ -v "${HOST_MAPPROXY_DIR}:/home/mapproxy/data" \ -e "MAPNIK_MAP_FILE=/home/mapproxy/carto/mapnik.xml" \ -e "MAPNIK_TILE_DIR=/home/mapproxy/data" \ -e "MAPPROXY_PROCESSES=${MAPPROXY_PROCESSES}" \ -p 8080:8080 \ --name "${DOCKER_NAME}" \ "${DOCKER_IMAGE}" common.sh
@@ -44,3 +44,5 @@ # MAPPROXY HOST_MAPPROXY_DIR="${HOST_DIR}/mapproxy" MAPPROXY_PROCESSES=24 mapproxy/Dockerfile
@@ -15,6 +15,8 @@ USER mapproxy WORKDIR /home/mapproxy ENV MAPPROXY_PROCESSES 4 COPY mapproxy.yaml wsgi.py start.sh ./ COPY mapnik.py /usr/lib/python2.7/dist-packages/mapproxy/source/mapnik.py mapproxy/mapproxy.yaml
@@ -51,13 +51,13 @@ mapnik_pl_x1_source: type: mapnik mapfile: ../carto/mapnik.xml concurrent_requests: 12 concurrent_requests: 1 coverage: *coverage-extent mapnik_pl_x2_source: type: mapnik mapfile: ../carto/mapnik.xml scale_factor: 2 concurrent_requests: 12 concurrent_requests: 1 coverage: *coverage-extent caches: mapproxy/start.sh
@@ -7,4 +7,4 @@ cp carto/extent.geojson data/ fi uwsgi --http-socket :8080 --master --processes 12 --plugins python --module wsgi uwsgi --http-socket :8080 --master --processes "${MAPPROXY_PROCESSES}" --plugins python --module wsgi