Skip to content

Instantly share code, notes, and snippets.

@guangbochen
Last active November 6, 2019 02:26
Show Gist options
  • Save guangbochen/2be02096a95aeef1df675b553b08b222 to your computer and use it in GitHub Desktop.
Save guangbochen/2be02096a95aeef1df675b553b08b222 to your computer and use it in GitHub Desktop.
# launch an ubuntu instance
multipass launch --name k3s --mem 5G --disk 20G
# mount local dir to the vm
mp mount $PWD k3sdev
mp shell k3sdev
# install golang 1.13
sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt-get update
sudo apt-get install golang-go
# install deps
sudo apt-get install bash git gcc musl-dev docker vim less file curl wget ca-certificates jq tar zip squashfs-tools npm coreutils python3 python3-pip python3-dev libffi-dev libseccomp-dev make
sudo apt-get upgrade
pip3 install 'tox==3.6.0'
cd golang/my-path/k3s
go mod download
./scripts/build && ./scripts/package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment