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 mapstore #669

Merged
merged 1 commit into from
Nov 23, 2023
Merged

Implement custom scripts for mapstore #669

merged 1 commit into from
Nov 23, 2023

Conversation

f-necas
Copy link
Contributor

@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 :

 mapstore:
    image: georchestra/mapstore:latest
    ...
    volumes:
      - georchestra_datadir:/etc/georchestra
    environment:
      - CUSTOM_SCRIPTS_DIRECTORY=/etc/georchestra/mapstore/scripts

@f-necas f-necas changed the title feat: implement custom scripts for mapstore Implement custom scripts for mapstore Nov 20, 2023
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.

Tested works, ready to be merged

@f-necas f-necas merged commit e15e321 into master Nov 23, 2023
2 checks passed
f-necas added a commit that referenced this pull request Dec 5, 2023
Enhance custom-scripts (#671)

* feat: add custom scripts support in entrypoint.sh

* fix: update command in comment

* fix: remove comment
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