Code Monkey home page Code Monkey logo

Comments (8)

isuruf avatar isuruf commented on September 25, 2024 1

Since we are using conda-forge::gcc_linux-64 instead of conda-forge/label/gcc7::gcc_linux-64 there is no benefit from caching at all

from docker-images.

scopatz avatar scopatz commented on September 25, 2024 1

Yeah, I am not sure how much can realistically be done about this.

from docker-images.

jakirkham avatar jakirkham commented on September 25, 2024 1

I tried the experimental --squash option to docker build recently. That seemed to work pretty nicely. Also this achieves the best we could hope to get from multistage builds without having to fiddle with the Dockerfiles. That cuts out 0.71GB from the condaforge/linux-anvil-comp7 image based on my tests locally. Have submitted PR ( #99 ) to apply the same change to our Travis CI builds used for deployment here.

from docker-images.

jakirkham avatar jakirkham commented on September 25, 2024

Since we are using conda-forge::gcc_linux-64 instead of conda-forge/label/gcc7::gcc_linux-64 there is no benefit from caching at all

These were added before the compiler migration; so, naturally they are out-of-date. 😄 Thanks @mariusvniekerk for updating them.

from docker-images.

jakirkham avatar jakirkham commented on September 25, 2024

Yeah, I am not sure how much can realistically be done about this.

Here are some thoughts.

We could drop this layer and just spend CI time downloading the compilers. It's worth noting though that they were added because people preferred to have them cached.

We could choose to remove some things that are less frequently used like Fortran. This won't eliminate the full cost of this layer, but maybe this ends up being a notable improvement.

It could be that there is some overlapping content between many layers that would be eliminated by merging them using multi-stage builds. That said, we already do a pretty heavy amount of cleaning after each layer to avoid unneeded remnants. Would not be surprised if the savings here is small.

Do you have other thoughts @epruesse?

from docker-images.

jakirkham avatar jakirkham commented on September 25, 2024

If we want to make a notable dent here, it's probably worth looking at multistage builds. The first stage could be doing what is necessary to install Miniconda. The second stage could simply reuse the Miniconda install (without anything else) and proceed from there.

from docker-images.

epruesse avatar epruesse commented on September 25, 2024

That's pretty simple actually. I'm using it for our bot here: https://github.com/bioconda/bioconda-utils/blob/master/app/Dockerfile.web

from docker-images.

epruesse avatar epruesse commented on September 25, 2024

🚀

from docker-images.

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.