This repository has been archived by the owner on Oct 30, 2024. It is now read-only.
Docker container at ghcr.io is missing libraries - dynamically linked kubeaudit binary #579
Open
2 of 3 tasks
ISSUE TYPE
BUG REPORT
SUMMARY
The Docker container at ghcr.io contains a dynamically built
/kubebuilder
binary, and is missing the required libraries.ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
The
/kubeaudit
binary actually starts.ACTUAL RESULTS
The
/kubeaudit
binary cannot be started.ADDITIONAL INFORMATION
Inspection of the container shows that the binary is dynamically linked, and the required binaries are missing:
As
goreleaser
usesgoreleaser.Dockerfile
, and that has no code to build the binary, my guess is that it adds the regular binary-build instead of a static one:Building the container using
Dockerfile
results in a working, static/kubeaudit
:FEATURE IDEA
Proposal:
Use
Dockerfile
withgoreleaser
, or even better: havegoreleaser
build the separate binaries as static as well.The text was updated successfully, but these errors were encountered: