commit | author | age
|
d1e1f5
|
1 |
#!/bin/bash -x |
JK |
2 |
|
|
3 |
. common.sh |
|
4 |
|
|
5 |
DOCKER_NAME="${DOCKER_PREFIX}-carto" |
|
6 |
DOCKER_IMAGE="${DOCKER_IMAGE_PREFIX}carto" |
|
7 |
DOCKER_DIR=carto |
|
8 |
|
|
9 |
mkdir "${HOST_CARTO_DIR}" |
|
10 |
chown 500:500 "${HOST_CARTO_DIR}" |
|
11 |
|
|
12 |
docker build -t "${DOCKER_IMAGE}" "${DOCKER_DIR}" |
|
13 |
docker run -i -t \ |
|
14 |
-e "DATA_URL_EXTENT=${DATA_URL_EXTENT}" \ |
|
15 |
-e "POSTGRES_USER=${POSTGRES_USER}" \ |
|
16 |
-e "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}" \ |
|
17 |
-v "${HOST_CARTO_DIR}:/home/map/carto" \ |
|
18 |
--name "${DOCKER_NAME}" \ |
|
19 |
"${DOCKER_IMAGE}" |
|
20 |
|
|
21 |
docker rm -v "${DOCKER_NAME}" |