Last active
February 28, 2018 12:49
-
-
Save liubin/e195bb4b4e907439c686b0255a1d9750 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install Docker | |
apt-get update | |
apt-get remove docker docker-engine docker.io | |
apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common make g++ mercurial | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
apt-get update | |
apt-get install docker-ce | |
# install jq | |
curl -o /usr/local/bin/jq -L https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 && sudo chmod +x /usr/local/bin/jq | |
# install Golang | |
wget https://dl.google.com/go/go1.9.4.linux-amd64.tar.gz | |
tar -C /usr/local -xzf go1.9.4.linux-amd64.tar.gz | |
# install goling | |
go get -u github.com/golang/lint/golint | |
# install cgo | |
CGO_ENABLED=0 go install -a -installsuffix cgo std | |
# Use self user | |
su liubin | |
mkdir ~/go | |
echo "export GOPATH=/home/$USER/go/" >> ~/.bashrc | |
echo "export working_dir=$GOPATH/src/k8s.io" >> ~/.bashrc | |
echo "export user=$USER" >> ~/.bashrc | |
echo "export PATH=$PATH:/usr/local/go/bin:~/go/bin" >> ~/.bashrc | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment