Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 22 additions & 6 deletions docs/content/en/docs/contribution-guide/development-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,25 +135,41 @@ answer](https://stackoverflow.com/questions/18149546/macos-vagrant-up-failed-dev
Use [Lima](https://lima-vm.io/) to create a Linux VM if you are using a Mac with
Apple silicon. For example:

{{< warning >}}
The following commands create a VM, and make the mount for your home directory
on the host writable. Tweak `~/.lima/tetragon/lima.yaml` if you prefer to only
mount Tetragon directory as writable.
{{< /warning >}}

{{< note >}}
The following commands install Golang 1.23. You may want to install a newer
version if it's available in https://launchpad.net/~longsleep/+archive/ubuntu/golang-backports.
{{< /note >}}

First create a VM using [Lima](https://lima-vm.io/):

```shell
brew install lima
limactl create --mount-writable --tty=false --name=tetragon
limactl start tetragon
limactl shell tetragon
```

Then install needed dependencies inside the VM:

```shell
sudo add-apt-repository -y ppa:longsleep/golang-backports
sudo apt update
sudo apt install -y golang-1.23 libelf-dev libcap-dev make
export CONTAINER_ENGINE=nerdctl
export PATH=$PATH:/usr/lib/go-1.23/bin
make tetragon-bpf tetragon tetra
```

> ⚠️ **IMPORTANT**: This creates a VM, and make the mount for your home
> directory on the host writable. Tweak `~/.lima/tetragon/lima.yaml` if you
> prefer to only mount Tetragon directory as writable.
You can now build Tetragon in your VM:

> 💡 **TIP**: This installs Golang 1.23. You may want to install a newer version
> if it's available in https://launchpad.net/~longsleep/+archive/ubuntu/golang-backports.
```shell
make -j3 tetragon-bpf tetragon tetra
```

## What's next

Expand Down
Loading