Skip to content

Instantly share code, notes, and snippets.

@worldofgeese
Last active March 2, 2023 13:35
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 worldofgeese/4cf622dbedff35311d5fc26a4f956278 to your computer and use it in GitHub Desktop.
Save worldofgeese/4cf622dbedff35311d5fc26a4f956278 to your computer and use it in GitHub Desktop.
A developer environment for Garden created with Canonical's Multipass

Multipass Garden Devenv

Launch a Minikube blueprint

multipass launch minikube --name garden-dev --memory 4G --disk 60G --cpus 2

Install Homebrew for Linux

CI=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install Homebrew to PATH (echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /home/ubuntu/.profile eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"

Install recommended build tools sudo apt-get install build-essential brew install gcc

brew install gh

garden-dev:~$ gh auth login ? What account do you want to log into? GitHub.com ? What is your preferred protocol for Git operations? HTTPS ? Authenticate Git with your GitHub credentials? Yes ? How would you like to authenticate GitHub CLI? Login with a web browser

If you receive

Failed opening a web browser at https://github.com/login/device
exec: "xdg-open,x-www-browser,www-browser,wslview": executable file not found in $PATH

Please visit the following URL in your browser and enter the code below:

github.com/login/device

mkdir -p projects && cd projects gh repo clone garden-io/garden && cd garden

==> Tapping git-chglog/git-chglog Cloning into '/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/git-chglog/homebrew-git-chglog'... remote: Enumerating objects: 98, done. remote: Counting objects: 100% (46/46), done. remote: Compressing objects: 100% (46/46), done. remote: Total 98 (delta 13), reused 1 (delta 0), pack-reused 52 Receiving objects: 100% (98/98), 17.34 KiB | 1.33 MiB/s, done. Resolving deltas: 100% (29/29), done. Tapped 1 formula (14 files, 85.2KB). Warning: No available formula with the name "kubernetes-helm". Did you mean kubernetes-cli? ==> Searching for similarly named formulae... ==> Formulae kubernetes-cli

To install kubernetes-cli, run: brew install kubernetes-cli Error: No available formula with the name "kubernetes-helm". Did you mean kubernetes-cli? Error: Invalid --cask usage: Casks do not work on Linux ./scripts/install-osx-dependencies.sh: line 14: gcloud: command not found ./scripts/install-osx-dependencies.sh: line 15: gcloud: command not found % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 15916 100 15916 0 0 65689 0 --:--:-- --:--:-- --:--:-- 65768

brew install yarn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment