dragon-bot/build_and_deploy.sh
2017-08-04 22:32:20 -07:00

15 lines
635 B
Bash
Executable File

# Put the latest version of the dragon-bot.py in the container
# printf "[-] Rebuilding container with latest code\n"
# docker build -t dragon-bot .
# printf "[+] Done\n"
# Remove the running container so we cna re-use the container name 'dragon-bot'
printf "\n[-] Deleting old dragon-bot container from system\n"
docker rm -f dragon-bot
printf "[+] Done\n"
# Run that shit and mount the docker socket so it can talk to the sky-factory container
printf "\n[-] Starting up latest build of container\n"
docker run -d --name dragon-bot -v /var/run/docker.sock:/var/run/docker.sock --restart always ldooks/dragon-bot
printf "[+] Done\n"