Open tina-junold opened 3 months ago
One of the points to use distrolless is to reduce "atack surface" / "CVE noise". Adding as shell back would counteract this.
I get your usecase, let's think about what would be the best compromise. We also have a image with a shell and a debugger in it: https://github.com/grafana/pyroscope/blob/main/cmd/pyroscope/debug.Dockerfile, which is not published.
Do you think it would help you if we would publish those debug images?
Since we are using as debug/local telemetry stack (alloy, grafana, loki, mimir, pyroscope, tempo) for testing our applications locally, i think releasing a debug image is suitable enough :-)
Do you know if the mimir team can do the same?
Best regards, Tina
Describe the bug
The newer images (distroless) are missing a shell. This shell is required if a custom entrypoint is defined. In Docker Compose environment this is mandatory to define memberlist .advertise-addr dynamically.
To Reproduce
Use grafana/pyroscope:latest
Expected behavior
Add a shell to the distroless containers or add another "alpine"? based container
Environment
.env
docker-compose.yml
pyroscope.yaml
entrypoint.sh
Additional information
Same problem also occurs on Mimir, at least they have an alpine dockerfile, but not published.