Skip to content

Conversation

@yharby
Copy link
Contributor

@yharby yharby commented Nov 18, 2024

Overview

This PR enhances the entrypoint.sh script to check for the existence of the PYGEOAPI_OPENAPI environment variable before generating openapi.yml when the geopython/pygeoapi Docker container starts. This update allows users to mount a custom openapi.yml file without it being overwritten, offering greater flexibility for customized configurations.

Related Issue / discussion

Addresses issue #1849.

Additional information

  • The update maintains the original logic and flow of the entrypoint.sh script while adding a simple check for the PYGEOAPI_OPENAPI variable, ensuring user-mounted configurations are preserved.

Dependency policy (RFC2)

  • I have ensured that this PR meets RFC2 requirements

Updates to public demo

Contributions and licensing

(as per Contributions and Licensing Guidelines)

  • I'd like to contribute this feature to pygeoapi. I confirm that my contributions to pygeoapi will be compatible with the pygeoapi license guidelines at the time of contribution.
  • I have already previously agreed to the pygeoapi Contributions and Licensing Guidelines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant