-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[docker] upgrade to ubuntu 24.04 + use uv for package management #7401
Conversation
I successfully built from https://github.com/invoke-ai/InvokeAI.git#ebr/docker-ubuntu-2404 and the UI starts, showing the previously generated images, but the
There's no significant differences between the logs: $ diff <(sed -e 's/..:..:..,.../xx:xx:xx.xxx/g' -e 's/:[0-9][0-9][0-9][0-9][0-9] - /:port - /g' -e 's/, [0-9][0-9][0-9][0-9][0-9]/, port/' -e 's/\(sid\|t\|index\|ThemeLocaleProvider\|useTranslation\|App\)[-=][-0-9A-Za-z_]*/\1/g' in.local | ansifilter) <(sed -e 's/..:..:..,.../xx:xx:xx.xxx/g' -e 's/:[0-9][0-9][0-9][0-9][0-9] - /:port - /g' -e 's/, [0-9][0-9][0-9][0-9][0-9]/, port/' -e 's/\(sid\|t\|index\|ThemeLocaleProvider\|useTranslation\|App\)[-=][-0-9A-Za-z_]*/\1/g' in.ebr | ansifilter)
20d19
< invoke-1 | [2024-11-30 xx:xx:xx.xxx]::[uvicorn.access]::INFO --> 10.10.30.32:port - "POST /ws/socket.io/?EIO=4&transport&t&sid HTTP/1.1" 200
21a21
> invoke-1 | [2024-11-30 xx:xx:xx.xxx]::[uvicorn.access]::INFO --> 10.10.30.32:port - "POST /ws/socket.io/?EIO=4&transport&t&sid HTTP/1.1" 200
33d32
< invoke-1 | [2024-11-30 xx:xx:xx.xxx]::[uvicorn.access]::INFO --> 10.10.30.32:port - "GET /assets/App.js HTTP/1.1" 200
34a34
> invoke-1 | [2024-11-30 xx:xx:xx.xxx]::[uvicorn.access]::INFO --> 10.10.30.32:port - "GET /assets/App.js HTTP/1.1" 200
41d40
< invoke-1 | [2024-11-30 xx:xx:xx.xxx]::[uvicorn.access]::INFO --> 10.10.30.32:port - "GET /api/v2/models/i/f6f8e862-5364-47ea-9d11-bf25f04aa104 HTTP/1.1" 200
43c42
< invoke-1 | [2024-11-30 xx:xx:xx.xxx]::[uvicorn.access]::INFO --> 10.10.30.32:port - "GET /assets/inter-latin-wght.woff2 HTTP/1.1" 200
---
> invoke-1 | [2024-11-30 xx:xx:xx.xxx]::[uvicorn.access]::INFO --> 10.10.30.32:port - "GET /api/v2/models/i/f6f8e862-5364-47ea-9d11-bf25f04aa104 HTTP/1.1" 200
46a46
> invoke-1 | [2024-11-30 xx:xx:xx.xxx]::[uvicorn.access]::INFO --> 10.10.30.32:port - "GET /assets/inter-latin-wght.woff2 HTTP/1.1" 200
47a48,49
> invoke-1 | [2024-11-30 xx:xx:xx.xxx]::[uvicorn.error]::INFO --> ('10.10.30.32', port) - "WebSocket /ws/socket.io/?EIO=4&transport&sid" [accepted]
> invoke-1 | [2024-11-30 xx:xx:xx.xxx]::[uvicorn.error]::INFO --> connection open
51d52
< invoke-1 | [2024-11-30 xx:xx:xx.xxx]::[uvicorn.error]::INFO --> ('10.10.30.32', port) - "WebSocket /ws/socket.io/?EIO=4&transport&sid" [accepted]
55d55
< invoke-1 | [2024-11-30 xx:xx:xx.xxx]::[uvicorn.error]::INFO --> connection open
59d58
< invoke-1 | [2024-11-30 xx:xx:xx.xxx]::[uvicorn.access]::INFO --> 10.10.30.32:port - "GET /ws/socket.io/?EIO=4&transport&t&sid HTTP/1.1" 200 I had a quick look through the development documentation but I didn't come across a way to enable verbose logging, if such a thing exists. |
"Unable to queue" - that's unusual. Do you see any errors in your browser console/devtools? |
Only one error and it occurs for both builds.
There are several warnings but again same for both builds.
Nvidia RTX3080 |
I checked out a branch at the same point where I wrote the original patch and applied #7401 to it, |
@psychedelicious do you have any guesses as to why @rick-github might be seeing the "Unable to queue" tooltip when trying to invoke? I can't reproduce this on my end... |
The tooltip displays the reasons why it is disabled. For example, if there is no connectivity to the server, it will show All reasons are listed and vary depending on the tab. For example, if there was a connectivity issue, you are on the Workflows tab, and the graph is invalid, you'll see the What message(s) do you see @rick-github? |
It seems to be a function of the docker checkout/build. If use |
@rick-github Thanks. That problem was resolved in #7410. It's unrelated to the changes in this PR. |
…encies, since Ubuntu 24.04 comes with Python 3.12 which we do not yet support
…e not null in bash expansion
…y the user even if the source files are read-only
319cccb
to
3d5f306
Compare
Confirm that pulling and building from https://github.com/invoke-ai/InvokeAI.git#ebr/docker-ubuntu-2404 works. |
Summary
uv
, including the installation of python itself. This will both improve performance when using docker cache, and decouple python versioning from the underlying OS.Related Issues / Discussions
Closes #7387
Supercedes #7396
QA Instructions
Build and run the container locally as usual:
docker compose up --build
, and test the application.Merge Plan
Community testing might be useful, but can be merged anytime otherwise.
Checklist
What's New
copy (if doing a release after this PR)