mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-21 16:07:16 +00:00
# What does this PR do? relates to #2878 We introduce a Containerfile which is used to replaced the `llama stack build` command (removal in a separate PR). ``` llama stack build --distro starter --image-type venv --run ``` is replaced by ``` llama stack list-deps starter | xargs -L1 uv pip install llama stack run starter ``` - See the updated workflow files for e2e workflow. ## Test Plan CI ``` ❯ docker build . -f docker/Dockerfile --build-arg DISTRO_NAME=starter --build-arg INSTALL_MODE=editable --tag test_starter ❯ docker run -p 8321:8321 test_starter ❯ curl http://localhost:8321/v1/chat/completions \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-4o-mini", "messages": [ { "role": "user", "content": "Hello!" } ] }' ``` --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/llamastack/llama-stack/pull/3839). * #3855 * __->__ #3839
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
name: Installer CI
|
|
|
|
run-name: Test the installation script
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'scripts/install.sh'
|
|
push:
|
|
paths:
|
|
- 'scripts/install.sh'
|
|
schedule:
|
|
- cron: '0 2 * * *' # every day at 02:00 UTC
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # 5.0.0
|
|
- name: Run ShellCheck on install.sh
|
|
run: shellcheck scripts/install.sh
|
|
smoke-test-on-dev:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
|
|
- name: Install dependencies
|
|
uses: ./.github/actions/setup-runner
|
|
|
|
- name: Build a single provider
|
|
run: |
|
|
docker build . \
|
|
-f containers/Containerfile \
|
|
--build-arg INSTALL_MODE=editable \
|
|
--build-arg DISTRO_NAME=starter \
|
|
--tag llama-stack:starter-ci
|
|
|
|
- name: Run installer end-to-end
|
|
run: |
|
|
IMAGE_ID=$(docker images --format "{{.Repository}}:{{.Tag}}" | head -n 1)
|
|
./scripts/install.sh --image $IMAGE_ID
|