|
|
|
@ -22,6 +22,7 @@ docker: stat
|
|
|
|
|
cp bin/lorebot stage.tmp/
|
|
|
|
|
cp deps/rootfs.tar.gz stage.tmp/
|
|
|
|
|
cp deps/Dockerfile stage.tmp/
|
|
|
|
|
cp deps/redis.conf stage.tmp/
|
|
|
|
|
chmod +x deps/run.sh
|
|
|
|
|
cp deps/run.sh stage.tmp/
|
|
|
|
|
cp config.gcfg stage.tmp/
|
|
|
|
@ -43,6 +44,16 @@ aci: stat
|
|
|
|
|
mv lorebot.aci ../
|
|
|
|
|
@echo "lorebot.aci built"
|
|
|
|
|
|
|
|
|
|
test_docker: |
|
|
|
|
mkdir -p /tmp/lorebot/redis/
|
|
|
|
|
touch /tmp/lorebot/dump.rdb
|
|
|
|
|
cp .auth /tmp/lorebot/
|
|
|
|
|
sudo docker run \
|
|
|
|
|
-it \
|
|
|
|
|
-v /tmp/lorebot/redis:/redisbackup:rw \
|
|
|
|
|
-v /tmp/lorebot/.auth:/.auth:ro \
|
|
|
|
|
smpldbot
|
|
|
|
|
|
|
|
|
|
test_aci: |
|
|
|
|
mkdir -p /tmp/lorebot/redis/
|
|
|
|
|
touch /tmp/lorebot/dump.rdb
|
|
|
|
|