Setup & Installation¶
This page covers the recommended Docker workflow and an advanced manual installation.
Option A: Docker (recommended)¶
Prerequisites¶
- Docker 20.10+
- Docker Compose 2.0+
- Linux/macOS:
make(usually pre-installed) - Windows: use
setup.batorsetup.ps1
Step 1. Clone the repository¶
Step 2. Run interactive setup¶
# Linux/macOS
make setup
# Windows (Command Prompt)
setup.bat setup
# Windows (PowerShell)
./setup.ps1 setup
Step 3. Enter the dev shell¶
# Linux/macOS
make dev
# Windows (Command Prompt)
setup.bat dev
# Windows (PowerShell)
./setup.ps1 dev
Step 4. Run the pipeline (inside the container)¶
Step 5. Data layout¶
Place your data under data/ before starting the containers:
Option B: Manual installation (advanced)¶
This is mainly intended for Linux development environments. If you’re on Windows, Docker is strongly recommended.
Dependencies¶
-
Go: 1.21 or later (Download from golang.org)
-
PostgreSQL: 17+ with PostGIS 3.5+ (Download from postgresql.org)
-
PostGIS: 3.5+ (Download from postgis.net)
-
Java: 17+ for CityDB Tool (Download from oracle.com)
-
Git: 2.25+ for source management (Download from git-scm.com)
-
CityDB Importer/Exporter: v1.1.0 (Download from github.com)
- Unzip the downloaded file and place the
citydb-tooldirectory in a known location (e.g.,/opt/citydb-toolon Linux orC:\Program Files\citydb-toolon Windows).
- Unzip the downloaded file and place the
Build¶
Configuration¶
Create a .env (or use your preferred config mechanism used by the project) and set at least:
COUNTRY- DB connection settings (
DB_HOST,DB_PORT,DB_USER,DB_PASSWORD,DB_SSL_MODE) - CityDB tool location + CRS settings (
CITYDB_TOOL_PATH,CITYDB_SRID,CITYDB_SRS_NAME)