This directory contains the necessary files to build an Open Data Hub-compatible container image for Llama Stack.
To learn more about the distribution image content, see the README in the distribution/ directory.
- The
pre-committool is installed
The Containerfile is auto-generated from a template. To generate it:
pre-commit run --all-files
This will:
- Install the dependencies (llama-stack etc) in a virtual environment
- Execute the build script
./distribution/build.py
The build script will:
- Execute the
llamaCLI to generate the dependencies - Create a new
Containerfilewith the required dependencies
The Containerfile is auto-generated from a template. To edit it, you can modify the template in distribution/Containerfile.in and run pre-commit again.
Warning
NEVER edit the generated Containerfile manually.
Tip
Ensure you include any env vars you might need for providers in the container env - you can read more about that here.
podman run -p 8321:8321 quay.io/opendatahub/llama-stack:<tag>Various tags are maintained for this image:
latestwill always point to the latest image that has been built off of a merge to themainbranch- You can also pull an older image built off of
mainby using the SHA of the merge commit as the tag
- You can also pull an older image built off of
rhoai-v*-latestwill always point to the latest image that has been built off of a merge to the correspondingrhoai-v*branch
You can see the source code that implements this build strategy here