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.
This PR changes the default value of the Redis loader's
--load-type
flag fromappend
tonew
so that users don't accidentally append to an existing database. It also updates the loader'sentrypoint.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.