I hereby claim:
- I am jontg on github.
- I am jontg (https://keybase.io/jontg) on keybase.
- I have a public key whose fingerprint is 4EA2 F91B F984 AA83 DD9B 156A AD44 AA9D 309D 6927
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
> docker ps | |
52d7f3acccae webapp:2014_03_21_1002 /usr/local/bin/super 4 minutes ago Up 4 minutes | |
0.0.0.0:51484->7200/tcp, 0.0.0.0:51485->80/tcp, 0.0.0.0:51486->8080/tcp, 0.0.0.0:51487->8910/tcp distracted_newton | |
ab03287161c2 relateiq/hipache:latest supervisord -c /supe 8 weeks ago Up 8 weeks | |
0.0.0.0:6379->6379/tcp, 0.0.0.0:80->80/tcp distracted_newton/hipache,hipache |
# $1 -> docker host | |
# $2 -> docker port | |
# TAG looks like 2014_03_21_1002 and is a build timestamp | |
SUFFIX="_${branch}" | |
docker -H tcp://$1:$2 build -rm -t ${image_name}${SUFFIX}:${TAG} . | |
IMAGE_ID=$(docker -H tcp://$1:$2 images | grep ${image_name}${SUFFIX} | grep ${TAG} | awk '{print $3}') | |
docker -H tcp://$1:$2 tag $IMAGE_ID ${image_name}${SUFFIX}:latest | |
docker -H tcp://$1:$2 save $IMAGE_ID | gzip -c > webapp_${TAG}.tgz | |
docker -H tcp://$1:$2 rmi ${image_name}${SUFFIX}:${TAG} |
> grunt build | |
build/static_assets.tgz | |
> mvn clean package -U | |
build/webapp.war | |
> rsync -raz build/ docker/ | |
# Assets copied into a prepared container. |
REST=https://teamcity.relateiq.com/... | |
for id in $(echo $BUILDS | jq -r '.builds | map(.id) | @sh'); do | |
curl -u $username:$password -XGET $REST/id:$id/artifacts/VERSION | |
done |
#!/bin/bash | |
# Source files so we can announce stuff | |
. /mnt/apps/scripts/setenv.sh | |
. /mnt/apps/scripts/hipchat_notify.sh | |
if [ $(pidof -x deploy_if_new.sh | wc -w) -gt 2 ]; then | |
echo "$(date +"%Y-%m-%d %H:%M:%S %Z") Cowardly exiting as deploy_if_new is already running" | |
exit -1 | |
fi |