-
Notifications
You must be signed in to change notification settings - Fork 543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate Mimir to distroless Docker image #3202
Comments
Nice, I didn't know about |
I like the idea, but |
This issue originates from a conversation I had with Thomas (head security at Grafana) and Bryan. My idea is to publish both alpine and distroless images for Mimir (and GEM) so that users / customers can choose. Moreover, we should also pubilsh a WDYT? |
Publishing both sounds like a good idea. Internally we don't use Mimir docker images in any way, so that's a separate conversation. |
I saw that this ticket is still open. With #8204 the switch to distroless was made. Also the grafana/mirmir-alpine is kept, but i don't see any grafana/mimir-debug image. Since Mimir also uses memberlist, in debug environment a shell is required. See my issue here grafana/pyroscope#3478. I hope you find a company wide solution for this. Maybe something like |
There are some docs in the runbooks for how to run a debug container to a Kubernetes Pod. Does this solve your problem? Or are you specifically looking for a Mimir container which has utilities bundled? |
@dimitarvdimitrov While i'm using mimir in k8s, this request is not related to k8s. Therefore, the question is, if it is possible to publish a "debug" container witch shell support. |
interesting. Building an image shouldn't be too difficult. Mimir is statically compiled, so just dropping the binary from the existing image or the GH release artifacts into a new image should work. You can verify with the current Dockerfile for the distroless image. The reason why we went the distroless path is because it's less of a maintenance burden to patch CVEs on unrelated packages. I think nothing related to that has changed, so it's unlikely that we reintroduce an image with a heavier base image. |
I've updated the repo using two custom Dockerfiles using the binaries of the original containers and adding the entrypoints directly in these containers. Works so far... |
@tina-junold How is your experience since then? If all goes well, would you like to create a pull request with your changes? |
We should migrate Mimir to a distroless Docker image, to reduce the attack surface.
The main pushback towards this move was because it's then very difficult to debug a live container (e.g. look at files on disk or sockets), but in recent K8S versions we could use
kubectl debug
(doc) to add a debugging container to a running pod.The text was updated successfully, but these errors were encountered: