Skip to content

Instantly share code, notes, and snippets.

View andyburke's full-sized avatar

Andy Burke andyburke

  • Otto Financial
  • Los Angeles, CA
  • X @andybrk
View GitHub Profile
@andyburke
andyburke / elasticsearch
Created October 17, 2014 12:38
OSX Yosemite 10.10 elasticsearch service wrapper fixed for 64 bits
#! /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 ->
#!/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}')