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
Updated Dockerfiles to be able to build for Jetpack 6 #11321
base: dev
Are you sure you want to change the base?
Updated Dockerfiles to be able to build for Jetpack 6 #11321
Conversation
✅ Deploy Preview for frigate-docs canceled.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it should be necessary to install these packages on the main dockerfile and other scripts that are unrelated to the jetson image.
You're right, I thought that was strange as well. However, since Jetson devices use an image that is based on Ubuntu 22.04, that means they include Python 3.10 by default. Also, Python 3.9 is simply not available to install in Ubuntu 22.04. So, to recap:
Do you think we should pull out Jetpack 6.0 as a fresh Docker image built from scratch? I started out building with just a change to the |
So, if we cannot do these changes, then perhaps I must wait for the migration to Python 3.10 for Frigate before I can use it with Jetpack 6.0? |
seems likely, we would not want to be doing changes to the other docker images at this point in the release cycle |
Well, then that is a bummer. A lot of wasted work then 😅 |
in general it is a good idea to propose an idea before spending a lot of time on it, especially for a community supported detector like Jetson which is not code-owned by the maintainers of frigate itself |
Not blaming you for my wasted time at all. I have my Jetson device sitting here, upgraded, and wanted to get Frigate working on it. I'll patiently wait until Frigate gets the rest of its Docker upgraded to Python 3.10. In the meantime I'll likely just keep building this on the side so that I can at least keep running it on my machine (and for other people who also might be stuck waiting for Jetpack 6.0 support). |
Spent a good day or so trying to get the base images for Jetpack 6 to be able to be used to build Frigate. Since it now is based on Ubuntu 22, that means that it also does not have Python 3.9.
So, you have to use deadsnakes, and there are a few other packages that need to have different versions installed.
Tried to make a minimal footprint, and this definitely can get cleaned up a bit and more conditionals thrown in. Wanted to get this PR up just in case others also were curious if it was possible before we actually clean it up to merge.
Successfully built using:
Container running for the first time, generating the TensorRT file:
It appears to also be using GPU: