|
|
@ -22,6 +22,7 @@ docker: stat |
|
|
|
cp bin/lorebot stage.tmp/
|
|
|
|
cp bin/lorebot stage.tmp/
|
|
|
|
cp deps/rootfs.tar.gz stage.tmp/
|
|
|
|
cp deps/rootfs.tar.gz stage.tmp/
|
|
|
|
cp deps/Dockerfile stage.tmp/
|
|
|
|
cp deps/Dockerfile stage.tmp/
|
|
|
|
|
|
|
|
cp deps/redis.conf stage.tmp/
|
|
|
|
chmod +x deps/run.sh
|
|
|
|
chmod +x deps/run.sh
|
|
|
|
cp deps/run.sh stage.tmp/
|
|
|
|
cp deps/run.sh stage.tmp/
|
|
|
|
cp config.gcfg stage.tmp/
|
|
|
|
cp config.gcfg stage.tmp/
|
|
|
@ -43,6 +44,16 @@ aci: stat |
|
|
|
mv lorebot.aci ../
|
|
|
|
mv lorebot.aci ../
|
|
|
|
@echo "lorebot.aci built"
|
|
|
|
@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: |
|
|
|
test_aci: |
|
|
|
mkdir -p /tmp/lorebot/redis/
|
|
|
|
mkdir -p /tmp/lorebot/redis/
|
|
|
|
touch /tmp/lorebot/dump.rdb
|
|
|
|
touch /tmp/lorebot/dump.rdb
|
|
|
|