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/sh | |
# RESOLVE and SET $ES_HOME | |
SCRIPT="$0" | |
# SCRIPT may be an arbitrarily deep series of symlinks. Loop until we have the concrete path. | |
while [ -h "$SCRIPT" ] ; do | |
ls=`ls -ld "$SCRIPT"` | |
# Drop everything prior to -> |
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 | |
echo "Updating server: ${HOSTNAME}" | |
echo "" | |
# pull latest image | |
docker pull float/auth:${CODE_BRANCH} | |
# get image id | |
NEW_IMAGE_ID=$(docker images | grep -E "^float\/auth.*?${CODE_BRANCH}" | awk -e '{print $3}') |
NewerOlder