Skip to content

Instantly share code, notes, and snippets.

@rdodev
Last active April 19, 2017 17:39
Show Gist options
  • Save rdodev/74dcad75e0fe570509eda5cbc229168e to your computer and use it in GitHub Desktop.
Save rdodev/74dcad75e0fe570509eda5cbc229168e to your computer and use it in GitHub Desktop.
Kubernetes Multi-platform Release Build (Ubuntu Xenial)
apt update && apt upgrade -y
apt install apt-transport-https ca-certificates curl software-properties-common build-essential -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
apt-key fingerprint 0EBFCD88
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt update
apt install docker-ce -y
ssh-keygen #unneeded if you have your ssh key already in github
git clone git@github.com:kubernetes/kubernetes.git
service docker start
wget https://storage.googleapis.com/golang/go1.7.4.linux-amd64.tar.gz
tar -xvf go1.7.4.linux-amd64.tar.gz
mv go /usr/local/
export GOROOT=/usr/local/go
export GOPATH=$HOME/kubernetes
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
time make all GOFLAGS='-p 12'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment