fermi-lat / Fermitools-conda

Conda recipe files for the Fermi Sciencetools software analysis package: Fermitools
https://fermi.gsfc.nasa.gov/ssc/data/analysis/
BSD 3-Clause "New" or "Revised" License
34 stars 17 forks source link

Unable to create a Docker with Fermitools #132

Open grburgess opened 2 years ago

grburgess commented 2 years ago

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!

Areustle commented 2 years ago

Have you tried the FermiBottle docker container?

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

grburgess commented 2 years ago

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.

Areustle commented 2 years ago

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.

grburgess commented 2 years ago

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.

grburgess commented 2 years ago

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.