14 lines
552 B
Bash
14 lines
552 B
Bash
# Remove the running container so we cna re-use the container name 'dragon-bot'
|
|
printf "\n[-] Formatting code\n"
|
|
./format_code.sh
|
|
printf "[+] Done\n"
|
|
|
|
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"
|
|
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.DG5IBw._9umb82PrL22bPe7GjmHClU-NtU" dragon-bot-test sh
|