setup-redis/start-redis.sh

14 lines
369 B
Bash
Raw Normal View History

2019-12-18 09:57:59 +00:00
#!/bin/sh
2020-04-12 04:49:08 +00:00
REDIS_VERSION=$1
2021-12-27 05:41:35 +00:00
REDIS_PORT=$2
2020-04-12 04:49:08 +00:00
if [ -z "$REDIS_VERSION" ]; then
echo "Missing Redis version in the [redis-version] input. Received value: $REDIS_VERSION"
echo "Falling back to Redis version [latest]"
REDIS_VERSION='latest'
fi
echo "Starting single-node Redis instance"
2021-12-27 05:41:35 +00:00
docker run --name redis --publish $REDIS_PORT:6379 --detach redis:$REDIS_VERSION