Skip to content

Instantly share code, notes, and snippets.

@laidbackware
Last active February 11, 2020 15:51
Show Gist options
  • Save laidbackware/9a06297280f128ae13b804dcff4dcda5 to your computer and use it in GitHub Desktop.
Save laidbackware/9a06297280f128ae13b804dcff4dcda5 to your computer and use it in GitHub Desktop.
Ops Man tools
#!/bin/bash
set -euxo pipefail
OM_TOKEN=$1
OM_VERSION=4.4.2
UAA_CLI_VERSION=0.10.0
PKS_VERSION=1.6.1
wget -O /tmp/om https://github.com/pivotal-cf/om/releases/download/${OM_VERSION}/om-linux-${OM_VERSION}
chmod +x /tmp/om
sudo mv /tmp/om /usr/local/bin/
wget -O /tmp/uaa https://github.com/cloudfoundry-incubator/uaa-cli/releases/download/${UAA_CLI_VERSION}/uaa-linux-amd64-${UAA_CLI_VERSION}
chmod +x /tmp/uaa
sudo mv /tmp/uaa /usr/local/bin/
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
chmod +x kubectl
sudo mv kubectl /usr/local/bin/
om download-product -t exGJ-duTMyqxcZBHAkx2 --pivnet-product-slug pivotal-container-service --product-version ${PKS_VERSION} --file-glob pks-linux-amd64-* --output-directory /tmp/
chmod +x /tmp/pks-linux-amd64-*
sudo mv /tmp/pks-linux-amd64-* /usr/local/bin/pks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment