fermi-lat/Fermitools-conda

Unable to create a Docker with Fermitools

grburgess opened this issue · 5 comments

Hello,

I am trying to create a docker that contains fermitools. However, I keep getting a mamba solver issue. I've even tried a very basic build

FROM mambaorg/micromamba:0.25.1

RUN micromamba create --name fermipy -c conda-forge -c fermi python=3.9 "fermitools>=2.2.0" healpy gammapy

I have tried various mamba/conda base images with no success. Is it possible that these images do not have some system tools need for fermitools and I should use a different bas image?

Thanks!

Have you tried the FermiBottle docker container?

https://github.com/fermi-lat/FermiBottle

I did see this. I was wanting make a slighty slimmer container and use some dev version of 3ML (and some other software)
I will see if I can just build on top of that for now.

FermiBottle is very large; it has a lot of extra tools for doing LAT and GBM analysis beyond just the Fermitools. Your desire to build a smaller container is a reasonable one. I suspect fermipy is causing your build issue. I don't think the conda package has been kept up to date. The pip package may work in its place, and pip now works nicely with modern mamba and conda versions. You can also create a pip package of fermipy directly from the source package for your container image. That's how I built both for FermiBottle before the official packages were released.

I'll keep at it. I tried the pop version as well but it's the fermitools that's causing the issue.

I hope this is not apple silicon related, but docker is running in an emulator.

Still have had little success, but FermiBottle is actually quite well done and I can switch out the packages I need from dev branches pretty easily.