Skip to content

Commit 87b9cb4

Browse files
committed
Document how to hack on the monitor locally
1 parent 05c1f39 commit 87b9cb4

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,23 @@ $ vim -p /config/monitor/.env /config/monitor/monitor.toml
134134
$ systemctl restart monitor
135135
```
136136

137+
Hacking on the monitor locally
138+
------------------------------
139+
140+
Easy but slow way:
141+
142+
```
143+
$ nix develop -c sudo [RUST_BACKTRACE=1] monitor
144+
```
145+
146+
Harder but faster way:
147+
148+
```
149+
$ export RUSTFLAGS=-Clink-arg=-fuse-ld=mold
150+
$ cargo build --manifest-path monitor/Cargo.toml
151+
$ sudo [RUST_BACKTRACE=1] IMAGE_DEPS_DIR=$(nix eval --raw .\#image-deps) LIB_MONITOR_DIR=. monitor/target/debug/monitor
152+
```
153+
137154
Windows 10 runner
138155
-----------------
139156

File renamed without changes.

0 commit comments

Comments
 (0)