mirror of
https://github.com/AzuraCast/AzuraCast.git
synced 2024-06-14 13:16:37 +00:00
Switch from Redis to KeyDB locally.
This commit is contained in:
parent
b4e2854fc5
commit
6632b515c6
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
16
util/docker/redis/setup/keydb.sh
Normal file
16
util/docker/redis/setup/keydb.sh
Normal 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
|
|
@ -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
|
Loading…
Reference in New Issue
Block a user