Skip to content

Instantly share code, notes, and snippets.

@RafalSladek
Last active January 14, 2019 10:12
Show Gist options
  • Save RafalSladek/5c64322b380331e1828b07b15f2233af to your computer and use it in GitHub Desktop.
Save RafalSladek/5c64322b380331e1828b07b15f2233af to your computer and use it in GitHub Desktop.
a bash script to start nevergreen ci monitor locally with docker
#!/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