docs: update dev guide for agent build

Include details on setting up rust.

Fixes: #851

Signed-off-by: Eric Ernst <eric.g.ernst@gmail.com>
This commit is contained in:
Eric Ernst 2020-10-02 15:34:39 -07:00 committed by Eric Ernst
parent 1d5eab42d6
commit 777f398184

View File

@ -75,6 +75,11 @@ You need to install the following to build Kata Containers components:
To view the versions of go known to work, see the `golang` entry in the To view the versions of go known to work, see the `golang` entry in the
[versions database](../versions.yaml). [versions database](../versions.yaml).
- [rust](https://www.rust-lang.org/tools/install)
To view the versions of rust known to work, see the `rust` entry in the
[versions database](../versions.yaml).
- `make`. - `make`.
- `gcc` (required for building the shim and runtime). - `gcc` (required for building the shim and runtime).
@ -247,6 +252,15 @@ $ sudo systemctl restart systemd-journald
> >
> - You should only do this step if you are testing with the latest version of the agent. > - You should only do this step if you are testing with the latest version of the agent.
The rust-agent is built with a static linked `musl.` To configure this:
```
rustup target add x86_64-unknown-linux-musl
sudo ln -s /usr/bin/g++ /bin/musl-g++
```
To build the agent:
``` ```
$ go get -d -u github.com/kata-containers/kata-containers $ go get -d -u github.com/kata-containers/kata-containers
$ cd $GOPATH/src/github.com/kata-containers/kata-containers/src/agent && make $ cd $GOPATH/src/github.com/kata-containers/kata-containers/src/agent && make