Replies: 3 comments 4 replies
-
What are the Python packages which need to be installed from pip? In the #3463 in the Dockerfile, I can see pip installing, pip, setuptools, six, and grass-session. I don't know why any of them should be there. I suggest to do whatever it takes to remove them. |
Beta Was this translation helpful? Give feedback.
-
This would sound like a major showstopper to me. Usually I want to use an image to then do something on top. |
Beta Was this translation helpful? Give feedback.
-
Thank you all for your opinion and experiences, @bazzaar , @wenzeslaus and @neteler . After some more discussions, using virtual environments really seems to be the best solution. I still think it might be one step too much virtualisation / encapsulation, but I cannot think of any other solution. For the GRASS GIS alpine Dockerimage, I would go back to basic |
Beta Was this translation helpful? Give feedback.
-
After introduction of PEP-668 in the alpine Dockerimage,
pip
could no longer be used. See #3463 for more details.Now as this was solved by using a different alpine based base image, there are two different python versions installed - one used by the system and one by the "user" (or application). So far so good but now there is the problem that python packages installed via distro package manager can no longer be used. See also docker-library/python#909
What would be the alternatives for us? Go back to align system python and user python and not be able to use pip? Using virtual environments inside docker (please not 🙃 )? Compile everything with "user" python? (Seems overhead) Or can anyone think of a better solution?
Beta Was this translation helpful? Give feedback.
All reactions