Skip to content

Instantly share code, notes, and snippets.

@kevinkarwaski
Created July 20, 2016 17:00
Show Gist options
  • Save kevinkarwaski/eff1c943a59f5a28003185e38aefdad7 to your computer and use it in GitHub Desktop.
Save kevinkarwaski/eff1c943a59f5a28003185e38aefdad7 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash -e
# Install Codeship's JET cli tool for Docker on OSX (brew-less).
# https://codeship.com/documentation/docker/installation/#mac-os-x
# https://codeship.com/documentation/docker/release-notes/
JET_VERSION=1.9.3
FILE_NAME=jet-darwin_amd64_${JET_VERSION}.tar.gz
CHECKSUM=sha256sums
# Get the tar ball and checksum.
curl -SLO https://s3.amazonaws.com/codeship-jet-releases/${JET_VERSION}/${FILE_NAME}
curl -SLO https://s3.amazonaws.com/codeship-jet-releases/${JET_VERSION}/${CHECKSUM}
# Check the sha.
shasum -c -a 256 ${CHECKSUM} 2>&1 |grep OK
# Install/upgrade Jet.
tar -xC /usr/local/bin/ -f ${FILE_NAME}
chmod u+x /usr/local/bin/jet
# Cleanup
rm ${FILE_NAME}
rm ${CHECKSUM}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment