Last active
November 6, 2019 02:26
-
-
Save guangbochen/2be02096a95aeef1df675b553b08b222 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
# 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