Spotter-VM/redis.sh
Disassembler 182c9eb10b Minor script updates
- Make init.d scripts executable
- Change shebang from bash to sh
- Alpinize zz-cleanup.sh
2017-12-19 19:27:44 +01:00

16 lines
372 B
Bash
Executable File

#!/bin/sh
SOURCE_DIR=$(realpath $(dirname "${0}"))/redis
# Build Docker container
docker build -t redis ${SOURCE_DIR}
# Configure Redis
mkdir -p /srv/redis
cp ${SOURCE_DIR}/srv/redis/redis.conf /srv/redis/redis.conf
chown -R 6379:6379 /srv/redis
# Configure Redis service
cp ${SOURCE_DIR}/etc/init.d/redis /etc/init.d/redis
rc-update add redis boot
service redis start