Skip to content

Instantly share code, notes, and snippets.

@chuckha
Last active March 16, 2020 19:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuckha/1a19dc2421d67c8935500a0b25578484 to your computer and use it in GitHub Desktop.
Save chuckha/1a19dc2421d67c8935500a0b25578484 to your computer and use it in GitHub Desktop.
Set up an ubuntu server for go
#!/usr/bin/env bash
sudo apt-get update
sudo apt-get install build-essential
#!/usr/bin/env bash
set -o xtrace
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
#!/usr/bin/env bash
VERSION=1.13.x
git clone https://github.com/kubernetes-sigs/etcdadm.git
cd etcdadm
eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=${VERSION} bash)"
make
#!/usr/bin/env bash
set -o xtrace
VERSION=1.13.x
eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=${VERSION} bash)"
sudo apt install make
git config --global alias.co checkout
git config --global alias.st status
echo "eval \$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=${VERSION} bash)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment