Should we statically link Tracee? #565
Replies: 2 comments
-
|
I was unaware of the features that require a dynamically linked binary, so I need to do more research on that. How does statically compiling remove the need for a second Dockerfile? I'm not familiar with our dockerfile setup. libc, libelf, and zlib aren't heavy asks as runtime dependencies, but removing them is certainly nice. If we expect tracee-ebpf to typically be run in a container the larger binary size is offset by the removal of those packages. Regardless I don't think binary size is that big of a deal. I'd say a static binary is simpler than a dynamic one and it's always nice to reduce complexity. |
Beta Was this translation helpful? Give feedback.
-
If you'll take a look at the tracee-ebpf dir, you will see that we have two dockerfiles: Dockerfile and Dockerfile.builder. Using a static binary will remove the need to build in two different environments, as no libc needs to be present in runtime for a statically linked binary |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
There are several advantages to statically link Tracee:
On the other hand:
Beta Was this translation helpful? Give feedback.
All reactions