While debugging issues in container environments or on embedded devices, there is always the same problem: All the debugging tools are not installed.
Installing tools is often not an option, especially in environments where there is no internet connection for security reasons.
An alternative can be static builds of these software tools. When a program is compiled static, it contains all depencencies in one single program file and just works after copying the program file.
A disadvantage is the file size. A static compiled
dig is around 6 megabytes large, the
version from the package managers just 200 Kilobytes.
The static binaries can be downloaded here: https://files.serverless.industries/bin/
Supported CPU architectures:
More details can be found in the info.txt file.
The builds are done in my personal Gitlab instance with CI pipelines and Docker containers. Other CPU architectures are build with the help of multiarch/qemu-user-static.
The build process creates a base image for each CPU architecture which includes all necessary tools to build the program, builds the programs for each CPU architecture and uploads them.
A mirror of the build code can be found on my GitHub Account.