A hacky example rust application that finds java processes running in containers, dives into them and analyzes their jar files
-
Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
-
Install musl-gcc and gmake
sudo dnf install -y musl-gcc make
-
Install x86_64-unknown-linux-musl target
rustup target install x86_64-unknown-linux-musl
-
Build
$ make cargo build --release --target x86_64-unknown-linux-musl Finished release [optimized] target(s) in 9.25s
-
Run some containers
podman run -d --rm docker.io/library/tomcat:9.0 podman run -d --rm docker.io/library/jetty
-
Run (Warning becomes root)
$ make run