-
Notifications
You must be signed in to change notification settings - Fork 3k
Remove build-essential install #1383
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
Remove build-essential install #1383
Conversation
What is the motivation for doing this? |
Reducing the sizes of images. |
What makes you know it isnt needed? I dont know its needed or not needed. Do you know why it was added in the first place? |
Before:
After:
|
I didn't know that before trying this PR :) The idea is that build-essential contains compiler / debugger and so on. But, usually python packages come as wheels, which are pre-built, so you don't have to build it on your machine. |
Saving 180MB basically in every image makes me happy :)
No idea. It's in this repo from the beginning (2nd commit after init). |
Hmmmmmmmm... Well this logic can make us delete a lot of packages as the image builda without them, but they can also have value to the end user. I'm not confident about the values this package delivers, but if it is only needed for those using this image as a base image for their own dockerfile, then i think it is reasonable to delete it anyhow. Do you know if this package can be reasonably used by people starting this container directly? |
I'm not sure about a lot, because we keep small things like vim-tiny to be able to easily use our images through bash.
I think the most commonly used packages come pre-built. Also, we're only breaking people using latest version of our images, which is also OK, because latest is changing quite rapidly and updates are going to happen. |
I looked at the pangeo-docker-images if they have If someone would need it - I believe it would be needed from a Dockerfile using this image in a |
Yes, I do think this will only break for users, which inherit from our images (using |
@mathbunnyru I added a PR description, this LGTM! |
Let's try this one out then. Hope it's gonna work fine :) |
Installing R packages requires `make`. Having make and basic compilers available is also useful for users. The package used to be installed in the upstream minimal-notebook image, but it was removed in jupyter/docker-stacks:4f7881bfb386f4a1522cb27668f5f68586f7110a. See jupyter/docker-stacks#1383 for more info.
Installing R packages requires `make`. Having make and basic compilers available is also useful for users. The package used to be installed in the upstream minimal-notebook image, but it was removed in jupyter/docker-stacks:4f7881bfb386f4a1522cb27668f5f68586f7110a. See jupyter/docker-stacks#1383 for more info.
PR description by @consideRatio
The
build-essentials
package was not a dependency to install other packages in the images of this repo, and it increased the minimal-notebook image size from 1.37GB to 1.55GB for example.With the motivation that it is probably only relevant for users that depend on this image as a base image from other Dockerfiles where it is easy to install an additional
apt
package, this PR propose it is deleted. If this caused a breaking change for you, and you were using the image directly without using this image as a base image (via aFROM
statement in a Dockerfile), please open an issue and describe that use case!