Created
February 3, 2022 16:49
-
-
Save zmb3/15d9c3022ef18e0891e4c8987e50a078 to your computer and use it in GitHub Desktop.
Multipass Candidate Review
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
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 |
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
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