Old tiles.ttss.pl backed using MapProxy
Jacek Kowalski
2020-06-09 a32ed5ec142a74385fe24f9e1adecfc86847f543
commit | author | age
d1e1f5 1 #!/bin/bash -x
JK 2
3 . common.sh
4
5 DOCKER_NAME="${DOCKER_PREFIX}-mapproxy"
6 DOCKER_IMAGE="${DOCKER_IMAGE_PREFIX}mapproxy"
7 DOCKER_DIR=mapproxy
8
9 mkdir "${HOST_MAPPROXY_DIR}"
10 chown 500:500 "${HOST_MAPPROXY_DIR}"
11
12 docker build -t "${DOCKER_IMAGE}" "${DOCKER_DIR}"
a32ed5 13 docker stop "${DOCKER_NAME}"
d1e1f5 14 docker rm -v "${DOCKER_NAME}"
JK 15 docker run -i -t -d \
16     --link "${DOCKER_PREFIX}-postgis:postgres" \
17     -v "${HOST_CARTO_DIR}:/home/mapproxy/carto:ro" \
18     -v "${HOST_MAPPROXY_DIR}:/home/mapproxy/data" \
19     -e "MAPNIK_MAP_FILE=/home/mapproxy/carto/mapnik.xml" \
20     -e "MAPNIK_TILE_DIR=/home/mapproxy/data" \
a32ed5 21     -e "MAPPROXY_PROCESSES=${MAPPROXY_PROCESSES}" \
d1e1f5 22     -p 8080:8080 \
JK 23     --name "${DOCKER_NAME}" \
24     "${DOCKER_IMAGE}"
25 docker logs -f "${DOCKER_NAME}"