-
Notifications
You must be signed in to change notification settings - Fork 15
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
Dockerfile: Add --no-user to pip install #762
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #762 +/- ##
=======================================
Coverage 68.28% 68.28%
=======================================
Files 45 45
Lines 4143 4143
=======================================
Hits 2829 2829
Misses 1314 1314
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
I think if we go with the zip and decompress solution, the time won't influenced by where it installed.
But this is true! @superstar54 can you add the change to your PR and check the image size change?
If we go with prepare a ready to use home and decompress it for user, we don't need pre-install the dependencies, true? Then I think it is better to install things as what will exactly happened as |
Hi @danielhollas , thanks for the PR.
Could you give more details on why it is? |
@superstar54 please have a look at this PR aiidalab/aiidalab-docker-stack#437 It essentially changed the pip default -- when you run |
Yeah, you don't need to, though I guess it still helps a bit since it will make home much smaller, and hence untar/decompress should be faster (and the overall image size smaller as well). |
Closed in favour of #761 |
This is an important fix for the Docker build since version v2024.1017 of the aiidalab full-stack image, which added the
--user
argument topip install
by default.@superstar54 it seems that the aiidalab_qe app dependencies were being installed in
~/.local
instead of/opt/conda
. This may have influenced your testing of your tared-home image, as it would blow up the home size.CC @unkcpz
NOTE: As an alternative to this PR you can merge #761 and use uv instead of pip which speeds up the docker build by 1 minute.