Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
0a4d079b08 | ||
|
60ac7657d1 | ||
|
ce176ae32e | ||
|
7b82bcae9d |
@@ -131,6 +131,7 @@ RUN mkdir -p /home/renderer/src \
|
|||||||
&& git clone --single-branch --branch v5.3.1 https://github.com/gravitystorm/openstreetmap-carto.git --depth 1 \
|
&& git clone --single-branch --branch v5.3.1 https://github.com/gravitystorm/openstreetmap-carto.git --depth 1 \
|
||||||
&& cd openstreetmap-carto \
|
&& cd openstreetmap-carto \
|
||||||
&& rm -rf .git \
|
&& rm -rf .git \
|
||||||
|
&& sed -ie 's#https:\/\/naciscdn.org\/naturalearth\/110m\/cultural\/ne_110m_admin_0_boundary_lines_land.zip#https:\/\/naturalearth.s3.amazonaws.com\/110m_cultural\/ne_110m_admin_0_boundary_lines_land.zip#g' external-data.yml \
|
||||||
&& npm install -g carto@0.18.2 \
|
&& npm install -g carto@0.18.2 \
|
||||||
&& carto project.mml > mapnik.xml
|
&& carto project.mml > mapnik.xml
|
||||||
|
|
||||||
|
8
run.sh
8
run.sh
@@ -1,7 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -x
|
|
||||||
|
|
||||||
function createPostgresConfig() {
|
function createPostgresConfig() {
|
||||||
cp /etc/postgresql/12/main/postgresql.custom.conf.tmpl /etc/postgresql/12/main/conf.d/postgresql.custom.conf
|
cp /etc/postgresql/12/main/postgresql.custom.conf.tmpl /etc/postgresql/12/main/conf.d/postgresql.custom.conf
|
||||||
sudo -u postgres echo "autovacuum = $AUTOVACUUM" >> /etc/postgresql/12/main/conf.d/postgresql.custom.conf
|
sudo -u postgres echo "autovacuum = $AUTOVACUUM" >> /etc/postgresql/12/main/conf.d/postgresql.custom.conf
|
||||||
@@ -23,6 +21,8 @@ if [ "$#" -ne 1 ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
if [ "$1" = "import" ]; then
|
if [ "$1" = "import" ]; then
|
||||||
# Ensure that database directory is in right state
|
# Ensure that database directory is in right state
|
||||||
chown postgres:postgres -R /var/lib/postgresql
|
chown postgres:postgres -R /var/lib/postgresql
|
||||||
@@ -50,10 +50,10 @@ if [ "$1" = "import" ]; then
|
|||||||
|
|
||||||
if [ -n "$DOWNLOAD_PBF" ]; then
|
if [ -n "$DOWNLOAD_PBF" ]; then
|
||||||
echo "INFO: Download PBF file: $DOWNLOAD_PBF"
|
echo "INFO: Download PBF file: $DOWNLOAD_PBF"
|
||||||
wget "$WGET_ARGS" "$DOWNLOAD_PBF" -O /data.osm.pbf
|
wget $WGET_ARGS "$DOWNLOAD_PBF" -O /data.osm.pbf
|
||||||
if [ -n "$DOWNLOAD_POLY" ]; then
|
if [ -n "$DOWNLOAD_POLY" ]; then
|
||||||
echo "INFO: Download PBF-POLY file: $DOWNLOAD_POLY"
|
echo "INFO: Download PBF-POLY file: $DOWNLOAD_POLY"
|
||||||
wget "$WGET_ARGS" "$DOWNLOAD_POLY" -O /data.poly
|
wget $WGET_ARGS "$DOWNLOAD_POLY" -O /data.poly
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user