You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/DEVELOPMENT.md
+8-15Lines changed: 8 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,16 +2,17 @@
2
2
3
3
## Compiling and running Agent Control
4
4
5
-
As of now, Agent Control is supported on Linux (x86_64 and aarch64). The program is written in Rust, and for multiplatform compilation we leverage [`cross`](https://github.com/cross-rs/cross).
5
+
As of now, Agent Control is supported on Linux (x86_64 and aarch64). The program is written in Rust, and for multiplatform compilation we leverage [`cargo-zigbuild`](https://github.com/rust-cross/cargo-zigbuild) and musl libc.
6
6
7
7
### On-host
8
8
9
9
To compile and run locally:
10
10
11
-
1. Install the [Rust toolchain](https://www.rust-lang.org/tools/install) for your system.
12
-
2. Run `cargo build --bin newrelic-agent-control-onhost`
13
-
3.`newrelic-agent-control-onhost` binary will be generated at `./target/debug/newrelic-agent-control-onhost`
14
-
4. Prepare a `config.yaml` file in `/etc/newrelic-agent-control/`, example:
11
+
1. Install the [Rust toolchain](https://www.rust-lang.org/tools/install) for your system, also add the relevant target for your system, e.g. (`rustup target add x86_64-unknown-linux-musl`).
12
+
2. Install `cargo-zigbuild` with `cargo install --locked cargo-zigbuild`.
13
+
3. Run `cargo zigbuild --bin newrelic-agent-control --target <ARCH>-unknown-linux-musl`, where `<ARCH>` is either `x86_64` or `aarch64`, depending on your system.
14
+
4.`newrelic-agent-control` binary will be generated at `./target/<ARCH>-unknown-linux-musl/debug/newrelic-agent-control`
15
+
5. Prepare a `config.yaml` file in `/etc/newrelic-agent-control/`, example:
Note: Adding the `'chart_repo'` setting, pointing to the [New Relic charts](https://github.com/newrelic/helm-charts/tree/master/charts) on a local path, allows using local helm charts.
0 commit comments