Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create a Docker with Fermitools #132

Open
grburgess opened this issue Sep 25, 2022 · 5 comments
Open

Unable to create a Docker with Fermitools #132

grburgess opened this issue Sep 25, 2022 · 5 comments

Comments

@grburgess
Copy link

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
Copy link
Member

Have you tried the FermiBottle docker container?

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

@grburgess
Copy link
Author

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
Copy link
Member

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
Copy link
Author

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
Copy link
Author

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.

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

No branches or pull requests

2 participants