Old tiles.ttss.pl backed using MapProxy
Jacek Kowalski
2020-06-03 d1e1f5e507ac2c01c2633fb026f98f2bdf30271f
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}"
13 docker rm -v "${DOCKER_NAME}"
14 docker run -i -t -d \
15     --link "${DOCKER_PREFIX}-postgis:postgres" \
16     -v "${HOST_CARTO_DIR}:/home/mapproxy/carto:ro" \
17     -v "${HOST_MAPPROXY_DIR}:/home/mapproxy/data" \
18     -e "MAPNIK_MAP_FILE=/home/mapproxy/carto/mapnik.xml" \
19     -e "MAPNIK_TILE_DIR=/home/mapproxy/data" \
20     -p 8080:8080 \
21     --name "${DOCKER_NAME}" \
22     "${DOCKER_IMAGE}"
23 docker logs -f "${DOCKER_NAME}"