- Set up docker-compose with PostgreSQL/PostGIS and Tegola services - Added initialization scripts for database setup and OSM data import - Configured Tegola with vector tile layers for roads and buildings - Included README with setup instructions and troubleshooting guide
28 lines
529 B
Bash
28 lines
529 B
Bash
#!/bin/bash
|
|
# Install osm2pgsql and required tools
|
|
# This script runs during PostgreSQL container initialization
|
|
|
|
set -e
|
|
|
|
echo "Installing osm2pgsql and dependencies..."
|
|
|
|
# Update package list
|
|
apt-get update
|
|
|
|
# Install required packages
|
|
apt-get install -y \
|
|
osm2pgsql \
|
|
wget \
|
|
curl \
|
|
unzip \
|
|
ca-certificates \
|
|
--no-install-recommends
|
|
|
|
# Clean up to reduce image size
|
|
apt-get clean
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
echo "osm2pgsql installation completed successfully"
|
|
|
|
# Verify installation
|
|
osm2pgsql --version |