Old tiles.ttss.pl backed using MapProxy
Jacek Kowalski
2020-06-09 a32ed5ec142a74385fe24f9e1adecfc86847f543
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash -x
 
. common.sh
 
DOCKER_NAME="${DOCKER_PREFIX}-mapproxy"
DOCKER_IMAGE="${DOCKER_IMAGE_PREFIX}mapproxy"
DOCKER_DIR=mapproxy
 
mkdir "${HOST_MAPPROXY_DIR}"
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" \
    -v "${HOST_CARTO_DIR}:/home/mapproxy/carto:ro" \
    -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}"
docker logs -f "${DOCKER_NAME}"