Skip to content

fix: add micromamba clean to v2 templates to reduce image size#1038

Merged
munishchouhan merged 1 commit intomasterfrom
fix/micromamba-v2-clean-cache
Apr 27, 2026
Merged

fix: add micromamba clean to v2 templates to reduce image size#1038
munishchouhan merged 1 commit intomasterfrom
fix/micromamba-v2-clean-cache

Conversation

@munishchouhan
Copy link
Copy Markdown
Member

The conda/micromamba:v2 templates were missing micromamba clean -a -y which is present in v1. This caused cached package tarballs in /opt/conda/pkgs/ to be included in the final image, roughly doubling the image size compared to v1 and pixi templates.

The conda/micromamba:v2 templates were missing `micromamba clean -a -y`
which is present in v1. This caused cached package tarballs in
/opt/conda/pkgs/ to be included in the final image, roughly doubling
the image size compared to v1 and pixi templates.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@munishchouhan munishchouhan self-assigned this Apr 27, 2026
@munishchouhan
Copy link
Copy Markdown
Member Author

before change:

wave % V2=$(wave --wave-endpoint http://localhost:9090 --conda-package samtools=1.17 --conda-package bamtools=2.5.2 --build-template conda/micromamba:v2 --name-strategy tagPrefix)
wave % echo "v2:   $(docker image inspect $V2 --format='{{.Size}}')" 
v2:   1033016941

after change:

wave % V2=$(wave --wave-endpoint http://localhost:9090 --conda-package samtools=1.17 --conda-package bamtools=2.5.2 --build-template conda/micromamba:v2 --name-strategy tagPrefix)
ave % echo "v2:   $(docker image inspect $V2 --format='{{.Size}}')" 
v2:   181422464

@munishchouhan munishchouhan merged commit 6d57360 into master Apr 27, 2026
6 checks passed
@munishchouhan munishchouhan deleted the fix/micromamba-v2-clean-cache branch April 27, 2026 12:44
@pditommaso
Copy link
Copy Markdown
Collaborator

wow 5x smaller?!

@munishchouhan
Copy link
Copy Markdown
Member Author

wow 5x smaller?!

I think it depends upon the packages but yes there will be a significant reduction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants