dragon-bot/test-dragon-bot.sh

15 lines
587 B
Bash
Executable File

printf "\n[-] Formatting code\n"
./format_code.sh
printf "[+] Done\n"
# Remove the running container so we can re-use the container name 'dragon-bot'
printf "\n[-] Deleting old dragon-bot container from system\n"
docker rm -f dragon-bot-test
printf "[+] Done\n"
printf "\n[-] Running dragon bot in test mode\n"
chmod +x ./app/bot.py
docker build -f ./Dockerfile-test-env -t dragon-bot-test . || exit
docker run -ti -v $(pwd)/app:/app --rm --name dragon-bot-test -e DRAGON_ENV=test -e token="MzQ1MjkwMTI5OTQ4Mjc4Nzg0.G16mG8.vxgQLwnbusG9fSlXvAFV0wTUmRsJJlPnQ3bpco" dragon-bot-test bash