cioos-siooc / cioos-pacific-erddap

CIOOS Pacific ERDDAP main repository used to maintain, develop and integrate ERDDAP datasets.
https://data.cioospacific.ca/erddap
2 stars 0 forks source link

bring latest changes to production #27

Closed JessyBarrette closed 1 year ago

JessyBarrette commented 1 year ago

This present PR fix the following issues discovered:

  1. Fix tomcatLogs volume mount form erddap container
  2. Fix DasDds.sh and GenerateDatasetsXml.sh
    • rely on .env file to define container name and datasets directory
    • add the ability to pass inputs to both function as arguments
  3. Fix readme superlinter tag
  4. ENV variables
    • define container name through CONTAINER_NAME env variable (default = erddap)
    • define datasets directory through DATSETS_DIR env variable (default = ./datasets)
  5. Improve update-erddap.sh
    1. add docs
    2. add sha argument to define from git SHA to review the changes. Default is from present active SHA.
    3. add mode argument which define which changes to consider
      • pull: do a git pull and compare with the initial commit prior to the pull
      • all: no pull and consider all changes available including non commited changes
      • no-pull: no pull and consider only commited changes.
    4. add hardFlag flag which generate hardFlag to erddap instead of flag
    5. add help docs
    6. save last update sha to local file .last_update_sha which is used next time update-erddap.sh is runned.

The present changes are now active on the development server.