Switch from Redis to KeyDB locally.

This commit is contained in:
Buster Neece 2024-03-22 12:54:48 -05:00
parent b4e2854fc5
commit 6632b515c6
No known key found for this signature in database
4 changed files with 19 additions and 14 deletions

View File

@ -48,7 +48,7 @@ mkdir -p /etc/my_init.d
# Install other common scripts.
apt-get install -y --no-install-recommends \
tini gosu curl wget tar zip unzip xz-utils git rsync tzdata gnupg gpg-agent openssh-client
lsb-release tini gosu curl wget tar zip unzip xz-utils git rsync tzdata gnupg gpg-agent openssh-client
# Add scripts
cp -rT /bd_build/scripts/ /usr/local/bin

View File

@ -1,6 +1,6 @@
[program:redis]
command=redis-server /etc/redis/redis.conf
user=redis
command=keydb-server /etc/redis/redis.conf
user=keydb
priority=100
numprocs=1
autostart=true

View File

@ -0,0 +1,16 @@
#!/bin/bash
set -e
set -x
echo "deb https://download.keydb.dev/open-source-dist $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/keydb.list
wget -O /etc/apt/trusted.gpg.d/keydb.gpg https://download.keydb.dev/open-source-dist/keyring.gpg
apt-get update
apt-get install -y --no-install-recommends keydb-tools
mkdir -p /etc/redis
chown -R keydb:keydb /etc/redis
cp /bd_build/redis/redis/redis.conf /etc/redis/redis.conf
mkdir -p /run/redis
chown keydb:keydb /run/redis

View File

@ -1,11 +0,0 @@
#!/bin/bash
set -e
set -x
apt-get install -y --no-install-recommends redis-server
cp /bd_build/redis/redis/redis.conf /etc/redis/redis.conf
chown redis:redis /etc/redis/redis.conf
mkdir -p /run/redis
chown redis:redis /run/redis