Skip to content

Instantly share code, notes, and snippets.

@metavige
Last active August 25, 2021 02:48
Show Gist options
  • Save metavige/4206a4dfcb118b0c6279b8c36bc54649 to your computer and use it in GitHub Desktop.
Save metavige/4206a4dfcb118b0c6279b8c36bc54649 to your computer and use it in GitHub Desktop.
install ocp-all-in-one using multipass
#!/bin/bash
DOCKER_DEB=docker-engine-1.13.1.deb
OCP_TAR=openshift-origin-client-tools-v3.11.0.tar.gz
wget https://ftp.yandex.ru/mirrors/docker/pool/main/d/docker-engine/docker-engine_1.13.1-0~ubuntu-xenial_amd64.deb -O $DOCKER_DEB
wget https://github.com/openshift/origin/releases/download/v3.11.0/openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz -O $OCP_TAR
sed -i 's/archive.ubuntu.com/free.nchc.org.tw/g' /etc/apt/sources.list
apt-get update
apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common \
libltdl7
dpkg -i $DOCKER_DEB
mkdir $HOME/ocp
tar zxvf $OCP_TAR -C $HOME/ocp
mv $HOME/ocp/kubectl /usr/local/bin
mv $HOME/ocp/oc /usr/local/bin
rm $DOCKER_DEB
rm $OCP_TAR
rm -rf $HOME/ocp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment