Skip to content

Build

Dev container

The repo provides a Visual Studio Code dev container which includes all necessary tools to build all components and the documentation, but it does not provide the tools to run Ankaios as it's not the target platform. In case you want to extend the dev container see extending the dev container.

Prerequisites

Build Ankaios

To build and test the Ankaios agent and server, run the following command inside the dev container:

cargo build

and for release

cargo build --release

Build for arm64 target on x86 host

The dev container adds required tools for arm64 architecture. To build Ankaios for arm64, run the following command inside the dev container:

cargo build --target aarch64-unknown-linux-gnu --release