Giter VIP home page Giter VIP logo

Comments (6)

betatim avatar betatim commented on June 30, 2024

Spent a bit of time looking into how big this image is and ways to make the image smaller. The motivation for this is that pulling a large image like this takes long which means when people login to the earthlabhub and are unlucky enough to end up on a new virtual machine that doesn't already have the image they have to wait a few minutes for the image to be pulled.

This image is based on jupyter/scipy-notebook from the docker-stacks repo. They have some nice badges to tell you how big the image is: https://microbadger.com/images/jupyter/scipy-notebook and then our image: https://microbadger.com/images/earthlab/earth-analytics-python-env/

This makes me think our image is about 2.1G large, 600MB bigger than the jupyter/scipy-notebook (at 1.5GB).

When I pull both images to my laptop and look at docker images I see:

REPOSITORY                            TAG                 IMAGE ID            CREATED             SIZE
earthlab/earth-analytics-python-env   266950b             6c8c4ad8d561        47 hours ago        6.47GB
jupyter/scipy-notebook                177037d09156        07f647bee0ec        2 days ago          4.58GB

My biggest confusion is about the fact that the size shown here seems to have nothing to do with what microbadger shows :-/

from earth-analytics-python-env.

lwasser avatar lwasser commented on June 30, 2024

this is beyond me! @mbjoseph just curious. do you know anything about optimizing docker image size? ours is large and we just want to make it smaller if possible as it's a slow point in our hub deployment. i could also ping the twitterverse!

from earth-analytics-python-env.

mbjoseph avatar mbjoseph commented on June 30, 2024

I think the short answer is to make sure that the only things installed in the image are the things that we need. For example, do we need to have everything that is pre-installed in the scipy-notebook image? The source code for it is here: https://github.com/jupyter/docker-stacks/blob/master/scipy-notebook/Dockerfile

from earth-analytics-python-env.

betatim avatar betatim commented on June 30, 2024

Agreed. But also no idea what is really needed :-/

Might investigate what minimal-notebook + environment.yml from this repo gives in terms of size.

from earth-analytics-python-env.

lwasser avatar lwasser commented on June 30, 2024

ok! also i notice there that there are packages like seaborn that i may install that are already in scipy... i'm open to adjusting as needed here! thank you both

from earth-analytics-python-env.

lwasser avatar lwasser commented on June 30, 2024

we've worked with the conda forge folks to make this build much smaller i think!! i'll close this for now as it's been stale for a while. thank you all!

from earth-analytics-python-env.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.