Last active
January 14, 2019 10:12
-
-
Save RafalSladek/5c64322b380331e1828b07b15f2233af to your computer and use it in GitHub Desktop.
a bash script to start nevergreen ci monitor locally with docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ -z ${NEVERGREEN_AES} ]]; | |
then | |
echo "variable NEVERGREEN_AES is not set. Please put this aes key in your .bashrc or .profile" | |
exit -1; | |
else | |
docker stop nevergreen | |
docker rm -f nevergreen | |
docker rmi buildcanariesteam/nevergreen | |
docker pull buildcanariesteam/nevergreen | |
docker run -d \ | |
-p 5000:5000 \ | |
-e "AES_KEY=$NEVERGREEN_AES" \ | |
--name nevergreen \ | |
--restart unless-stopped \ | |
buildcanariesteam/nevergreen | |
docker ps -a | grep nevergreen | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment