Comments (8)
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.
Yeah, I am not sure how much can realistically be done about this.
from docker-images.
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.
Since we are using
conda-forge::gcc_linux-64
instead ofconda-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.
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.
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.
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.
🚀
from docker-images.
Related Issues (20)
- Add linux-anvil-cos7-x86_64-cuda HOT 1
- Update conda version to 4.8.4 HOT 1
- docker image condaforge/linux-anvil-comp7 failing with yum error
- Add mambaforge image
- move to azure HOT 4
- `/usr/local/cuda/bin` is not added to `$PATH` in `linux-anvil-ppc64le-cuda` HOT 13
- Including mamba in base images HOT 13
- ppc64le image builds failing HOT 3
- Use mamba HOT 6
- Instant segfault for linux-anvil-comp7 on WSL2 HOT 5
- centos images & user+mnt namespaces HOT 2
- Move CUDA 11.5 images to CentOS 7 HOT 1
- CUDA 11.0+ PPC & ARM builds failing HOT 6
- can we move all biz to userspace? HOT 5
- Scheduled runs haven't run in a while
- Latest anvil image installs incompatible conda and mamba versions HOT 1
- Updating QEMU HOT 5
- Drop armv7l bits
- Update qemu
- RUN conda install -n python-rest-1 -c conda-forge tiktoken not working complaining that package is not available. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-images.