Skip to content
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

Slim Slim docker image #755

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

pierreozoux
Copy link

Hi,

we are maintaining an image for kubernetes, and basically, we put together:

  • slim image
  • release image
  • env from web template

But, we don't consider container as slim VMs, but we consider them as "fat" binairies.

As such, we don't use tools like ssh, postgres, redis and so on.

I think in the best world, we'd share a base image that could be suitable for you and us.
But in the mean time, if we could reorganize just a bit this docker image, this would help us follow changes.

Bascially, we don't need this block:
https://github.com/pierreozoux/discourse_docker/blob/patch-1/image/base/slim.Dockerfile#L20-L46

and this block:
https://github.com/pierreozoux/discourse_docker/blob/patch-1/image/base/slim.Dockerfile#L87-L95

Maybe the way we propose is not perfect, but this is to eventually start the discussion?

Thanks for your time and have a nice day!

@tgxworld
Copy link
Contributor

Hi @pierreozoux,

I have a couple of questions:

  1. How much savings on the size of the image do you get out of excluding those dependencies?
  2. If you really need to remove those dependencies, have you tried building a new image that uninstalls those dependencies?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants