Extended CKAN Solr Docker image with additional fields for the SDDI (Spatial Data and Data Infrastructure) project.
This repository extends the official CKAN Solr spatial Docker image (ckan/ckan-solr:2.11-solr9-spatial
) with additional fields to support enhanced metadata indexing for spatial data infrastructure.
The following field has been added to the Solr managed schema:
-
topic: A multi-valued string field for categorizing datasets by topic
<field name="topic" type="string" indexed="true" stored="true" multiValued="true"/>
Pull the image from GitHub Container Registry:
docker pull ghcr.io/tum-gis/sddi-ckan-solr:2.11-solr9-spatial
Start the Solr container:
docker run -d -p 8983:8983 --name ckan-solr ghcr.io/tum-gis/sddi-ckan-solr:2.11-solr9-spatial
The Solr instance will be available at http://localhost:8983/solr
with a pre-configured ckan
core.
To build the image locally:
docker build -t sddi-ckan-solr .
This image extends the ckan/ckan-solr:2.11-solr9-spatial
image and includes all its features:
- Solr 9.x with CKAN-compatible schema configuration
- Pre-configured CKAN core
- Spatial search capabilities with JTS (Java Topology Suite)
- RPT (Recursive Prefix Tree) field type for spatial geometries
- Bounding box fields for spatial queries
- Additional custom topic field for enhanced categorization
The base image already includes a CKAN configset with spatial fields. This extension adds:
topic
: Multi-valued topic categorization field
The base image provides these spatial fields:
spatial_geom
: RPT field for spatial geometriesbbox_area
,maxx
,maxy
,minx
,miny
: Bounding box fields
The repository includes a GitHub Actions workflow that automatically:
- Builds the Docker image on pushes to the main branch
- Publishes the image to GitHub Container Registry (ghcr.io)
- Uses the same tag as the base image (
2.11-solr9-spatial
) for easy drop-in replacement
The image is published to: ghcr.io/tum-gis/sddi-ckan-solr:2.11-solr9-spatial
2.11-solr9-spatial
: Matches the base image tag for easy drop-in replacement
- Fork the repository
- Create a feature branch
- Make your changes
- Test the build locally
- Submit a pull request
This project follows the same licensing as the upstream CKAN Solr project.