geopython / pycsw

pycsw is an OGC CSW server implementation written in Python. pycsw fully implements the OpenGIS Catalogue Service Implementation Specification [Catalogue Service for the Web]. Initial development started in 2010 (more formally announced in 2011). The project is certified OGC Compliant, and is an OGC Reference Implementation. pycsw allows for the publishing and discovery of geospatial metadata via numerous APIs (CSW 2/CSW 3, OpenSearch, OAI-PMH, SRU). Existing repositories of geospatial metadata can also be exposed, providing a standards-based metadata and catalogue component of spatial data infrastructures. pycsw is Open Source, released under an MIT license, and runs on all major platforms (Windows, Linux, Mac OS X). Please read the docs at https://pycsw.org/docs for more information.
https://pycsw.org
MIT License
197 stars 153 forks source link

yaml scanner error: could not find expected ":" in "/etc/pycsw/pycsw.yml" #943

Closed Kate-Lyndegaard closed 5 months ago

Kate-Lyndegaard commented 5 months ago

Description

I am trying to run docker using a bind mount as described here. I receive the following error:

raise ScannerError("while scanning a simple key", key.mark, yaml.scanner.ScannerError: while scanning a simple key in "/etc/pycsw/pycsw.yml", line 109, column 9 could not find expected ':'in "/etc/pycsw/pycsw.yml", line 110, column 9

Command

docker run --name pycsw --detach --volume ./pycsw.yml:/etc/pycsw/pycsw.yml --publish 8000:8000 geopython/pycsw

My custom configuration file

pycsw.zip

Environment

Steps to Reproduce

Clone the latest version of pycsw and run the docker command above.

pvgenuchten commented 5 months ago

hi Kate, i noticed also this behaviour, it relates to the recent change of the config file to use yaml I solved it by mounting a customised yaml file into the container but would be good to fix the default docker image

docker run -p 8000:8000 -v $(pwd)/pycsw.yml:/etc/pycsw/pycsw.yml ghcr.io/geopython/pycsw