Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement custom scripts for ogc-api-records-services #5

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

f-necas
Copy link

@f-necas f-necas commented Nov 20, 2023

Custom scripts

This PR adds the capability to run scripts at startup of the container.

It's a part of the georchestra PR :

Soving issue :

How-to

Set CUSTOM_SCRIPTS_DIRECTORY environment variable to point to a valid volume.
Set a volume with scripts to execute.

Example :

 ogc-api-records:
    image: georchestra/gn-cloud-ogc-api-records-service:latest
    ...
    volumes:
      - georchestra_datadir:/etc/georchestra
    environment:
      - CUSTOM_SCRIPTS_DIRECTORY=/etc/georchestra/ogc-api/scripts

@f-necas f-necas changed the base branch from main to geor-main November 20, 2023 10:29
@f-necas f-necas requested a review from edevosc2c November 20, 2023 10:34
Copy link
Member

@edevosc2c edevosc2c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ready to be merged

@f-necas f-necas merged commit 4935cb6 into geor-main Nov 23, 2023
2 checks passed
@edevosc2c
Copy link
Member

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.

2 participants