1
0
foss4g-workshop/init-scripts/02-install-osm2pgsql.sh
dracic a5d9e32d9b OSM vector tile server setup with postgis and tegola
- 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
2025-07-14 18:33:45 +02:00

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