feat: docker and redis setup, tests

This commit is contained in:
2024-03-14 22:07:48 +00:00
parent 7c33e9b886
commit b06c95d9b4
4 changed files with 51 additions and 12 deletions

View File

@@ -0,0 +1,16 @@
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Description:
# Install Redis.
#
if ! command -v redis-client &>/dev/null; then
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list
sudo apt-get install -qq redis
elif [[ "$OSTYPE" == "darwin"* ]]; then
brew install redis
fi
fi