PyBaMM
PyBaMM copied to clipboard
Migrate from `conda` to `venv` inside Docker Images
This would potentially cut down an external system dependency conda & would reduce the inconsistency of environments across different OS for IDAKLU solver images.
Labelling it easy at the moment but since the base image would be changed as well, the complexity might reach medium as well.
It might reach medium, the newer choice of base image should be GLIBC compliant. If it's possible, we can use the checked out files from the repository to build the image instead of cloning PyBaMM inside it.
I was thinking of taking this up if you don't mind that, @arjxn-py – I have been been wanting to learn more things about Docker recently
Yes, why not. Feel free to take this up 💯
Can I take this issue if it's not being worked on by any chance?
Sure, @santacodes – I won't be able to work on this realistically anytime soon, feel free to take this up. Some guidelines are:
- We need this image for both amd64 and aarch64 platforms.
- The image needs to be compliant with the PEP599
manylinux2014platform tag, i.e., the same one as what we publish PyPI wheels for – please view the document here: https://peps.python.org/pep-0599/. This means that it should rely on a GLIBC version no later than2.17. - We should target #3666 to reduce the number of images and include one image with the
latesttag with all solvers (the currentpybamm/pybamm:latestimage includes no compiled solvers). Feel free to close both issues in one PR in order to reduce merge conflicts.