Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dennisstritzke/1c695dd804d9ecf36496a8880a0ebc40 to your computer and use it in GitHub Desktop.
Save dennisstritzke/1c695dd804d9ecf36496a8880a0ebc40 to your computer and use it in GitHub Desktop.
Install latest docker-ce version and OpenShift Client Tools 3.7.2 on Ubuntu.
#!/bin/sh
set -e
set -x
# ==> Install Docker
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
apt-key fingerprint 0EBFCD88
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get update
apt-get install -y docker-ce
# ==> Install OpenShift Origin Client
wget https://github.com/openshift/origin/releases/download/v3.7.2/openshift-origin-client-tools-v3.7.2-282e43f-linux-64bit.tar.gz
tar xfz openshift-origin-client-tools-v3.7.2-282e43f-linux-64bit.tar.gz
mv openshift-origin-client-tools-v3.7.2-282e43f-linux-64bit/oc /usr/local/bin
rm -rf openshift-origin-client-tools*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment