Build setup opinion question. Let's say I wanted to build a super efficient agent for a Java process that combines java metrics with system metrics I've collected using eBPF using JNI. To get the eBPF part to build, it has to be built in a Linux environment. Would you configure the entire environment to build inside a docker container? Or would you just have the eBPF part built there, b/c most of the time you aren't changing eBPF and incremental builds can be leveraged to avoid firing up docker unnecessarily? I lean towards the latter, trying to figure out how I'd set up my gradle build for it. I can do a thing with
Exec
task, but that feels a little brittle and I've tried to avoid it in the past. Curious if folks have done this before and what you recommend