georchestra / mapstore2-georchestra

geOrchestra newest viewer
Other
6 stars 23 forks source link

Implement custom scripts for mapstore #669

Closed f-necas closed 7 months ago

f-necas commented 7 months ago

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