-
Notifications
You must be signed in to change notification settings - Fork 25
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
Radxa notes to run LocalAI #307
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Mauro Morales <[email protected]>
✅ Deploy Preview for kairos-io ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
||
## Create a bootable image and flash it to the Radxa X4 | ||
|
||
Follow the instructions on https://kairos.io/docs/installation/trustedboot/ to create a bootable image. |
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.
maybe we can add the full steps here for reference and make it a e2e example, wdyt? docs mutate and would be nice to give people something replicate.
We can also merge as-is and improve later, when at it I will update the article, or whoever gets at it first :)
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.
@mudler makes sense, I was hesitating between doing one and the other, I'll get back to it as soon as I'm in front of my desk
|
||
{{< alert title="Warning" color="warning" >}} | ||
- Radxa's Firmware to enable Secure Boot is still in beta. Use it at your own risk. | ||
- Without proper cooling, the Radxa X4 might overheat and shut down during the firmware update process, which could brick the device. |
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.
🤣
Create the file `images/Dockerfile.full-firmware` with the following content: | ||
|
||
```Dockerfile | ||
FROM ubuntu:24.04 |
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.
cant we use an existing image to base this off ? A simple FROM kairos whatever and then install the kernel and link it?
so basically do it the other way around, from a kairos image ADD the kernel missing stuff, instead of generating a ubuntu image to then transform it into kairos? Seems easier
## Install LocalAI | ||
|
||
1. Log into the machine with the user you created. | ||
2. Download the [LocalAI binary](https://github.com/mudler/LocalAI/releases/download/v2.22.1/local-ai-Linux-x86_64) |
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.
why not use a bundle in teh cc directly? https://github.com/kairos-io/community-bundles/tree/main/LocalAI
docker build -t ubuntu-full-firmware -f images/Dockerfile.full-firmware ./images | ||
``` | ||
|
||
Now we are going to use our newly created image and convert it to a Kairos image for Trusted Boot. |
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 would drop the trusted mention here, after all this will transform it into a generic kairos image which is valid for trusted or non-trusted workflows no?
@mudler these are the notes I have for the Radxa, please review and feel free to improve if you also work on it