legumeinfo / microservices

A collection of microservices developed and maintained by the Legume Information System
https://legumeinfo.org/
Apache License 2.0
3 stars 2 forks source link

Redis loader updates #609

Closed alancleary closed 10 months ago

alancleary commented 10 months ago

This PR changes the default value of the Redis loader's --load-type flag from append to new so that users don't accidentally append to an existing database. It also updates the loader's entrypoint.sh script to only run scripts in the Docker container's /docker-entrypoint-initdb.d/ directory when the Redis database is empty AND there's no command-line arguments. This, for example, will prevent the example script from running in the gcv-docker-compose repo when users want to load their own data via the command-line to initialize the database. Lastly, this PR bumps the redis_loader version to 1.3.0 so I can tag a release when it's merged and get the changes into the gcv-docker-compose repo ASAP.