Skip to content

Instantly share code, notes, and snippets.

@zmb3
Created February 3, 2022 16:49
Show Gist options
  • Save zmb3/15d9c3022ef18e0891e4c8987e50a078 to your computer and use it in GitHub Desktop.
Save zmb3/15d9c3022ef18e0891e4c8987e50a078 to your computer and use it in GitHub Desktop.
Multipass Candidate Review
packages:
- git
- wget
- build-essential
- tree
- protobuf-compiler
runcmd:
- [ wget, https://go.dev/dl/go1.17.5.linux-arm64.tar.gz ]
- [ sudo, tar, -C, /usr/local, -xzf, /go1.17.5.linux-arm64.tar.gz ]
- [ runuser, -l, ubuntu, -c, 'curl --proto "=https" --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y' ]
- [ runuser, -l, ubuntu, -c, 'go install honnef.co/go/tools/cmd/staticcheck@latest' ]
- [ runuser, -l, ubuntu, -c, 'go install google.golang.org/protobuf/cmd/[email protected]' ]
- [ runuser, -l, ubuntu, -c, 'go install google.golang.org/grpc/cmd/[email protected]' ]
write_files:
- path: /etc/profile.d/go.sh
content: |
export PATH=/home/ubuntu/go/bin:/usr/local/go/bin/:$PATH
multipass launch --cloud-init cloud-config.yaml --name interview --disk 10G
multipass mount $(pwd) interview:/interviews
multipass shell interview
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment