Compare commits
No commits in common. "main" and "v0.6.0" have entirely different histories.
|
@ -2,7 +2,6 @@ hugginface->huggingface
|
||||||
ramalamay->ramalama
|
ramalamay->ramalama
|
||||||
ramamlama->ramalama
|
ramamlama->ramalama
|
||||||
olama->ollama
|
olama->ollama
|
||||||
lama.cpp->llama.cpp
|
|
||||||
alterting->altering
|
alterting->altering
|
||||||
annotationg->annotating
|
annotationg->annotating
|
||||||
assemlbe->assemble
|
assemlbe->assemble
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
# https://github.com/codespell-project/codespell#using-a-config-file
|
||||||
|
[codespell]
|
||||||
|
|
||||||
|
# Comma-separated list of files to skip.
|
||||||
|
skip = ./logos,./vendor,./.git #,bin,vendor,.git,go.sum,changelog.txt,.cirrus.yml,"RELEASE_NOTES.md,*.xz,*.gz,*.tar,*.tgz,bin2img,*ico,*.png,*.1,*.5,copyimg,*.orig,apidoc.go"
|
||||||
|
|
||||||
|
# Comma separated list of words to be ignored. Words must be lowercased.
|
||||||
|
ignore-words-list = clos,creat,ro,hastable,shouldnot,mountns,passt
|
||||||
|
|
||||||
|
# Custom dictionary file that contains spelling corrections.
|
||||||
|
# Run with option '--dictionary=-' to include also default dictionary.
|
||||||
|
dictionary = .codespelldict
|
||||||
|
|
||||||
|
# Check file names as well.
|
||||||
|
check-filenames = true
|
5
.flake8
5
.flake8
|
@ -1,5 +0,0 @@
|
||||||
[flake8]
|
|
||||||
max-line-length = 120
|
|
||||||
# E203,E221,E231 conflict with black formatting
|
|
||||||
extend-ignore = E203,E221,E231,E702,F824
|
|
||||||
extend-exclude = .venv,venv
|
|
|
@ -1,67 +0,0 @@
|
||||||
name: Bug Report
|
|
||||||
description: File a bug report
|
|
||||||
labels: ["bug"]
|
|
||||||
body:
|
|
||||||
- type: markdown
|
|
||||||
attributes:
|
|
||||||
value: >
|
|
||||||
#### Before submitting a bug, please make sure the issue hasn't been already addressed by searching through [the
|
|
||||||
existing and past issues](https://github.com/containers/ramalama/issues).
|
|
||||||
- type: textarea
|
|
||||||
id: description
|
|
||||||
attributes:
|
|
||||||
label: Issue Description
|
|
||||||
description: Please explain your issue
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
- type: textarea
|
|
||||||
id: reproducer
|
|
||||||
attributes:
|
|
||||||
label: Steps to reproduce the issue
|
|
||||||
description: Please explain the steps to reproduce the issue
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
- type: textarea
|
|
||||||
id: received_results
|
|
||||||
attributes:
|
|
||||||
label: Describe the results you received
|
|
||||||
description: Please explain the results you are noticing
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
- type: textarea
|
|
||||||
id: expected_results
|
|
||||||
attributes:
|
|
||||||
label: Describe the results you expected
|
|
||||||
description: Please explain the results you are expecting
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
- type: textarea
|
|
||||||
id: ramalama_info
|
|
||||||
attributes:
|
|
||||||
label: ramalama info output
|
|
||||||
description: Please copy and paste ramalama info output.
|
|
||||||
render: yaml
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
- type: dropdown
|
|
||||||
id: upstream_latest
|
|
||||||
attributes:
|
|
||||||
label: Upstream Latest Release
|
|
||||||
description: Have you tried running the [latest upstream release](https://github.com/containers/podman/releases/latest)
|
|
||||||
options:
|
|
||||||
- 'Yes'
|
|
||||||
- 'No'
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
- type: textarea
|
|
||||||
id: additional_environment
|
|
||||||
attributes:
|
|
||||||
label: Additional environment details
|
|
||||||
description: Please describe any additional environment details like (AWS, VirtualBox,...)
|
|
||||||
- type: textarea
|
|
||||||
id: additional_info
|
|
||||||
attributes:
|
|
||||||
label: Additional information
|
|
||||||
description: Please explain the additional information you deem important
|
|
||||||
validations:
|
|
||||||
required: false
|
|
|
@ -1,36 +0,0 @@
|
||||||
name: Feature Request
|
|
||||||
description: Suggest an idea for this project
|
|
||||||
labels: ["enhancement"]
|
|
||||||
body:
|
|
||||||
- type: markdown
|
|
||||||
attributes:
|
|
||||||
value: |
|
|
||||||
Thanks for taking the time to fill out this feature request!
|
|
||||||
- type: textarea
|
|
||||||
id: feature_description
|
|
||||||
attributes:
|
|
||||||
label: Feature request description
|
|
||||||
description: Please explain your feature request and if it is related to a problem
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
- type: textarea
|
|
||||||
id: potential_solution
|
|
||||||
attributes:
|
|
||||||
label: Suggest potential solution
|
|
||||||
description: Please explain if you can suggest any potential solution
|
|
||||||
validations:
|
|
||||||
required: false
|
|
||||||
- type: textarea
|
|
||||||
id: alternatives
|
|
||||||
attributes:
|
|
||||||
label: Have you considered any alternatives?
|
|
||||||
description: Please explain what alternatives you have tried.
|
|
||||||
validations:
|
|
||||||
required: false
|
|
||||||
- type: textarea
|
|
||||||
id: additional_context
|
|
||||||
attributes:
|
|
||||||
label: Additional context
|
|
||||||
description: Please add any context to this feature request
|
|
||||||
validations:
|
|
||||||
required: false
|
|
|
@ -1,16 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
os_name=$(uname)
|
|
||||||
|
|
||||||
if [[ "$os_name" == "Darwin" ]]; then
|
|
||||||
brew install ollama
|
|
||||||
brew update
|
|
||||||
brew services start ollama
|
|
||||||
elif [[ "$os_name" == "Linux" ]]; then
|
|
||||||
curl -L https://ollama.com/download/ollama-linux-amd64.tgz -o ollama-linux-amd64.tgz
|
|
||||||
sudo tar -C /usr -xzf ollama-linux-amd64.tgz
|
|
||||||
sudo useradd -r -s /bin/false -U -m -d /usr/share/ollama ollama
|
|
||||||
sudo usermod -a -G ollama $(whoami)
|
|
||||||
else
|
|
||||||
echo "Operating system is neither macOS nor Linux"
|
|
||||||
fi
|
|
|
@ -6,19 +6,16 @@ name: ci images
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- "container-images/**"
|
- "**/container-images/**"
|
||||||
- ".github/workflows/ci-images.yml"
|
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
- "container-images/**"
|
- "**/container-images/**"
|
||||||
- ".github/workflows/ci-images.yml"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
timeout-minutes: 120
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -49,17 +46,21 @@ jobs:
|
||||||
- name: Free Disk Space Linux
|
- name: Free Disk Space Linux
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
sudo mkdir -m a=rwx -p /mnt/tmp /mnt/runner
|
sudo docker rmi "$(docker image ls -aq)" >/dev/null 2>&1 || true
|
||||||
sudo mkdir -m o=rwx -p /home/runner/.local
|
|
||||||
sudo chown runner:runner /mnt/runner /home/runner/.local
|
|
||||||
sudo mount --bind /mnt/runner /home/runner/.local
|
|
||||||
sudo rm -rf \
|
sudo rm -rf \
|
||||||
/usr/share/dotnet /usr/local/lib/android /opt/ghc \
|
/usr/share/dotnet /usr/local/lib/android /opt/ghc \
|
||||||
/usr/local/share/powershell /usr/share/swift /usr/local/.ghcup \
|
/usr/local/share/powershell /usr/share/swift /usr/local/.ghcup \
|
||||||
/usr/share/dotnet /usr/lib/jvm /opt/hostedtoolcache/CodeQL \
|
/usr/lib/jvm || true
|
||||||
"$AGENT_TOOLSDIRECTORY" || true
|
|
||||||
sudo swapoff -a
|
# /mnt has ~ 65 GB free disk space. / is too small.
|
||||||
sudo rm -f /mnt/Swapfile
|
- name: Reconfigure Docker data-root
|
||||||
|
run: |
|
||||||
|
sudo mkdir -p /mnt/docker /etc/docker
|
||||||
|
echo '{"data-root": "/mnt/docker"}' > /tmp/daemon.json
|
||||||
|
sudo mv /tmp/daemon.json /etc/docker/daemon.json
|
||||||
|
cat /etc/docker/daemon.json
|
||||||
|
sudo systemctl restart docker.service
|
||||||
|
df -h
|
||||||
|
|
||||||
- name: Print disk space after cleanup
|
- name: Print disk space after cleanup
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -68,4 +69,4 @@ jobs:
|
||||||
|
|
||||||
- name: Build Images
|
- name: Build Images
|
||||||
run: |
|
run: |
|
||||||
./container_build.sh -r -c -s build
|
make build-rm
|
||||||
|
|
|
@ -10,57 +10,32 @@ jobs:
|
||||||
lint:
|
lint:
|
||||||
name: Lint Code
|
name: Lint Code
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
timeout-minutes: 20
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install the latest version of uv and activate the environment
|
|
||||||
uses: astral-sh/setup-uv@v6
|
|
||||||
with:
|
|
||||||
activate-environment: true
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y bash codespell python3-argcomplete
|
sudo apt-get install -y bash codespell python3-argcomplete pipx
|
||||||
make install-requirements
|
make install-requirements
|
||||||
|
|
||||||
- name: Run format check
|
|
||||||
run: |
|
|
||||||
make check-format
|
|
||||||
|
|
||||||
- name: Run lint
|
- name: Run lint
|
||||||
run: |
|
shell: bash
|
||||||
make lint
|
run: make lint
|
||||||
|
|
||||||
build-image:
|
bats:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
timeout-minutes: 60
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- name: install bats
|
||||||
- name: Install the latest version of uv and activate the environment
|
|
||||||
uses: astral-sh/setup-uv@v6
|
|
||||||
with:
|
|
||||||
activate-environment: true
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
df -h
|
sudo apt-get update
|
||||||
sudo apt-get update
|
sudo apt-get install podman bats bash codespell python3-argcomplete pipx
|
||||||
sudo apt-get install -y bash codespell python3-argcomplete pipx podman
|
make install-requirements
|
||||||
make install-requirements
|
|
||||||
|
|
||||||
- name: Upgrade to podman 5
|
- name: Upgrade to podman 5
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
# /mnt has ~ 65 GB free disk space. / is too small.
|
|
||||||
sudo mkdir -m a=rwx -p /mnt/tmp /mnt/runner
|
|
||||||
sudo mkdir -m o=rwx -p /home/runner/.local
|
|
||||||
sudo chown runner:runner /mnt/runner /home/runner/.local
|
|
||||||
sudo mount --bind /mnt/runner /home/runner/.local
|
|
||||||
# Enable universe repository which contains podman
|
# Enable universe repository which contains podman
|
||||||
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu oracular universe"
|
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu oracular universe"
|
||||||
# Update package lists
|
# Update package lists
|
||||||
|
@ -70,113 +45,23 @@ jobs:
|
||||||
sudo apt-get upgrade
|
sudo apt-get upgrade
|
||||||
|
|
||||||
- name: Build a container for CPU inferencing
|
- name: Build a container for CPU inferencing
|
||||||
shell: bash
|
run: ./container_build.sh build ramalama
|
||||||
run: |
|
|
||||||
./container_build.sh build -s ramalama
|
|
||||||
|
|
||||||
unit-test:
|
|
||||||
name: Unit Tests
|
|
||||||
runs-on: ubuntu-24.04
|
|
||||||
timeout-minutes: 20
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Install the latest version of uv and activate the environment
|
|
||||||
uses: astral-sh/setup-uv@v6
|
|
||||||
with:
|
|
||||||
activate-environment: true
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
df -h
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y bash codespell python3-argcomplete pipx podman
|
|
||||||
make install-requirements
|
|
||||||
|
|
||||||
- name: Upgrade to podman 5
|
|
||||||
run: |
|
|
||||||
set -e
|
|
||||||
# Enable universe repository which contains podman
|
|
||||||
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu oracular universe"
|
|
||||||
# Update package lists
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get purge firefox
|
|
||||||
# Install specific podman version
|
|
||||||
sudo apt-get upgrade
|
|
||||||
|
|
||||||
- name: Run unit tests
|
|
||||||
run: |
|
|
||||||
make unit-tests
|
|
||||||
|
|
||||||
bats:
|
|
||||||
runs-on: ubuntu-24.04
|
|
||||||
timeout-minutes: 60
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install the latest version of uv and activate the environment
|
|
||||||
uses: astral-sh/setup-uv@v6
|
|
||||||
with:
|
|
||||||
activate-environment: true
|
|
||||||
|
|
||||||
- name: install bats
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
df -h
|
|
||||||
# /mnt has ~ 65 GB free disk space. / is too small.
|
|
||||||
sudo mkdir -m a=rwx -p /mnt/tmp /mnt/runner
|
|
||||||
sudo mkdir -m o=rwx -p /home/runner/.local
|
|
||||||
sudo chown runner:runner /mnt/runner /home/runner/.local
|
|
||||||
sudo mount --bind /mnt/runner /home/runner/.local
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install podman bats bash codespell python3-argcomplete
|
|
||||||
make install-requirements
|
|
||||||
|
|
||||||
- name: install ollama
|
|
||||||
shell: bash
|
|
||||||
run: ./.github/scripts/install-ollama.sh
|
|
||||||
|
|
||||||
- name: Upgrade to podman 5
|
|
||||||
run: |
|
|
||||||
set -e
|
|
||||||
# Enable universe repository which contains podman
|
|
||||||
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu oracular universe"
|
|
||||||
# Update package lists
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get purge firefox
|
|
||||||
# Install specific podman version
|
|
||||||
sudo apt-get upgrade
|
|
||||||
|
|
||||||
- name: run bats
|
- name: run bats
|
||||||
run: |
|
run: |
|
||||||
TEMPDIR=/mnt/tmp
|
|
||||||
make validate
|
make validate
|
||||||
make bats
|
make bats
|
||||||
|
|
||||||
bats-nocontainer:
|
bats-nocontainer:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
timeout-minutes: 60
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install the latest version of uv and activate the environment
|
|
||||||
uses: astral-sh/setup-uv@v6
|
|
||||||
with:
|
|
||||||
activate-environment: true
|
|
||||||
|
|
||||||
- name: install bats
|
- name: install bats
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
df -h
|
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install podman bats bash codespell python3-argcomplete git cmake libcurl4-openssl-dev
|
sudo apt-get install podman bats bash codespell python3-argcomplete pipx
|
||||||
make install-requirements
|
make install-requirements
|
||||||
sudo ./container-images/scripts/build_llama_and_whisper.sh
|
|
||||||
sudo python -m pip install . --prefix=/usr
|
|
||||||
|
|
||||||
- name: install ollama
|
|
||||||
shell: bash
|
|
||||||
run: ./.github/scripts/install-ollama.sh
|
|
||||||
|
|
||||||
- name: Upgrade to podman 5
|
- name: Upgrade to podman 5
|
||||||
run: |
|
run: |
|
||||||
|
@ -195,26 +80,15 @@ jobs:
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
timeout-minutes: 60
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install the latest version of uv and activate the environment
|
|
||||||
uses: astral-sh/setup-uv@v6
|
|
||||||
with:
|
|
||||||
activate-environment: true
|
|
||||||
|
|
||||||
- name: install bats
|
- name: install bats
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install bats bash codespell python3-argcomplete
|
sudo apt-get install bats bash codespell python3-argcomplete pipx
|
||||||
make install-requirements
|
make install-requirements
|
||||||
|
|
||||||
- name: install ollama
|
|
||||||
shell: bash
|
|
||||||
run: ./.github/scripts/install-ollama.sh
|
|
||||||
|
|
||||||
- name: Upgrade to podman 5
|
- name: Upgrade to podman 5
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
|
@ -243,12 +117,11 @@ jobs:
|
||||||
sudo mv /tmp/daemon.json /etc/docker/daemon.json
|
sudo mv /tmp/daemon.json /etc/docker/daemon.json
|
||||||
cat /etc/docker/daemon.json
|
cat /etc/docker/daemon.json
|
||||||
sudo systemctl restart docker.service
|
sudo systemctl restart docker.service
|
||||||
sudo mkdir -m a=rwx -p /mnt/tmp /mnt/runner
|
|
||||||
sudo mkdir -m o=rwx -p /home/runner/.local
|
|
||||||
sudo chown runner:runner /mnt/runner /home/runner/.local
|
|
||||||
sudo mount --bind /mnt/runner /home/runner/.local
|
|
||||||
df -h
|
df -h
|
||||||
|
|
||||||
|
- name: Build a container for CPU inferencing
|
||||||
|
run: ./container_build.sh build ramalama
|
||||||
|
|
||||||
- name: bats-docker
|
- name: bats-docker
|
||||||
run: |
|
run: |
|
||||||
docker info
|
docker info
|
||||||
|
@ -256,35 +129,19 @@ jobs:
|
||||||
|
|
||||||
macos:
|
macos:
|
||||||
runs-on: macos-14
|
runs-on: macos-14
|
||||||
timeout-minutes: 60
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install the latest version of uv and activate the environment
|
|
||||||
uses: astral-sh/setup-uv@v6
|
|
||||||
with:
|
|
||||||
activate-environment: true
|
|
||||||
|
|
||||||
- name: install mlx-lm
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
uv pip install mlx-lm
|
|
||||||
|
|
||||||
- name: install golang
|
- name: install golang
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
brew install go bats bash jq llama.cpp shellcheck
|
brew install go bats bash jq
|
||||||
make install-requirements
|
make install-requirements
|
||||||
|
|
||||||
- name: install ollama
|
|
||||||
shell: bash
|
|
||||||
run: ./.github/scripts/install-ollama.sh
|
|
||||||
|
|
||||||
- name: Run a one-line script
|
- name: Run a one-line script
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
make install-requirements
|
make install-requirements
|
||||||
make validate
|
make validate
|
||||||
|
pipx install .
|
||||||
make bats-nocontainer
|
make bats-nocontainer
|
||||||
|
|
||||||
# FIXME: ci script should be able to run on MAC.
|
# FIXME: ci script should be able to run on MAC.
|
||||||
|
|
|
@ -12,7 +12,7 @@ jobs:
|
||||||
install_ramalama:
|
install_ramalama:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest] # Runs on Ubuntu and macOS
|
os: [ubuntu-latest, macos-latest] # Runs on Ubuntu, macOS, and Fedora
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set Up Dependencies (Ubuntu)
|
- name: Set Up Dependencies (Ubuntu)
|
||||||
timeout-minutes: 20
|
timeout-minutes: 10
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install -y lshw curl
|
sudo apt-get install -y lshw curl
|
||||||
|
@ -37,13 +37,14 @@ jobs:
|
||||||
- name: Run RamaLama Installer
|
- name: Run RamaLama Installer
|
||||||
run: |
|
run: |
|
||||||
chmod +x install.sh
|
chmod +x install.sh
|
||||||
./install.sh -l
|
sudo ./install.sh -l
|
||||||
|
|
||||||
- name: Verify RamaLama installation
|
- name: Verify RamaLama installation
|
||||||
run: |
|
run: |
|
||||||
ramalama ls | grep NAME
|
install_dir=$(sudo ./install.sh get_installation_dir)/ramalama/
|
||||||
|
ls -f -A ramalama/ | while read file; do ls -f -A $install_dir | grep $file; done
|
||||||
- name: RamaLama info
|
|
||||||
|
- name: Ramalama info
|
||||||
run: |
|
run: |
|
||||||
ramalama info
|
ramalama info
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,14 @@
|
||||||
name: latest-build
|
name: latest-build
|
||||||
on:
|
on:
|
||||||
release:
|
schedule:
|
||||||
types:
|
- cron: '0 0 * * *'
|
||||||
- published
|
workflow_dispatch:
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linux:
|
linux:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout ramalama
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Free Disk Space Linux
|
- name: Free Disk Space Linux
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
@ -54,36 +51,27 @@ jobs:
|
||||||
- name: Build a container for CPU inferencing
|
- name: Build a container for CPU inferencing
|
||||||
run: ./container_build.sh build ramalama
|
run: ./container_build.sh build ramalama
|
||||||
|
|
||||||
- name: Install end-to-end test requirements
|
- name: Run a one-line script
|
||||||
run: |
|
run: make test
|
||||||
sudo apt-get install bats
|
|
||||||
make install-requirements
|
|
||||||
|
|
||||||
- name: Run end-to-end tests
|
|
||||||
run: make end-to-end-tests
|
|
||||||
|
|
||||||
macos:
|
macos:
|
||||||
runs-on: macos-14
|
runs-on: macos-14
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout ramalama
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
- name: install golang
|
||||||
|
|
||||||
- name: Install end-to-end test requirements
|
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: brew install go
|
||||||
brew install go shellcheck bats
|
- name: Run a one-line script
|
||||||
make install-requirements
|
|
||||||
|
|
||||||
- name: Run end-to-end tests
|
|
||||||
shell: bash
|
shell: bash
|
||||||
run: make end-to-end-tests
|
run: make test
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
needs: [linux, macos]
|
needs: [linux, macos]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout ramalama
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
with:
|
||||||
|
ref: 's'
|
||||||
|
|
||||||
- name: Upgrade to podman 5
|
- name: Upgrade to podman 5
|
||||||
run: |
|
run: |
|
||||||
|
@ -124,19 +112,19 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
df -h
|
df -h
|
||||||
|
|
||||||
- name: Install qemu-user-static
|
- name: install qemu-user-static
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install qemu-user-static
|
sudo apt-get install qemu-user-static
|
||||||
|
|
||||||
- name: Login to quay
|
- name: Login to Registry
|
||||||
uses: redhat-actions/podman-login@v1.7
|
uses: redhat-actions/podman-login@v1.7
|
||||||
with:
|
with:
|
||||||
registry: quay.io
|
registry: quay.io
|
||||||
username: ${{ secrets.USERNAME }}
|
username: ${{ secrets.USERNAME }}
|
||||||
password: ${{ secrets.PASSWORD }}
|
password: ${{ secrets.PASSWORD }}
|
||||||
|
|
||||||
- name: Build images for amd64 and aarch64
|
- name: use buildah to build images for amd and aarch64
|
||||||
uses: redhat-actions/buildah-build@v2
|
uses: redhat-actions/buildah-build@v2
|
||||||
id: build_image
|
id: build_image
|
||||||
with:
|
with:
|
||||||
|
@ -146,7 +134,7 @@ jobs:
|
||||||
container-images/ramalama/Containerfile
|
container-images/ramalama/Containerfile
|
||||||
platforms: linux/amd64, linux/arm64
|
platforms: linux/amd64, linux/arm64
|
||||||
|
|
||||||
- name: Push images to quay
|
- name: push images to registry
|
||||||
uses: redhat-actions/push-to-registry@v2.8
|
uses: redhat-actions/push-to-registry@v2.8
|
||||||
with:
|
with:
|
||||||
image: ramalama/ramalama
|
image: ramalama/ramalama
|
||||||
|
|
|
@ -1,16 +1,14 @@
|
||||||
name: nightly-build
|
name: nightly-build
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * *'
|
- cron: '0 0 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linux:
|
linux:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout ramalama
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Free Disk Space Linux
|
- name: Free Disk Space Linux
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
@ -45,44 +43,30 @@ jobs:
|
||||||
- name: Docker info
|
- name: Docker info
|
||||||
run: docker info
|
run: docker info
|
||||||
|
|
||||||
- name: Print disk space after cleanup
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
df -h
|
|
||||||
|
|
||||||
- name: Build a container for CPU inferencing
|
- name: Build a container for CPU inferencing
|
||||||
run: ./container_build.sh build ramalama
|
run: ./container_build.sh build ramalama
|
||||||
|
|
||||||
- name: Install end-to-end test requirements
|
- name: Run a one-line script
|
||||||
run: |
|
run: make test
|
||||||
sudo apt-get install bats
|
|
||||||
make install-requirements
|
|
||||||
|
|
||||||
- name: Run end-to-end tests
|
|
||||||
run: make end-to-end-tests
|
|
||||||
|
|
||||||
macos:
|
macos:
|
||||||
runs-on: macos-14
|
runs-on: macos-14
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout ramalama
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
- name: install golang
|
||||||
|
|
||||||
- name: Install end-to-end test requirements
|
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: brew install go
|
||||||
brew install go shellcheck bats
|
- name: Run a one-line script
|
||||||
make install-requirements
|
|
||||||
|
|
||||||
- name: Run end-to-end tests
|
|
||||||
shell: bash
|
shell: bash
|
||||||
run: make end-to-end-tests
|
run: make test
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
needs: [linux, macos]
|
needs: [linux, macos]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout ramalama
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
with:
|
||||||
|
ref: 'main'
|
||||||
|
|
||||||
- name: Upgrade to podman 5
|
- name: Upgrade to podman 5
|
||||||
run: |
|
run: |
|
||||||
|
@ -100,14 +84,14 @@ jobs:
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install qemu-user-static
|
sudo apt-get install qemu-user-static
|
||||||
|
|
||||||
- name: Login to quay
|
- name: Login to Registry
|
||||||
uses: redhat-actions/podman-login@v1.7
|
uses: redhat-actions/podman-login@v1.7
|
||||||
with:
|
with:
|
||||||
registry: quay.io
|
registry: quay.io
|
||||||
username: ${{ secrets.USERNAME }}
|
username: ${{ secrets.USERNAME }}
|
||||||
password: ${{ secrets.PASSWORD }}
|
password: ${{ secrets.PASSWORD }}
|
||||||
|
|
||||||
- name: Build images for amd64 and arm64
|
- name: use buildah to build images for amd and aarch64
|
||||||
uses: redhat-actions/buildah-build@v2
|
uses: redhat-actions/buildah-build@v2
|
||||||
id: build_image
|
id: build_image
|
||||||
with:
|
with:
|
||||||
|
@ -117,7 +101,7 @@ jobs:
|
||||||
container-images/ramalama/Containerfile
|
container-images/ramalama/Containerfile
|
||||||
platforms: linux/amd64, linux/arm64
|
platforms: linux/amd64, linux/arm64
|
||||||
|
|
||||||
- name: Push images to quay
|
- name: push images to registry
|
||||||
uses: redhat-actions/push-to-registry@v2.8
|
uses: redhat-actions/push-to-registry@v2.8
|
||||||
with:
|
with:
|
||||||
image: ramalama/ramalama
|
image: ramalama/ramalama
|
||||||
|
|
|
@ -10,14 +10,6 @@ ramalama/*.patch
|
||||||
dist
|
dist
|
||||||
.#*
|
.#*
|
||||||
venv/
|
venv/
|
||||||
/*.container
|
*.container
|
||||||
/*.image
|
*.image
|
||||||
/*.volume
|
*.volume
|
||||||
__pycache__/
|
|
||||||
.aider*
|
|
||||||
.coverage
|
|
||||||
coverage.*
|
|
||||||
htmlcov/
|
|
||||||
.idea/
|
|
||||||
.hypothesis/
|
|
||||||
uv.lock
|
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# This script handles any custom processing of the spec file using the `fix-spec-file`
|
|
||||||
# action in .packit.yaml. These steps only work on copr builds, not on official
|
|
||||||
# Fedora builds.
|
|
||||||
|
|
||||||
set -exo pipefail
|
|
||||||
|
|
||||||
# Extract version from pyproject.toml instead of setup.py
|
|
||||||
VERSION=$(awk -F'[""]' ' /^\s*version\s*/ {print $(NF-1)}' pyproject.toml )
|
|
||||||
|
|
||||||
SPEC_FILE=rpm/ramalama.spec
|
|
||||||
|
|
||||||
# RPM Spec modifications
|
|
||||||
|
|
||||||
# Use the Version from HEAD in rpm spec
|
|
||||||
sed -i "s/^Version:.*/Version: $VERSION/" "$SPEC_FILE"
|
|
||||||
|
|
||||||
# Use Packit's supplied variable in the Release field in rpm spec.
|
|
||||||
sed -i "s/^Release:.*/Release: 1000.$PACKIT_RPMSPEC_RELEASE%{?dist}/" "$SPEC_FILE"
|
|
33
.packit.yaml
33
.packit.yaml
|
@ -7,18 +7,15 @@ upstream_tag_template: v{version}
|
||||||
packages:
|
packages:
|
||||||
ramalama-fedora:
|
ramalama-fedora:
|
||||||
pkg_tool: fedpkg
|
pkg_tool: fedpkg
|
||||||
downstream_package_name: ramalama
|
downstream_package_name: python-ramalama
|
||||||
specfile_path: rpm/ramalama.spec
|
specfile_path: rpm/python-ramalama.spec
|
||||||
ramalama-centos:
|
ramalama-centos:
|
||||||
downstream_package_name: ramalama
|
downstream_package_name: python-ramalama
|
||||||
specfile_path: rpm/ramalama.spec
|
specfile_path: rpm/python-ramalama.spec
|
||||||
|
|
||||||
srpm_build_deps:
|
srpm_build_deps:
|
||||||
- make
|
- make
|
||||||
|
|
||||||
actions:
|
|
||||||
fix-spec-file: "bash .packit-copr-rpm.sh"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Copr builds for Fedora
|
# Copr builds for Fedora
|
||||||
- job: copr_build
|
- job: copr_build
|
||||||
|
@ -26,7 +23,8 @@ jobs:
|
||||||
packages: [ramalama-fedora]
|
packages: [ramalama-fedora]
|
||||||
enable_net: true
|
enable_net: true
|
||||||
targets: &fedora_copr_targets
|
targets: &fedora_copr_targets
|
||||||
- fedora-all
|
- fedora-development
|
||||||
|
- fedora-latest-stable
|
||||||
osh_diff_scan_after_copr_build: false
|
osh_diff_scan_after_copr_build: false
|
||||||
|
|
||||||
# Copr builds for CentOS Stream
|
# Copr builds for CentOS Stream
|
||||||
|
@ -51,27 +49,12 @@ jobs:
|
||||||
trigger: pull_request
|
trigger: pull_request
|
||||||
packages: [ramalama-fedora]
|
packages: [ramalama-fedora]
|
||||||
targets: *fedora_copr_targets
|
targets: *fedora_copr_targets
|
||||||
tmt_plan: "/plans/rpm"
|
|
||||||
identifier: "rpm-fedora"
|
|
||||||
|
|
||||||
- job: tests
|
|
||||||
trigger: pull_request
|
|
||||||
skip_build: true
|
|
||||||
packages: [ramalama-fedora]
|
|
||||||
targets:
|
|
||||||
# FIXME: Validate test breaks on Fedora 41
|
|
||||||
- fedora-development
|
|
||||||
- fedora-latest-stable
|
|
||||||
tmt_plan: "/plans/no-rpm"
|
|
||||||
identifier: "no-rpm-fedora"
|
|
||||||
|
|
||||||
# Tests for CentOS Stream
|
# Tests for CentOS Stream
|
||||||
- job: tests
|
- job: tests
|
||||||
trigger: pull_request
|
trigger: pull_request
|
||||||
packages: [ramalama-centos]
|
packages: [ramalama-centos]
|
||||||
targets: *centos_copr_targets
|
targets: *centos_copr_targets
|
||||||
tmt_plan: "/plans/rpm"
|
|
||||||
identifier: "rpm-centos"
|
|
||||||
|
|
||||||
- job: propose_downstream
|
- job: propose_downstream
|
||||||
trigger: release
|
trigger: release
|
||||||
|
@ -79,7 +62,7 @@ jobs:
|
||||||
dist_git_branches: &fedora_targets
|
dist_git_branches: &fedora_targets
|
||||||
- fedora-all
|
- fedora-all
|
||||||
- epel10
|
- epel10
|
||||||
- epel10.0
|
- epel9
|
||||||
|
|
||||||
- job: koji_build
|
- job: koji_build
|
||||||
trigger: commit
|
trigger: commit
|
||||||
|
@ -92,4 +75,4 @@ jobs:
|
||||||
dist_git_branches:
|
dist_git_branches:
|
||||||
- fedora-branched # rawhide updates are created automatically
|
- fedora-branched # rawhide updates are created automatically
|
||||||
- epel10
|
- epel10
|
||||||
- epel10.0
|
- epel9
|
||||||
|
|
|
@ -1,37 +0,0 @@
|
||||||
repos:
|
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
||||||
rev: v5.0.0
|
|
||||||
hooks:
|
|
||||||
- id: trailing-whitespace
|
|
||||||
- id: end-of-file-fixer
|
|
||||||
- id: check-yaml
|
|
||||||
- id: check-json
|
|
||||||
- id: check-toml
|
|
||||||
- id: check-added-large-files
|
|
||||||
- id: check-merge-conflict
|
|
||||||
- id: check-executables-have-shebangs
|
|
||||||
- id: check-shebang-scripts-are-executable
|
|
||||||
- repo: https://github.com/pycqa/flake8
|
|
||||||
rev: 7.3.0
|
|
||||||
hooks:
|
|
||||||
- id: flake8
|
|
||||||
- repo: https://github.com/codespell-project/codespell
|
|
||||||
rev: v2.4.1
|
|
||||||
hooks:
|
|
||||||
- id: codespell
|
|
||||||
args: ["-w"]
|
|
||||||
- repo: https://github.com/psf/black
|
|
||||||
rev: 25.1.0
|
|
||||||
hooks:
|
|
||||||
- id: black
|
|
||||||
- repo: https://github.com/pycqa/isort
|
|
||||||
rev: 6.0.1
|
|
||||||
hooks:
|
|
||||||
- id: isort
|
|
||||||
- repo: local
|
|
||||||
hooks:
|
|
||||||
- id: run-unit-tests
|
|
||||||
name: run unit tests
|
|
||||||
entry: make unit-tests
|
|
||||||
language: system
|
|
||||||
pass_filenames: false
|
|
|
@ -1,48 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: asahi-llama-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: asahi-llama-server-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/asahi-llama-server:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- linux-m2xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/asahi:on-pr-{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/asahi:on-pr-{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/llama-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,45 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: asahi-llama-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: asahi-llama-server-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/asahi-llama-server:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- linux-m2xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/asahi:{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/asahi:{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/llama-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,48 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: asahi-rag
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: asahi-rag-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/asahi-rag:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-d160-m2xlarge/amd64
|
|
||||||
- linux-d160-m2xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.rag
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/asahi:on-pr-{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/asahi:on-pr-{{revision}}
|
|
||||||
- GPU=cpu
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,45 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: asahi-rag
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: asahi-rag-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/asahi-rag:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-d160-m2xlarge/amd64
|
|
||||||
- linux-d160-m2xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.rag
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/asahi:{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/asahi:{{revision}}
|
|
||||||
- GPU=cpu
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,48 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: asahi-whisper-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: asahi-whisper-server-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/asahi-whisper-server:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- linux-m2xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/asahi:on-pr-{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/asahi:on-pr-{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/whisper-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,45 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: asahi-whisper-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: asahi-whisper-server-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/asahi-whisper-server:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- linux-m2xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/asahi:{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/asahi:{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/whisper-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,42 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: asahi
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: asahi-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/asahi:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-c4xlarge/amd64
|
|
||||||
- linux-c4xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/asahi/Containerfile
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,39 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: asahi
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: asahi-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/asahi:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-c4xlarge/amd64
|
|
||||||
- linux-c4xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/asahi/Containerfile
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,42 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: bats
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: bats-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/bats:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-c4xlarge/amd64
|
|
||||||
- linux-c4xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/bats/Containerfile
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,39 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: bats
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: bats-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/bats:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-c4xlarge/amd64
|
|
||||||
- linux-c4xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/bats/Containerfile
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,48 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: cann-llama-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: cann-llama-server-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/cann-llama-server:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- linux-m2xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/cann:on-pr-{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/cann:on-pr-{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/llama-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,45 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: cann-llama-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: cann-llama-server-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/cann-llama-server:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- linux-m2xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/cann:{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/cann:{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/llama-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,48 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: cann-rag
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: cann-rag-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/cann-rag:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-d160-m2xlarge/amd64
|
|
||||||
- linux-d160-m2xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.rag
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/cann:on-pr-{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/cann:on-pr-{{revision}}
|
|
||||||
- GPU=cpu
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,45 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: cann-rag
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: cann-rag-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/cann-rag:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-d160-m2xlarge/amd64
|
|
||||||
- linux-d160-m2xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.rag
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/cann:{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/cann:{{revision}}
|
|
||||||
- GPU=cpu
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,48 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: cann-whisper-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: cann-whisper-server-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/cann-whisper-server:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- linux-m2xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/cann:on-pr-{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/cann:on-pr-{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/whisper-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,45 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: cann-whisper-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: cann-whisper-server-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/cann-whisper-server:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- linux-m2xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/cann:{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/cann:{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/whisper-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,42 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: cann
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: cann-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/cann:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-c4xlarge/amd64
|
|
||||||
- linux-c4xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/cann/Containerfile
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,39 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: cann
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: cann-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/cann:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-c4xlarge/amd64
|
|
||||||
- linux-c4xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/cann/Containerfile
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,48 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: cuda-llama-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: cuda-llama-server-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/cuda-llama-server:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- linux-m2xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/cuda:on-pr-{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/cuda:on-pr-{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/llama-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,45 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: cuda-llama-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: cuda-llama-server-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/cuda-llama-server:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- linux-m2xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/cuda:{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/cuda:{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/llama-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,48 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: cuda-rag
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: cuda-rag-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/cuda-rag:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-d160-m2xlarge/amd64
|
|
||||||
- linux-d160-m2xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.rag
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/cuda:on-pr-{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/cuda:on-pr-{{revision}}
|
|
||||||
- GPU=cuda
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,45 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: cuda-rag
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: cuda-rag-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/cuda-rag:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-d160-m2xlarge/amd64
|
|
||||||
- linux-d160-m2xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.rag
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/cuda:{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/cuda:{{revision}}
|
|
||||||
- GPU=cuda
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,48 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: cuda-whisper-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: cuda-whisper-server-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/cuda-whisper-server:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- linux-m2xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/cuda:on-pr-{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/cuda:on-pr-{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/whisper-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,45 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: cuda-whisper-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: cuda-whisper-server-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/cuda-whisper-server:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- linux-m2xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/cuda:{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/cuda:{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/whisper-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,42 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: cuda
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: cuda-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/cuda:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-c4xlarge/amd64
|
|
||||||
- linux-c4xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/cuda/Containerfile
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,39 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: cuda
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: cuda-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/cuda:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-c4xlarge/amd64
|
|
||||||
- linux-c4xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/cuda/Containerfile
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,66 +0,0 @@
|
||||||
kind: Pipeline
|
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
metadata:
|
|
||||||
name: bats-integration
|
|
||||||
spec:
|
|
||||||
description: |
|
|
||||||
Test the newly-built ramalama image and layered images on all supported architectures.
|
|
||||||
params:
|
|
||||||
- name: SNAPSHOT
|
|
||||||
description: >-
|
|
||||||
Information about the components included in the current snapshot under test.
|
|
||||||
- name: platforms
|
|
||||||
description: VM platforms on which to run test commands
|
|
||||||
type: array
|
|
||||||
default:
|
|
||||||
- linux-c4xlarge/amd64
|
|
||||||
- linux-c4xlarge/arm64
|
|
||||||
- name: commands
|
|
||||||
description: Test commands to run
|
|
||||||
type: array
|
|
||||||
default:
|
|
||||||
- make bats
|
|
||||||
- name: git-url
|
|
||||||
description: URL of the Git repository containing pipeline and task definitions
|
|
||||||
default: https://github.com/containers/ramalama.git
|
|
||||||
- name: git-revision
|
|
||||||
description: Revision of the Git repository containing pipeline and task definitions
|
|
||||||
default: main
|
|
||||||
tasks:
|
|
||||||
- name: init
|
|
||||||
params:
|
|
||||||
- name: SNAPSHOT
|
|
||||||
value: $(params.SNAPSHOT)
|
|
||||||
taskRef:
|
|
||||||
resolver: git
|
|
||||||
params:
|
|
||||||
- name: url
|
|
||||||
value: $(params.git-url)
|
|
||||||
- name: revision
|
|
||||||
value: $(params.git-revision)
|
|
||||||
- name: pathInRepo
|
|
||||||
value: .tekton/integration/tasks/init-snapshot.yaml
|
|
||||||
- name: test
|
|
||||||
matrix:
|
|
||||||
params:
|
|
||||||
- name: PLATFORM
|
|
||||||
value:
|
|
||||||
- $(params.platforms)
|
|
||||||
- name: cmd
|
|
||||||
value:
|
|
||||||
- $(params.commands)
|
|
||||||
params:
|
|
||||||
- name: image
|
|
||||||
value: $(tasks.init.results.bats-image)
|
|
||||||
- name: envs
|
|
||||||
value:
|
|
||||||
- RAMALAMA_IMAGE=$(tasks.init.results.ramalama-image)
|
|
||||||
taskRef:
|
|
||||||
resolver: git
|
|
||||||
params:
|
|
||||||
- name: url
|
|
||||||
value: $(params.git-url)
|
|
||||||
- name: revision
|
|
||||||
value: $(params.git-revision)
|
|
||||||
- name: pathInRepo
|
|
||||||
value: .tekton/integration/tasks/test-vm-cmd.yaml
|
|
|
@ -1,55 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: Task
|
|
||||||
metadata:
|
|
||||||
name: init-snapshot
|
|
||||||
spec:
|
|
||||||
description: Extract information from the SNAPSHOT and make it available as Tekton results
|
|
||||||
params:
|
|
||||||
- name: SNAPSHOT
|
|
||||||
description: >-
|
|
||||||
Information about the components included in the current snapshot under test.
|
|
||||||
results:
|
|
||||||
- name: event-type
|
|
||||||
description: The type of event that triggered the pipeline
|
|
||||||
- name: bats-image
|
|
||||||
description: URI of the bats image included in the snapshot
|
|
||||||
- name: ramalama-image
|
|
||||||
description: URI of the ramalama image included in the snapshot
|
|
||||||
- name: TEST_OUTPUT
|
|
||||||
description: Test result in json format
|
|
||||||
steps:
|
|
||||||
- name: process
|
|
||||||
image: registry.access.redhat.com/ubi10/ubi:latest
|
|
||||||
env:
|
|
||||||
- name: SNAPSHOT
|
|
||||||
value: $(params.SNAPSHOT)
|
|
||||||
- name: EVENT_TYPE
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
fieldPath: metadata.labels['pac.test.appstudio.openshift.io/event-type']
|
|
||||||
- name: RESULTS_EVENT_TYPE_PATH
|
|
||||||
value: $(results.event-type.path)
|
|
||||||
- name: RESULTS_BATS_IMAGE_PATH
|
|
||||||
value: $(results.bats-image.path)
|
|
||||||
- name: RESULTS_RAMALAMA_IMAGE_PATH
|
|
||||||
value: $(results.ramalama-image.path)
|
|
||||||
- name: RESULTS_TEST_OUTPUT_PATH
|
|
||||||
value: $(results.TEST_OUTPUT.path)
|
|
||||||
script: |
|
|
||||||
#!/bin/bash -ex
|
|
||||||
dnf -y install jq
|
|
||||||
echo -n "$EVENT_TYPE" | tee "$RESULTS_EVENT_TYPE_PATH"
|
|
||||||
echo
|
|
||||||
component_image() {
|
|
||||||
TAGSEP=":"
|
|
||||||
if [ "$EVENT_TYPE" == "pull_request" ]; then
|
|
||||||
TAGSEP+="on-pr-"
|
|
||||||
fi
|
|
||||||
jq -j --arg name "$1" --arg tagsep "$TAGSEP" '.components[] | select(.name == $name) | [(.containerImage | split("@")[0]), .source.git.revision] | join($tagsep)' <<< "$SNAPSHOT"
|
|
||||||
}
|
|
||||||
component_image bats | tee "$RESULTS_BATS_IMAGE_PATH"
|
|
||||||
echo
|
|
||||||
component_image ramalama | tee "$RESULTS_RAMALAMA_IMAGE_PATH"
|
|
||||||
echo
|
|
||||||
jq -jnc '{result: "SUCCESS", timestamp: now | todateiso8601, failures: 0, successes: 1, warnings: 0}' | tee "$RESULTS_TEST_OUTPUT_PATH"
|
|
||||||
echo
|
|
|
@ -1,118 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: Task
|
|
||||||
metadata:
|
|
||||||
name: test-vm-cmd
|
|
||||||
spec:
|
|
||||||
description: Run a command in a test VM
|
|
||||||
params:
|
|
||||||
- name: PLATFORM
|
|
||||||
description: The platform of the VM to provision
|
|
||||||
- name: image
|
|
||||||
description: The image to use when setting up the test environment
|
|
||||||
- name: cmd
|
|
||||||
description: The command to run
|
|
||||||
- name: envs
|
|
||||||
description: List of environment variables (NAME=VALUE) to be set in the test environment
|
|
||||||
type: array
|
|
||||||
default: []
|
|
||||||
results:
|
|
||||||
- name: TEST_OUTPUT
|
|
||||||
description: Test result in json format
|
|
||||||
volumes:
|
|
||||||
- name: workdir
|
|
||||||
emptyDir: {}
|
|
||||||
- name: ssh
|
|
||||||
secret:
|
|
||||||
secretName: multi-platform-ssh-$(context.taskRun.name)
|
|
||||||
steps:
|
|
||||||
- name: run-in-vm
|
|
||||||
image: registry.access.redhat.com/ubi10/ubi:latest
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /var/workdir
|
|
||||||
name: workdir
|
|
||||||
- mountPath: /ssh
|
|
||||||
name: ssh
|
|
||||||
workingDir: /var/workdir
|
|
||||||
env:
|
|
||||||
- name: TEST_IMAGE
|
|
||||||
value: $(params.image)
|
|
||||||
- name: TEST_CMD
|
|
||||||
value: $(params.cmd)
|
|
||||||
- name: RESULTS_TEST_OUTPUT_PATH
|
|
||||||
value: $(results.TEST_OUTPUT.path)
|
|
||||||
args:
|
|
||||||
- $(params.envs[*])
|
|
||||||
script: |
|
|
||||||
#!/bin/bash -ex
|
|
||||||
log() {
|
|
||||||
echo "[$(date -uIns)]" $*
|
|
||||||
}
|
|
||||||
|
|
||||||
log Install packages
|
|
||||||
dnf -y install openssh-clients rsync jq
|
|
||||||
|
|
||||||
log Prepare connection
|
|
||||||
|
|
||||||
if [ -e "/ssh/error" ]; then
|
|
||||||
log Error provisioning VM
|
|
||||||
cat /ssh/error
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
export SSH_HOST=$(cat /ssh/host)
|
|
||||||
|
|
||||||
mkdir -p ~/.ssh
|
|
||||||
if [ "$SSH_HOST" == "localhost" ] ; then
|
|
||||||
IS_LOCALHOST=true
|
|
||||||
log Localhost detected, running build in cluster
|
|
||||||
elif [ -s "/ssh/otp" ]; then
|
|
||||||
log Fetching OTP token
|
|
||||||
curl --cacert /ssh/otp-ca -d @/ssh/otp $(cat /ssh/otp-server) > ~/.ssh/id_rsa
|
|
||||||
echo >> ~/.ssh/id_rsa
|
|
||||||
chmod 0400 ~/.ssh/id_rsa
|
|
||||||
elif [ -s "/ssh/id_rsa" ]; then
|
|
||||||
log Copying ssh key
|
|
||||||
cp /ssh/id_rsa ~/.ssh
|
|
||||||
chmod 0400 ~/.ssh/id_rsa
|
|
||||||
else
|
|
||||||
log No authentication mechanism found
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir -p scripts
|
|
||||||
|
|
||||||
PODMAN_ENV=()
|
|
||||||
while [ $# -ne 0 ]; do
|
|
||||||
PODMAN_ENV+=("-e" "$1")
|
|
||||||
shift
|
|
||||||
done
|
|
||||||
|
|
||||||
cat > scripts/test.sh <<SCRIPTEOF
|
|
||||||
#!/bin/bash -ex
|
|
||||||
podman run \
|
|
||||||
--userns=keep-id \
|
|
||||||
--security-opt label=disable \
|
|
||||||
--security-opt unmask=/proc/* \
|
|
||||||
--device /dev/net/tun \
|
|
||||||
--device /dev/fuse \
|
|
||||||
${PODMAN_ENV[*]} \
|
|
||||||
$TEST_IMAGE $TEST_CMD
|
|
||||||
SCRIPTEOF
|
|
||||||
chmod +x scripts/test.sh
|
|
||||||
|
|
||||||
if ! [[ $IS_LOCALHOST ]]; then
|
|
||||||
log VM exec
|
|
||||||
export BUILD_DIR=$(cat /ssh/user-dir)
|
|
||||||
export SSH_ARGS="-o StrictHostKeyChecking=no -o ServerAliveInterval=60 -o ServerAliveCountMax=10"
|
|
||||||
# ssh once before rsync to retrieve the host key
|
|
||||||
ssh $SSH_ARGS "$SSH_HOST" "uname -a"
|
|
||||||
rsync -ra scripts "$SSH_HOST:$BUILD_DIR"
|
|
||||||
ssh $SSH_ARGS "$SSH_HOST" "$BUILD_DIR/scripts/test.sh"
|
|
||||||
log End VM exec
|
|
||||||
else
|
|
||||||
log Local exec
|
|
||||||
scripts/test.sh
|
|
||||||
log End local exec
|
|
||||||
fi
|
|
||||||
|
|
||||||
jq -jnc '{result: "SUCCESS", timestamp: now | todateiso8601, failures: 0, successes: 1, warnings: 0}' | tee "$RESULTS_TEST_OUTPUT_PATH"
|
|
||||||
echo
|
|
|
@ -1,47 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: intel-gpu-llama-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: intel-gpu-llama-server-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/intel-gpu-llama-server:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/intel-gpu:on-pr-{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/intel-gpu:on-pr-{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/llama-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,44 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: intel-gpu-llama-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: intel-gpu-llama-server-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/intel-gpu-llama-server:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/intel-gpu:{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/intel-gpu:{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/llama-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,47 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: intel-gpu-rag
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: intel-gpu-rag-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/intel-gpu-rag:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-d160-m2xlarge/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.rag
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/intel-gpu:on-pr-{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/intel-gpu:on-pr-{{revision}}
|
|
||||||
- GPU=cpu
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,44 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: intel-gpu-rag
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: intel-gpu-rag-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/intel-gpu-rag:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-d160-m2xlarge/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.rag
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/intel-gpu:{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/intel-gpu:{{revision}}
|
|
||||||
- GPU=cpu
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,47 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: intel-gpu-whisper-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: intel-gpu-whisper-server-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/intel-gpu-whisper-server:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/intel-gpu:on-pr-{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/intel-gpu:on-pr-{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/whisper-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,44 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: intel-gpu-whisper-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: intel-gpu-whisper-server-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/intel-gpu-whisper-server:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/intel-gpu:{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/intel-gpu:{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/whisper-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,41 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: intel-gpu
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: intel-gpu-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/intel-gpu:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-c4xlarge/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/intel-gpu/Containerfile
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,38 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: intel-gpu
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: intel-gpu-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/intel-gpu:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-c4xlarge/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/intel-gpu/Containerfile
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,42 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: llama-stack
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: llama-stack-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/llama-stack:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-c4xlarge/amd64
|
|
||||||
- linux-c4xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/llama-stack/Containerfile
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,39 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: llama-stack
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: llama-stack-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/llama-stack:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-c4xlarge/amd64
|
|
||||||
- linux-c4xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/llama-stack/Containerfile
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,47 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: musa-llama-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: musa-llama-server-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/musa-llama-server:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/musa:on-pr-{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/musa:on-pr-{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/llama-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,44 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: musa-llama-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: musa-llama-server-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/musa-llama-server:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/musa:{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/musa:{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/llama-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,47 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: musa-rag
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: musa-rag-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/musa-rag:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-d160-m2xlarge/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.rag
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/musa:on-pr-{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/musa:on-pr-{{revision}}
|
|
||||||
- GPU=musa
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,44 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: musa-rag
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: musa-rag-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/musa-rag:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-d160-m2xlarge/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.rag
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/musa:{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/musa:{{revision}}
|
|
||||||
- GPU=musa
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,47 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: musa-whisper-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: musa-whisper-server-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/musa-whisper-server:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/musa:on-pr-{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/musa:on-pr-{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/whisper-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,44 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: musa-whisper-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: musa-whisper-server-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/musa-whisper-server:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/musa:{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/musa:{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/whisper-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,41 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: musa
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: musa-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/musa:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-c4xlarge/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/musa/Containerfile
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,38 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: musa
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: musa-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/musa:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-c4xlarge/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/musa/Containerfile
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,41 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: openvino
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: openvino-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/openvino:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-c4xlarge/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/openvino/Containerfile
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,38 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: openvino
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: openvino-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/openvino:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-c4xlarge/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/openvino/Containerfile
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,640 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: Pipeline
|
|
||||||
metadata:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
spec:
|
|
||||||
description: |
|
|
||||||
Pipeline for building RamaLama images when PRs are submitted.
|
|
||||||
Based on the [docker-build-multi-platform-oci-ta](https://github.com/konflux-ci/build-definitions/tree/main/pipelines/docker-build-multi-platform-oci-ta) pipeline from [Konflux](https://konflux-ci.dev/).
|
|
||||||
params:
|
|
||||||
- description: Source Repository URL
|
|
||||||
name: git-url
|
|
||||||
type: string
|
|
||||||
- default: ""
|
|
||||||
description: Revision of the Source Repository
|
|
||||||
name: revision
|
|
||||||
type: string
|
|
||||||
- description: Fully Qualified Output Image
|
|
||||||
name: output-image
|
|
||||||
type: string
|
|
||||||
- default: .
|
|
||||||
description: Path to the source code of an application's component from where to build image.
|
|
||||||
name: path-context
|
|
||||||
type: string
|
|
||||||
- default: Dockerfile
|
|
||||||
description: Path to the Dockerfile inside the context specified by parameter path-context
|
|
||||||
name: dockerfile
|
|
||||||
type: string
|
|
||||||
- default: "false"
|
|
||||||
description: Force rebuild image
|
|
||||||
name: rebuild
|
|
||||||
type: string
|
|
||||||
- default: "true"
|
|
||||||
description: Skip checks against built image
|
|
||||||
name: skip-checks
|
|
||||||
type: string
|
|
||||||
- default: "false"
|
|
||||||
description: Execute the build with network isolation
|
|
||||||
name: hermetic
|
|
||||||
type: string
|
|
||||||
- default: ""
|
|
||||||
description: Build dependencies to be prefetched by Cachi2
|
|
||||||
name: prefetch-input
|
|
||||||
type: string
|
|
||||||
- default: ""
|
|
||||||
description: Image tag expiration time, time values could be something like 1h, 2d, 3w for hours, days, and weeks, respectively.
|
|
||||||
name: image-expires-after
|
|
||||||
- default: "false"
|
|
||||||
description: Build a source image.
|
|
||||||
name: build-source-image
|
|
||||||
type: string
|
|
||||||
- default: "true"
|
|
||||||
description: Add built image into an OCI image index
|
|
||||||
name: build-image-index
|
|
||||||
type: string
|
|
||||||
- default: []
|
|
||||||
description: Array of --build-arg values ("arg=value" strings) for buildah
|
|
||||||
name: build-args
|
|
||||||
type: array
|
|
||||||
- default: ""
|
|
||||||
description: Path to a file with build arguments for buildah, see https://www.mankier.com/1/buildah-build#--build-arg-file
|
|
||||||
name: build-args-file
|
|
||||||
type: string
|
|
||||||
- default: "false"
|
|
||||||
description: Whether to enable privileged mode, should be used only with remote VMs
|
|
||||||
name: privileged-nested
|
|
||||||
type: string
|
|
||||||
- default:
|
|
||||||
- linux-c4xlarge/amd64
|
|
||||||
description: List of platforms to build the container images on. The available set of values is determined by the configuration of the multi-platform-controller.
|
|
||||||
name: build-platforms
|
|
||||||
type: array
|
|
||||||
- default: ""
|
|
||||||
description: The parent image of the image being built.
|
|
||||||
name: parent-image
|
|
||||||
- default: ""
|
|
||||||
description: The image to use for running tests.
|
|
||||||
name: test-image
|
|
||||||
- default: []
|
|
||||||
description: List of environment variables (NAME=VALUE) to be set in the test environment.
|
|
||||||
name: test-envs
|
|
||||||
type: array
|
|
||||||
- default:
|
|
||||||
- echo "No tests defined"
|
|
||||||
description: List of test commands to run after the image is built.
|
|
||||||
name: test-commands
|
|
||||||
type: array
|
|
||||||
results:
|
|
||||||
- description: ""
|
|
||||||
name: IMAGE_URL
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_URL)
|
|
||||||
- description: ""
|
|
||||||
name: IMAGE_DIGEST
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
|
|
||||||
- description: ""
|
|
||||||
name: CHAINS-GIT_URL
|
|
||||||
value: $(tasks.clone-repository.results.url)
|
|
||||||
- description: ""
|
|
||||||
name: CHAINS-GIT_COMMIT
|
|
||||||
value: $(tasks.clone-repository.results.commit)
|
|
||||||
tasks:
|
|
||||||
- name: init
|
|
||||||
params:
|
|
||||||
- name: image-url
|
|
||||||
value: $(params.output-image)
|
|
||||||
- name: rebuild
|
|
||||||
value: $(params.rebuild)
|
|
||||||
- name: skip-checks
|
|
||||||
value: $(params.skip-checks)
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: init
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-init:0.2@sha256:1d8221c84f91b923d89de50bf16481ea729e3b68ea04a9a7cbe8485ddbb27ee6
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
- name: clone-repository
|
|
||||||
params:
|
|
||||||
- name: url
|
|
||||||
value: $(params.git-url)
|
|
||||||
- name: revision
|
|
||||||
value: $(params.revision)
|
|
||||||
- name: ociStorage
|
|
||||||
value: $(params.output-image).git
|
|
||||||
- name: ociArtifactExpiresAfter
|
|
||||||
value: $(params.image-expires-after)
|
|
||||||
runAfter:
|
|
||||||
- init
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: git-clone-oci-ta
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-git-clone-oci-ta:0.1@sha256:d35e5d501cb5f5f88369511f76249857cb5ac30250e1dcf086939321964ff6b9
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
when:
|
|
||||||
- input: $(tasks.init.results.build)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- "true"
|
|
||||||
workspaces:
|
|
||||||
- name: basic-auth
|
|
||||||
workspace: git-auth
|
|
||||||
- name: prefetch-dependencies
|
|
||||||
params:
|
|
||||||
- name: input
|
|
||||||
value: $(params.prefetch-input)
|
|
||||||
- name: SOURCE_ARTIFACT
|
|
||||||
value: $(tasks.clone-repository.results.SOURCE_ARTIFACT)
|
|
||||||
- name: ociStorage
|
|
||||||
value: $(params.output-image).prefetch
|
|
||||||
- name: ociArtifactExpiresAfter
|
|
||||||
value: $(params.image-expires-after)
|
|
||||||
runAfter:
|
|
||||||
- clone-repository
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: prefetch-dependencies-oci-ta
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-prefetch-dependencies-oci-ta:0.2@sha256:092491ac0f6e1009d10c58a1319d1029371bf637cc1293cceba53c6da5314ed1
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
workspaces:
|
|
||||||
- name: git-basic-auth
|
|
||||||
workspace: git-auth
|
|
||||||
- name: netrc
|
|
||||||
workspace: netrc
|
|
||||||
- name: wait-for-parent-image
|
|
||||||
params:
|
|
||||||
- name: ref
|
|
||||||
value: $(params.parent-image)
|
|
||||||
taskRef:
|
|
||||||
name: wait-for-image
|
|
||||||
when:
|
|
||||||
- input: $(params.parent-image)
|
|
||||||
operator: notin
|
|
||||||
values:
|
|
||||||
- ""
|
|
||||||
- matrix:
|
|
||||||
params:
|
|
||||||
- name: PLATFORM
|
|
||||||
value:
|
|
||||||
- $(params.build-platforms)
|
|
||||||
name: build-images
|
|
||||||
params:
|
|
||||||
- name: IMAGE
|
|
||||||
value: $(params.output-image)
|
|
||||||
- name: DOCKERFILE
|
|
||||||
value: $(params.dockerfile)
|
|
||||||
- name: CONTEXT
|
|
||||||
value: $(params.path-context)
|
|
||||||
- name: HERMETIC
|
|
||||||
value: $(params.hermetic)
|
|
||||||
- name: PREFETCH_INPUT
|
|
||||||
value: $(params.prefetch-input)
|
|
||||||
- name: IMAGE_EXPIRES_AFTER
|
|
||||||
value: $(params.image-expires-after)
|
|
||||||
- name: COMMIT_SHA
|
|
||||||
value: $(tasks.clone-repository.results.commit)
|
|
||||||
- name: BUILD_ARGS
|
|
||||||
value:
|
|
||||||
- $(params.build-args[*])
|
|
||||||
- name: BUILD_ARGS_FILE
|
|
||||||
value: $(params.build-args-file)
|
|
||||||
- name: PRIVILEGED_NESTED
|
|
||||||
value: $(params.privileged-nested)
|
|
||||||
- name: SOURCE_ARTIFACT
|
|
||||||
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
|
|
||||||
- name: CACHI2_ARTIFACT
|
|
||||||
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
|
|
||||||
- name: IMAGE_APPEND_PLATFORM
|
|
||||||
value: "true"
|
|
||||||
runAfter:
|
|
||||||
- wait-for-parent-image
|
|
||||||
- prefetch-dependencies
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: buildah-remote-oci-ta
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-buildah-remote-oci-ta:0.4@sha256:9e866d4d0489a6ab84ae263db416c9f86d2d6117ef4444f495a0e97388ae3ac0
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
when:
|
|
||||||
- input: $(tasks.init.results.build)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- "true"
|
|
||||||
- name: build-image-index
|
|
||||||
params:
|
|
||||||
- name: IMAGE
|
|
||||||
value: $(params.output-image)
|
|
||||||
- name: COMMIT_SHA
|
|
||||||
value: $(tasks.clone-repository.results.commit)
|
|
||||||
- name: IMAGE_EXPIRES_AFTER
|
|
||||||
value: $(params.image-expires-after)
|
|
||||||
- name: ALWAYS_BUILD_INDEX
|
|
||||||
value: $(params.build-image-index)
|
|
||||||
- name: IMAGES
|
|
||||||
value:
|
|
||||||
- $(tasks.build-images.results.IMAGE_REF[*])
|
|
||||||
runAfter:
|
|
||||||
- build-images
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: build-image-index
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-build-image-index:0.1@sha256:3499772af90aad0d3935629be6d37dd9292195fb629e6f43ec839c7f545a0faa
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
when:
|
|
||||||
- input: $(tasks.init.results.build)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- "true"
|
|
||||||
- name: wait-for-test-image
|
|
||||||
params:
|
|
||||||
- name: ref
|
|
||||||
value: $(params.test-image)
|
|
||||||
runAfter:
|
|
||||||
- build-image-index
|
|
||||||
taskRef:
|
|
||||||
name: wait-for-image
|
|
||||||
when:
|
|
||||||
- input: $(params.test-image)
|
|
||||||
operator: notin
|
|
||||||
values:
|
|
||||||
- ""
|
|
||||||
- name: run-tests
|
|
||||||
matrix:
|
|
||||||
params:
|
|
||||||
- name: cmd
|
|
||||||
value:
|
|
||||||
- $(params.test-commands)
|
|
||||||
params:
|
|
||||||
- name: image
|
|
||||||
value: $(params.test-image)@$(tasks.wait-for-test-image.results.digest)
|
|
||||||
- name: envs
|
|
||||||
value:
|
|
||||||
- $(params.test-envs[*])
|
|
||||||
runAfter:
|
|
||||||
- wait-for-test-image
|
|
||||||
taskRef:
|
|
||||||
name: test-cmd
|
|
||||||
when:
|
|
||||||
- input: $(params.test-image)
|
|
||||||
operator: notin
|
|
||||||
values:
|
|
||||||
- ""
|
|
||||||
- name: build-source-image
|
|
||||||
params:
|
|
||||||
- name: BINARY_IMAGE
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_URL)
|
|
||||||
- name: SOURCE_ARTIFACT
|
|
||||||
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
|
|
||||||
- name: CACHI2_ARTIFACT
|
|
||||||
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
|
|
||||||
- name: BINARY_IMAGE_DIGEST
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
|
|
||||||
runAfter:
|
|
||||||
- build-image-index
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: source-build-oci-ta
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-source-build-oci-ta:0.3@sha256:b1eb49583b41872b27356fee20d5f0eb6ff7f5cdeacde7ffb39655f031104728
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
when:
|
|
||||||
- input: $(tasks.init.results.build)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- "true"
|
|
||||||
- input: $(params.build-source-image)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- "true"
|
|
||||||
- name: deprecated-base-image-check
|
|
||||||
params:
|
|
||||||
- name: IMAGE_URL
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_URL)
|
|
||||||
- name: IMAGE_DIGEST
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
|
|
||||||
runAfter:
|
|
||||||
- build-image-index
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: deprecated-image-check
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-deprecated-image-check:0.5@sha256:3c8b81fa868e27c6266e7660a4bfb4c822846dcf4304606e71e20893b0d3e515
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
when:
|
|
||||||
- input: $(params.skip-checks)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- "false"
|
|
||||||
- name: clair-scan
|
|
||||||
params:
|
|
||||||
- name: image-digest
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
|
|
||||||
- name: image-url
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_URL)
|
|
||||||
runAfter:
|
|
||||||
- build-image-index
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: clair-scan
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-clair-scan:0.2@sha256:417f44117f8d87a4a62fea6589b5746612ac61640b454dbd88f74892380411f2
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
when:
|
|
||||||
- input: $(params.skip-checks)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- "false"
|
|
||||||
- name: ecosystem-cert-preflight-checks
|
|
||||||
params:
|
|
||||||
- name: image-url
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_URL)
|
|
||||||
runAfter:
|
|
||||||
- build-image-index
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: ecosystem-cert-preflight-checks
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-ecosystem-cert-preflight-checks:0.2@sha256:f99d2bdb02f13223d494077a2cde31418d09369f33c02134a8e7e5fad2f61eda
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
when:
|
|
||||||
- input: $(params.skip-checks)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- "false"
|
|
||||||
- name: sast-snyk-check
|
|
||||||
params:
|
|
||||||
- name: image-digest
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
|
|
||||||
- name: image-url
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_URL)
|
|
||||||
- name: SOURCE_ARTIFACT
|
|
||||||
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
|
|
||||||
- name: CACHI2_ARTIFACT
|
|
||||||
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
|
|
||||||
runAfter:
|
|
||||||
- build-image-index
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: sast-snyk-check-oci-ta
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-sast-snyk-check-oci-ta:0.4@sha256:fe5e5ba3a72632cd505910de2eacd62c9d11ed570c325173188f8d568ac60771
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
when:
|
|
||||||
- input: $(params.skip-checks)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- "false"
|
|
||||||
- name: clamav-scan
|
|
||||||
params:
|
|
||||||
- name: image-digest
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
|
|
||||||
- name: image-url
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_URL)
|
|
||||||
runAfter:
|
|
||||||
- build-image-index
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: clamav-scan
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-clamav-scan:0.2@sha256:7749146f7e4fe530846f1b15c9366178ec9f44776ef1922a60d3e7e2b8c6426b
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
when:
|
|
||||||
- input: $(params.skip-checks)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- "false"
|
|
||||||
- name: sast-coverity-check
|
|
||||||
params:
|
|
||||||
- name: image-digest
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
|
|
||||||
- name: image-url
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_URL)
|
|
||||||
- name: IMAGE
|
|
||||||
value: $(params.output-image)
|
|
||||||
- name: DOCKERFILE
|
|
||||||
value: $(params.dockerfile)
|
|
||||||
- name: CONTEXT
|
|
||||||
value: $(params.path-context)
|
|
||||||
- name: HERMETIC
|
|
||||||
value: $(params.hermetic)
|
|
||||||
- name: PREFETCH_INPUT
|
|
||||||
value: $(params.prefetch-input)
|
|
||||||
- name: IMAGE_EXPIRES_AFTER
|
|
||||||
value: $(params.image-expires-after)
|
|
||||||
- name: COMMIT_SHA
|
|
||||||
value: $(tasks.clone-repository.results.commit)
|
|
||||||
- name: BUILD_ARGS
|
|
||||||
value:
|
|
||||||
- $(params.build-args[*])
|
|
||||||
- name: BUILD_ARGS_FILE
|
|
||||||
value: $(params.build-args-file)
|
|
||||||
- name: SOURCE_ARTIFACT
|
|
||||||
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
|
|
||||||
- name: CACHI2_ARTIFACT
|
|
||||||
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
|
|
||||||
runAfter:
|
|
||||||
- coverity-availability-check
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: sast-coverity-check-oci-ta
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-sast-coverity-check-oci-ta:0.3@sha256:f9ca942208dc2e63b479384ccc56a611cc793397ecc837637b5b9f89c2ecbefe
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
when:
|
|
||||||
- input: $(params.skip-checks)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- "false"
|
|
||||||
- input: $(tasks.coverity-availability-check.results.STATUS)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- success
|
|
||||||
- name: coverity-availability-check
|
|
||||||
runAfter:
|
|
||||||
- build-image-index
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: coverity-availability-check
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-coverity-availability-check:0.2@sha256:db2b267dc15e4ed17f704ee91b8e9b38068e1a35b1018a328fdca621819d74c6
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
when:
|
|
||||||
- input: $(params.skip-checks)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- "false"
|
|
||||||
- name: sast-shell-check
|
|
||||||
params:
|
|
||||||
- name: image-digest
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
|
|
||||||
- name: image-url
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_URL)
|
|
||||||
- name: SOURCE_ARTIFACT
|
|
||||||
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
|
|
||||||
- name: CACHI2_ARTIFACT
|
|
||||||
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
|
|
||||||
runAfter:
|
|
||||||
- build-image-index
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: sast-shell-check-oci-ta
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-sast-shell-check-oci-ta:0.1@sha256:bf7bdde00b7212f730c1356672290af6f38d070da2c8a316987b5c32fd49e0b9
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
when:
|
|
||||||
- input: $(params.skip-checks)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- "false"
|
|
||||||
- name: sast-unicode-check
|
|
||||||
params:
|
|
||||||
- name: image-digest
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
|
|
||||||
- name: image-url
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_URL)
|
|
||||||
- name: SOURCE_ARTIFACT
|
|
||||||
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
|
|
||||||
- name: CACHI2_ARTIFACT
|
|
||||||
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
|
|
||||||
runAfter:
|
|
||||||
- build-image-index
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: sast-unicode-check-oci-ta
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-sast-unicode-check-oci-ta:0.3@sha256:a2bde66f6b4164620298c7d709b8f08515409404000fa1dc2260d2508b135651
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
when:
|
|
||||||
- input: $(params.skip-checks)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- "false"
|
|
||||||
- name: apply-tags
|
|
||||||
params:
|
|
||||||
- name: IMAGE_URL
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_URL)
|
|
||||||
- name: IMAGE_DIGEST
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
|
|
||||||
runAfter:
|
|
||||||
- build-image-index
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: apply-tags
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-apply-tags:0.2@sha256:517a51e260c0b59654a9d7b842e1ab07d76bce15ca7ce9c8fd2489a19be6463d
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
- name: push-dockerfile
|
|
||||||
params:
|
|
||||||
- name: IMAGE
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_URL)
|
|
||||||
- name: IMAGE_DIGEST
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
|
|
||||||
- name: DOCKERFILE
|
|
||||||
value: $(params.dockerfile)
|
|
||||||
- name: CONTEXT
|
|
||||||
value: $(params.path-context)
|
|
||||||
- name: SOURCE_ARTIFACT
|
|
||||||
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
|
|
||||||
runAfter:
|
|
||||||
- build-image-index
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: push-dockerfile-oci-ta
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-push-dockerfile-oci-ta:0.1@sha256:8c75c4a747e635e5f3e12266a3bb6e5d3132bf54e37eaa53d505f89897dd8eca
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
- name: rpms-signature-scan
|
|
||||||
params:
|
|
||||||
- name: image-url
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_URL)
|
|
||||||
- name: image-digest
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
|
|
||||||
runAfter:
|
|
||||||
- build-image-index
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: rpms-signature-scan
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-rpms-signature-scan:0.2@sha256:1b6c20ab3dbfb0972803d3ebcb2fa72642e59400c77bd66dfd82028bdd09e120
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
when:
|
|
||||||
- input: $(params.skip-checks)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- "false"
|
|
||||||
finally:
|
|
||||||
- name: show-sbom
|
|
||||||
params:
|
|
||||||
- name: IMAGE_URL
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_URL)
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: show-sbom
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-show-sbom:0.1@sha256:86c069cac0a669797e8049faa8aa4088e70ff7fcd579d5bdc37626a9e0488a05
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
optional: true
|
|
||||||
- name: netrc
|
|
||||||
optional: true
|
|
|
@ -1,640 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: Pipeline
|
|
||||||
metadata:
|
|
||||||
name: push-pipeline
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
spec:
|
|
||||||
description: |
|
|
||||||
Pipeline for building RamaLama images on push.
|
|
||||||
Based on the [docker-build-multi-platform-oci-ta](https://github.com/konflux-ci/build-definitions/tree/main/pipelines/docker-build-multi-platform-oci-ta) pipeline from [Konflux](https://konflux-ci.dev/).
|
|
||||||
params:
|
|
||||||
- description: Source Repository URL
|
|
||||||
name: git-url
|
|
||||||
type: string
|
|
||||||
- default: ""
|
|
||||||
description: Revision of the Source Repository
|
|
||||||
name: revision
|
|
||||||
type: string
|
|
||||||
- description: Fully Qualified Output Image
|
|
||||||
name: output-image
|
|
||||||
type: string
|
|
||||||
- default: .
|
|
||||||
description: Path to the source code of an application's component from where to build image.
|
|
||||||
name: path-context
|
|
||||||
type: string
|
|
||||||
- default: Dockerfile
|
|
||||||
description: Path to the Dockerfile inside the context specified by parameter path-context
|
|
||||||
name: dockerfile
|
|
||||||
type: string
|
|
||||||
- default: "false"
|
|
||||||
description: Force rebuild image
|
|
||||||
name: rebuild
|
|
||||||
type: string
|
|
||||||
- default: "false"
|
|
||||||
description: Skip checks against built image
|
|
||||||
name: skip-checks
|
|
||||||
type: string
|
|
||||||
- default: "false"
|
|
||||||
description: Execute the build with network isolation
|
|
||||||
name: hermetic
|
|
||||||
type: string
|
|
||||||
- default: ""
|
|
||||||
description: Build dependencies to be prefetched by Cachi2
|
|
||||||
name: prefetch-input
|
|
||||||
type: string
|
|
||||||
- default: ""
|
|
||||||
description: Image tag expiration time, time values could be something like 1h, 2d, 3w for hours, days, and weeks, respectively.
|
|
||||||
name: image-expires-after
|
|
||||||
- default: "false"
|
|
||||||
description: Build a source image.
|
|
||||||
name: build-source-image
|
|
||||||
type: string
|
|
||||||
- default: "true"
|
|
||||||
description: Add built image into an OCI image index
|
|
||||||
name: build-image-index
|
|
||||||
type: string
|
|
||||||
- default: []
|
|
||||||
description: Array of --build-arg values ("arg=value" strings) for buildah
|
|
||||||
name: build-args
|
|
||||||
type: array
|
|
||||||
- default: ""
|
|
||||||
description: Path to a file with build arguments for buildah, see https://www.mankier.com/1/buildah-build#--build-arg-file
|
|
||||||
name: build-args-file
|
|
||||||
type: string
|
|
||||||
- default: "false"
|
|
||||||
description: Whether to enable privileged mode, should be used only with remote VMs
|
|
||||||
name: privileged-nested
|
|
||||||
type: string
|
|
||||||
- default:
|
|
||||||
- linux-c4xlarge/amd64
|
|
||||||
description: List of platforms to build the container images on. The available set of values is determined by the configuration of the multi-platform-controller.
|
|
||||||
name: build-platforms
|
|
||||||
type: array
|
|
||||||
- default: ""
|
|
||||||
description: The parent image of the image being built.
|
|
||||||
name: parent-image
|
|
||||||
- default: ""
|
|
||||||
description: The image to use for running tests.
|
|
||||||
name: test-image
|
|
||||||
- default: []
|
|
||||||
description: List of environment variables (NAME=VALUE) to be set in the test environment.
|
|
||||||
name: test-envs
|
|
||||||
type: array
|
|
||||||
- default:
|
|
||||||
- echo "No tests defined"
|
|
||||||
description: List of test commands to run after the image is built.
|
|
||||||
name: test-commands
|
|
||||||
type: array
|
|
||||||
results:
|
|
||||||
- description: ""
|
|
||||||
name: IMAGE_URL
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_URL)
|
|
||||||
- description: ""
|
|
||||||
name: IMAGE_DIGEST
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
|
|
||||||
- description: ""
|
|
||||||
name: CHAINS-GIT_URL
|
|
||||||
value: $(tasks.clone-repository.results.url)
|
|
||||||
- description: ""
|
|
||||||
name: CHAINS-GIT_COMMIT
|
|
||||||
value: $(tasks.clone-repository.results.commit)
|
|
||||||
tasks:
|
|
||||||
- name: init
|
|
||||||
params:
|
|
||||||
- name: image-url
|
|
||||||
value: $(params.output-image)
|
|
||||||
- name: rebuild
|
|
||||||
value: $(params.rebuild)
|
|
||||||
- name: skip-checks
|
|
||||||
value: $(params.skip-checks)
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: init
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-init:0.2@sha256:1d8221c84f91b923d89de50bf16481ea729e3b68ea04a9a7cbe8485ddbb27ee6
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
- name: clone-repository
|
|
||||||
params:
|
|
||||||
- name: url
|
|
||||||
value: $(params.git-url)
|
|
||||||
- name: revision
|
|
||||||
value: $(params.revision)
|
|
||||||
- name: ociStorage
|
|
||||||
value: $(params.output-image).git
|
|
||||||
- name: ociArtifactExpiresAfter
|
|
||||||
value: $(params.image-expires-after)
|
|
||||||
runAfter:
|
|
||||||
- init
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: git-clone-oci-ta
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-git-clone-oci-ta:0.1@sha256:d35e5d501cb5f5f88369511f76249857cb5ac30250e1dcf086939321964ff6b9
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
when:
|
|
||||||
- input: $(tasks.init.results.build)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- "true"
|
|
||||||
workspaces:
|
|
||||||
- name: basic-auth
|
|
||||||
workspace: git-auth
|
|
||||||
- name: prefetch-dependencies
|
|
||||||
params:
|
|
||||||
- name: input
|
|
||||||
value: $(params.prefetch-input)
|
|
||||||
- name: SOURCE_ARTIFACT
|
|
||||||
value: $(tasks.clone-repository.results.SOURCE_ARTIFACT)
|
|
||||||
- name: ociStorage
|
|
||||||
value: $(params.output-image).prefetch
|
|
||||||
- name: ociArtifactExpiresAfter
|
|
||||||
value: $(params.image-expires-after)
|
|
||||||
runAfter:
|
|
||||||
- clone-repository
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: prefetch-dependencies-oci-ta
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-prefetch-dependencies-oci-ta:0.2@sha256:092491ac0f6e1009d10c58a1319d1029371bf637cc1293cceba53c6da5314ed1
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
workspaces:
|
|
||||||
- name: git-basic-auth
|
|
||||||
workspace: git-auth
|
|
||||||
- name: netrc
|
|
||||||
workspace: netrc
|
|
||||||
- name: wait-for-parent-image
|
|
||||||
params:
|
|
||||||
- name: ref
|
|
||||||
value: $(params.parent-image)
|
|
||||||
taskRef:
|
|
||||||
name: wait-for-image
|
|
||||||
when:
|
|
||||||
- input: $(params.parent-image)
|
|
||||||
operator: notin
|
|
||||||
values:
|
|
||||||
- ""
|
|
||||||
- matrix:
|
|
||||||
params:
|
|
||||||
- name: PLATFORM
|
|
||||||
value:
|
|
||||||
- $(params.build-platforms)
|
|
||||||
name: build-images
|
|
||||||
params:
|
|
||||||
- name: IMAGE
|
|
||||||
value: $(params.output-image)
|
|
||||||
- name: DOCKERFILE
|
|
||||||
value: $(params.dockerfile)
|
|
||||||
- name: CONTEXT
|
|
||||||
value: $(params.path-context)
|
|
||||||
- name: HERMETIC
|
|
||||||
value: $(params.hermetic)
|
|
||||||
- name: PREFETCH_INPUT
|
|
||||||
value: $(params.prefetch-input)
|
|
||||||
- name: IMAGE_EXPIRES_AFTER
|
|
||||||
value: $(params.image-expires-after)
|
|
||||||
- name: COMMIT_SHA
|
|
||||||
value: $(tasks.clone-repository.results.commit)
|
|
||||||
- name: BUILD_ARGS
|
|
||||||
value:
|
|
||||||
- $(params.build-args[*])
|
|
||||||
- name: BUILD_ARGS_FILE
|
|
||||||
value: $(params.build-args-file)
|
|
||||||
- name: PRIVILEGED_NESTED
|
|
||||||
value: $(params.privileged-nested)
|
|
||||||
- name: SOURCE_ARTIFACT
|
|
||||||
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
|
|
||||||
- name: CACHI2_ARTIFACT
|
|
||||||
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
|
|
||||||
- name: IMAGE_APPEND_PLATFORM
|
|
||||||
value: "true"
|
|
||||||
runAfter:
|
|
||||||
- wait-for-parent-image
|
|
||||||
- prefetch-dependencies
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: buildah-remote-oci-ta
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-buildah-remote-oci-ta:0.4@sha256:9e866d4d0489a6ab84ae263db416c9f86d2d6117ef4444f495a0e97388ae3ac0
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
when:
|
|
||||||
- input: $(tasks.init.results.build)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- "true"
|
|
||||||
- name: build-image-index
|
|
||||||
params:
|
|
||||||
- name: IMAGE
|
|
||||||
value: $(params.output-image)
|
|
||||||
- name: COMMIT_SHA
|
|
||||||
value: $(tasks.clone-repository.results.commit)
|
|
||||||
- name: IMAGE_EXPIRES_AFTER
|
|
||||||
value: $(params.image-expires-after)
|
|
||||||
- name: ALWAYS_BUILD_INDEX
|
|
||||||
value: $(params.build-image-index)
|
|
||||||
- name: IMAGES
|
|
||||||
value:
|
|
||||||
- $(tasks.build-images.results.IMAGE_REF[*])
|
|
||||||
runAfter:
|
|
||||||
- build-images
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: build-image-index
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-build-image-index:0.1@sha256:3499772af90aad0d3935629be6d37dd9292195fb629e6f43ec839c7f545a0faa
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
when:
|
|
||||||
- input: $(tasks.init.results.build)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- "true"
|
|
||||||
- name: wait-for-test-image
|
|
||||||
params:
|
|
||||||
- name: ref
|
|
||||||
value: $(params.test-image)
|
|
||||||
runAfter:
|
|
||||||
- build-image-index
|
|
||||||
taskRef:
|
|
||||||
name: wait-for-image
|
|
||||||
when:
|
|
||||||
- input: $(params.test-image)
|
|
||||||
operator: notin
|
|
||||||
values:
|
|
||||||
- ""
|
|
||||||
- name: run-tests
|
|
||||||
matrix:
|
|
||||||
params:
|
|
||||||
- name: cmd
|
|
||||||
value:
|
|
||||||
- $(params.test-commands)
|
|
||||||
params:
|
|
||||||
- name: image
|
|
||||||
value: $(params.test-image)@$(tasks.wait-for-test-image.results.digest)
|
|
||||||
- name: envs
|
|
||||||
value:
|
|
||||||
- $(params.test-envs[*])
|
|
||||||
runAfter:
|
|
||||||
- wait-for-test-image
|
|
||||||
taskRef:
|
|
||||||
name: test-cmd
|
|
||||||
when:
|
|
||||||
- input: $(params.test-image)
|
|
||||||
operator: notin
|
|
||||||
values:
|
|
||||||
- ""
|
|
||||||
- name: build-source-image
|
|
||||||
params:
|
|
||||||
- name: BINARY_IMAGE
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_URL)
|
|
||||||
- name: SOURCE_ARTIFACT
|
|
||||||
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
|
|
||||||
- name: CACHI2_ARTIFACT
|
|
||||||
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
|
|
||||||
- name: BINARY_IMAGE_DIGEST
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
|
|
||||||
runAfter:
|
|
||||||
- build-image-index
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: source-build-oci-ta
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-source-build-oci-ta:0.3@sha256:b1eb49583b41872b27356fee20d5f0eb6ff7f5cdeacde7ffb39655f031104728
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
when:
|
|
||||||
- input: $(tasks.init.results.build)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- "true"
|
|
||||||
- input: $(params.build-source-image)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- "true"
|
|
||||||
- name: deprecated-base-image-check
|
|
||||||
params:
|
|
||||||
- name: IMAGE_URL
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_URL)
|
|
||||||
- name: IMAGE_DIGEST
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
|
|
||||||
runAfter:
|
|
||||||
- build-image-index
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: deprecated-image-check
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-deprecated-image-check:0.5@sha256:3c8b81fa868e27c6266e7660a4bfb4c822846dcf4304606e71e20893b0d3e515
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
when:
|
|
||||||
- input: $(params.skip-checks)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- "false"
|
|
||||||
- name: clair-scan
|
|
||||||
params:
|
|
||||||
- name: image-digest
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
|
|
||||||
- name: image-url
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_URL)
|
|
||||||
runAfter:
|
|
||||||
- build-image-index
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: clair-scan
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-clair-scan:0.2@sha256:417f44117f8d87a4a62fea6589b5746612ac61640b454dbd88f74892380411f2
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
when:
|
|
||||||
- input: $(params.skip-checks)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- "false"
|
|
||||||
- name: ecosystem-cert-preflight-checks
|
|
||||||
params:
|
|
||||||
- name: image-url
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_URL)
|
|
||||||
runAfter:
|
|
||||||
- build-image-index
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: ecosystem-cert-preflight-checks
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-ecosystem-cert-preflight-checks:0.2@sha256:f99d2bdb02f13223d494077a2cde31418d09369f33c02134a8e7e5fad2f61eda
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
when:
|
|
||||||
- input: $(params.skip-checks)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- "false"
|
|
||||||
- name: sast-snyk-check
|
|
||||||
params:
|
|
||||||
- name: image-digest
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
|
|
||||||
- name: image-url
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_URL)
|
|
||||||
- name: SOURCE_ARTIFACT
|
|
||||||
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
|
|
||||||
- name: CACHI2_ARTIFACT
|
|
||||||
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
|
|
||||||
runAfter:
|
|
||||||
- build-image-index
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: sast-snyk-check-oci-ta
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-sast-snyk-check-oci-ta:0.4@sha256:fe5e5ba3a72632cd505910de2eacd62c9d11ed570c325173188f8d568ac60771
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
when:
|
|
||||||
- input: $(params.skip-checks)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- "false"
|
|
||||||
- name: clamav-scan
|
|
||||||
params:
|
|
||||||
- name: image-digest
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
|
|
||||||
- name: image-url
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_URL)
|
|
||||||
runAfter:
|
|
||||||
- build-image-index
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: clamav-scan
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-clamav-scan:0.2@sha256:7749146f7e4fe530846f1b15c9366178ec9f44776ef1922a60d3e7e2b8c6426b
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
when:
|
|
||||||
- input: $(params.skip-checks)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- "false"
|
|
||||||
- name: sast-coverity-check
|
|
||||||
params:
|
|
||||||
- name: image-digest
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
|
|
||||||
- name: image-url
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_URL)
|
|
||||||
- name: IMAGE
|
|
||||||
value: $(params.output-image)
|
|
||||||
- name: DOCKERFILE
|
|
||||||
value: $(params.dockerfile)
|
|
||||||
- name: CONTEXT
|
|
||||||
value: $(params.path-context)
|
|
||||||
- name: HERMETIC
|
|
||||||
value: $(params.hermetic)
|
|
||||||
- name: PREFETCH_INPUT
|
|
||||||
value: $(params.prefetch-input)
|
|
||||||
- name: IMAGE_EXPIRES_AFTER
|
|
||||||
value: $(params.image-expires-after)
|
|
||||||
- name: COMMIT_SHA
|
|
||||||
value: $(tasks.clone-repository.results.commit)
|
|
||||||
- name: BUILD_ARGS
|
|
||||||
value:
|
|
||||||
- $(params.build-args[*])
|
|
||||||
- name: BUILD_ARGS_FILE
|
|
||||||
value: $(params.build-args-file)
|
|
||||||
- name: SOURCE_ARTIFACT
|
|
||||||
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
|
|
||||||
- name: CACHI2_ARTIFACT
|
|
||||||
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
|
|
||||||
runAfter:
|
|
||||||
- coverity-availability-check
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: sast-coverity-check-oci-ta
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-sast-coverity-check-oci-ta:0.3@sha256:f9ca942208dc2e63b479384ccc56a611cc793397ecc837637b5b9f89c2ecbefe
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
when:
|
|
||||||
- input: $(params.skip-checks)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- "false"
|
|
||||||
- input: $(tasks.coverity-availability-check.results.STATUS)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- success
|
|
||||||
- name: coverity-availability-check
|
|
||||||
runAfter:
|
|
||||||
- build-image-index
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: coverity-availability-check
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-coverity-availability-check:0.2@sha256:db2b267dc15e4ed17f704ee91b8e9b38068e1a35b1018a328fdca621819d74c6
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
when:
|
|
||||||
- input: $(params.skip-checks)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- "false"
|
|
||||||
- name: sast-shell-check
|
|
||||||
params:
|
|
||||||
- name: image-digest
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
|
|
||||||
- name: image-url
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_URL)
|
|
||||||
- name: SOURCE_ARTIFACT
|
|
||||||
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
|
|
||||||
- name: CACHI2_ARTIFACT
|
|
||||||
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
|
|
||||||
runAfter:
|
|
||||||
- build-image-index
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: sast-shell-check-oci-ta
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-sast-shell-check-oci-ta:0.1@sha256:bf7bdde00b7212f730c1356672290af6f38d070da2c8a316987b5c32fd49e0b9
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
when:
|
|
||||||
- input: $(params.skip-checks)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- "false"
|
|
||||||
- name: sast-unicode-check
|
|
||||||
params:
|
|
||||||
- name: image-digest
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
|
|
||||||
- name: image-url
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_URL)
|
|
||||||
- name: SOURCE_ARTIFACT
|
|
||||||
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
|
|
||||||
- name: CACHI2_ARTIFACT
|
|
||||||
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
|
|
||||||
runAfter:
|
|
||||||
- build-image-index
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: sast-unicode-check-oci-ta
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-sast-unicode-check-oci-ta:0.3@sha256:a2bde66f6b4164620298c7d709b8f08515409404000fa1dc2260d2508b135651
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
when:
|
|
||||||
- input: $(params.skip-checks)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- "false"
|
|
||||||
- name: apply-tags
|
|
||||||
params:
|
|
||||||
- name: IMAGE_URL
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_URL)
|
|
||||||
- name: IMAGE_DIGEST
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
|
|
||||||
runAfter:
|
|
||||||
- build-image-index
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: apply-tags
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-apply-tags:0.2@sha256:517a51e260c0b59654a9d7b842e1ab07d76bce15ca7ce9c8fd2489a19be6463d
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
- name: push-dockerfile
|
|
||||||
params:
|
|
||||||
- name: IMAGE
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_URL)
|
|
||||||
- name: IMAGE_DIGEST
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
|
|
||||||
- name: DOCKERFILE
|
|
||||||
value: $(params.dockerfile)
|
|
||||||
- name: CONTEXT
|
|
||||||
value: $(params.path-context)
|
|
||||||
- name: SOURCE_ARTIFACT
|
|
||||||
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
|
|
||||||
runAfter:
|
|
||||||
- build-image-index
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: push-dockerfile-oci-ta
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-push-dockerfile-oci-ta:0.1@sha256:8c75c4a747e635e5f3e12266a3bb6e5d3132bf54e37eaa53d505f89897dd8eca
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
- name: rpms-signature-scan
|
|
||||||
params:
|
|
||||||
- name: image-url
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_URL)
|
|
||||||
- name: image-digest
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_DIGEST)
|
|
||||||
runAfter:
|
|
||||||
- build-image-index
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: rpms-signature-scan
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-rpms-signature-scan:0.2@sha256:1b6c20ab3dbfb0972803d3ebcb2fa72642e59400c77bd66dfd82028bdd09e120
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
when:
|
|
||||||
- input: $(params.skip-checks)
|
|
||||||
operator: in
|
|
||||||
values:
|
|
||||||
- "false"
|
|
||||||
finally:
|
|
||||||
- name: show-sbom
|
|
||||||
params:
|
|
||||||
- name: IMAGE_URL
|
|
||||||
value: $(tasks.build-image-index.results.IMAGE_URL)
|
|
||||||
taskRef:
|
|
||||||
params:
|
|
||||||
- name: name
|
|
||||||
value: show-sbom
|
|
||||||
- name: bundle
|
|
||||||
value: quay.io/konflux-ci/tekton-catalog/task-show-sbom:0.1@sha256:86c069cac0a669797e8049faa8aa4088e70ff7fcd579d5bdc37626a9e0488a05
|
|
||||||
- name: kind
|
|
||||||
value: task
|
|
||||||
resolver: bundles
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
optional: true
|
|
||||||
- name: netrc
|
|
||||||
optional: true
|
|
|
@ -1,42 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: ramalama-cli
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: ramalama-cli-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/ramalama-cli:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-c4xlarge/amd64
|
|
||||||
- linux-c4xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/ramalama-cli/Containerfile
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,39 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: ramalama-cli
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: ramalama-cli-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/ramalama-cli:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-c4xlarge/amd64
|
|
||||||
- linux-c4xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/ramalama-cli/Containerfile
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,48 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: ramalama-llama-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: ramalama-llama-server-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/ramalama-llama-server:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- linux-m2xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/ramalama:on-pr-{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/ramalama:on-pr-{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/llama-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,45 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: ramalama-llama-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: ramalama-llama-server-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/ramalama-llama-server:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- linux-m2xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/ramalama:{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/ramalama:{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/llama-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,48 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: ramalama-rag
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: ramalama-rag-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/ramalama-rag:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-d160-m2xlarge/amd64
|
|
||||||
- linux-d160-m2xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.rag
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/ramalama:on-pr-{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/ramalama:on-pr-{{revision}}
|
|
||||||
- GPU=cpu
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,45 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: ramalama-rag
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: ramalama-rag-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/ramalama-rag:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-d160-m2xlarge/amd64
|
|
||||||
- linux-d160-m2xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.rag
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/ramalama:{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/ramalama:{{revision}}
|
|
||||||
- GPU=cpu
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,48 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: ramalama-whisper-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: ramalama-whisper-server-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/ramalama-whisper-server:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- linux-m2xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/ramalama:on-pr-{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/ramalama:on-pr-{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/whisper-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,45 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: ramalama-whisper-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: ramalama-whisper-server-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/ramalama-whisper-server:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- linux-m2xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/ramalama:{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/ramalama:{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/whisper-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,52 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: ramalama
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: ramalama-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/ramalama:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-c4xlarge/amd64
|
|
||||||
- linux-c4xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/ramalama/Containerfile
|
|
||||||
- name: test-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/bats:on-pr-{{revision}}
|
|
||||||
- name: test-envs
|
|
||||||
value:
|
|
||||||
- RAMALAMA_IMAGE=quay.io/redhat-user-workloads/ramalama-tenant/ramalama:on-pr-{{revision}}
|
|
||||||
- name: test-commands
|
|
||||||
value:
|
|
||||||
- make validate
|
|
||||||
- make unit-tests
|
|
||||||
- make cov-tests
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,49 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: ramalama
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: ramalama-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/ramalama:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-c4xlarge/amd64
|
|
||||||
- linux-c4xlarge/arm64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/ramalama/Containerfile
|
|
||||||
- name: test-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/bats:{{revision}}
|
|
||||||
- name: test-envs
|
|
||||||
value:
|
|
||||||
- RAMALAMA_IMAGE=quay.io/redhat-user-workloads/ramalama-tenant/ramalama:{{revision}}
|
|
||||||
- name: test-commands
|
|
||||||
value:
|
|
||||||
- make validate
|
|
||||||
- make unit-tests
|
|
||||||
- make cov-tests
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,47 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: rocm-llama-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: rocm-llama-server-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/rocm-llama-server:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/rocm:on-pr-{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/rocm:on-pr-{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/llama-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,44 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: rocm-llama-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: rocm-llama-server-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/rocm-llama-server:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/rocm:{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/rocm:{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/llama-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,47 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: rocm-rag
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: rocm-rag-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/rocm-rag:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-d160-m2xlarge/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.rag
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/rocm:on-pr-{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/rocm:on-pr-{{revision}}
|
|
||||||
- GPU=rocm
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,44 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: rocm-rag
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: rocm-rag-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/rocm-rag:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-d160-m2xlarge/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.rag
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/rocm:{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/rocm:{{revision}}
|
|
||||||
- GPU=rocm
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,47 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: rocm-ubi-llama-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: rocm-ubi-llama-server-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/rocm-ubi-llama-server:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/rocm-ubi:on-pr-{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/rocm-ubi:on-pr-{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/llama-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,44 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: rocm-ubi-llama-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: rocm-ubi-llama-server-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/rocm-ubi-llama-server:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/rocm-ubi:{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/rocm-ubi:{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/llama-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,47 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: rocm-ubi-rag
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: rocm-ubi-rag-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/rocm-ubi-rag:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-d160-m2xlarge/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.rag
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/rocm-ubi:on-pr-{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/rocm-ubi:on-pr-{{revision}}
|
|
||||||
- GPU=rocm
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,44 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: rocm-ubi-rag
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: rocm-ubi-rag-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/rocm-ubi-rag:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-d160-m2xlarge/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.rag
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/rocm-ubi:{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/rocm-ubi:{{revision}}
|
|
||||||
- GPU=rocm
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,47 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: rocm-ubi-whisper-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: rocm-ubi-whisper-server-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/rocm-ubi-whisper-server:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/rocm-ubi:on-pr-{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/rocm-ubi:on-pr-{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/whisper-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,44 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: rocm-ubi-whisper-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: rocm-ubi-whisper-server-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/rocm-ubi-whisper-server:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/rocm-ubi:{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/rocm-ubi:{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/whisper-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,41 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: rocm-ubi
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: rocm-ubi-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/rocm-ubi:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-fast/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/rocm-ubi/Containerfile
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,38 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: rocm-ubi
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: rocm-ubi-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/rocm-ubi:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-fast/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/rocm-ubi/Containerfile
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,47 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: rocm-whisper-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: rocm-whisper-server-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/rocm-whisper-server:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/rocm:on-pr-{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/rocm:on-pr-{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/whisper-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,44 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: rocm-whisper-server
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: rocm-whisper-server-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/rocm-whisper-server:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-m2xlarge/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/common/Containerfile.entrypoint
|
|
||||||
- name: parent-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/rocm:{{revision}}
|
|
||||||
- name: build-args
|
|
||||||
value:
|
|
||||||
- PARENT=quay.io/redhat-user-workloads/ramalama-tenant/rocm:{{revision}}
|
|
||||||
- ENTRYPOINT=/usr/bin/whisper-server.sh
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,41 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "true"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "pull_request" && target_branch == "main" && body.action != "ready_for_review"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: rocm
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: rocm-on-pull-request
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/rocm:on-pr-{{revision}}
|
|
||||||
- name: image-expires-after
|
|
||||||
value: 5d
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-fast/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/rocm/Containerfile
|
|
||||||
pipelineRef:
|
|
||||||
name: pull-request-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,38 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: PipelineRun
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
build.appstudio.openshift.io/repo: https://github.com/containers/ramalama?rev={{revision}}
|
|
||||||
build.appstudio.redhat.com/commit_sha: '{{revision}}'
|
|
||||||
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
|
|
||||||
pipelinesascode.tekton.dev/cancel-in-progress: "false"
|
|
||||||
pipelinesascode.tekton.dev/max-keep-runs: "3"
|
|
||||||
pipelinesascode.tekton.dev/on-cel-expression: >-
|
|
||||||
event == "push" && target_branch == "main"
|
|
||||||
labels:
|
|
||||||
appstudio.openshift.io/application: ramalama
|
|
||||||
appstudio.openshift.io/component: rocm
|
|
||||||
pipelines.appstudio.openshift.io/type: build
|
|
||||||
name: rocm-on-push
|
|
||||||
namespace: ramalama-tenant
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: git-url
|
|
||||||
value: '{{source_url}}'
|
|
||||||
- name: revision
|
|
||||||
value: '{{revision}}'
|
|
||||||
- name: output-image
|
|
||||||
value: quay.io/redhat-user-workloads/ramalama-tenant/rocm:{{revision}}
|
|
||||||
- name: build-platforms
|
|
||||||
value:
|
|
||||||
- linux-fast/amd64
|
|
||||||
- name: dockerfile
|
|
||||||
value: container-images/rocm/Containerfile
|
|
||||||
pipelineRef:
|
|
||||||
name: push-pipeline
|
|
||||||
timeouts:
|
|
||||||
pipeline: 6h
|
|
||||||
workspaces:
|
|
||||||
- name: git-auth
|
|
||||||
secret:
|
|
||||||
secretName: '{{ git_auth_secret }}'
|
|
|
@ -1,36 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: Task
|
|
||||||
metadata:
|
|
||||||
name: test-cmd
|
|
||||||
spec:
|
|
||||||
description: Run a command in a test environment.
|
|
||||||
params:
|
|
||||||
- name: image
|
|
||||||
description: The image to use when setting up the test environment.
|
|
||||||
- name: cmd
|
|
||||||
description: The command to run.
|
|
||||||
- name: envs
|
|
||||||
description: List of environment variables (NAME=VALUE) to be set in the test environment.
|
|
||||||
type: array
|
|
||||||
default: []
|
|
||||||
steps:
|
|
||||||
- name: run
|
|
||||||
image: $(params.image)
|
|
||||||
computeResources:
|
|
||||||
limits:
|
|
||||||
memory: 4Gi
|
|
||||||
requests:
|
|
||||||
cpu: "1"
|
|
||||||
memory: 1Gi
|
|
||||||
securityContext:
|
|
||||||
capabilities:
|
|
||||||
add:
|
|
||||||
- SETFCAP
|
|
||||||
command:
|
|
||||||
- /usr/bin/entrypoint.sh
|
|
||||||
args:
|
|
||||||
- $(params.envs[*])
|
|
||||||
- /bin/bash
|
|
||||||
- -ex
|
|
||||||
- -c
|
|
||||||
- $(params.cmd)
|
|
|
@ -1,32 +0,0 @@
|
||||||
apiVersion: tekton.dev/v1
|
|
||||||
kind: Task
|
|
||||||
metadata:
|
|
||||||
name: wait-for-image
|
|
||||||
spec:
|
|
||||||
description: Wait for an image to become available.
|
|
||||||
params:
|
|
||||||
- name: ref
|
|
||||||
description: Location of image to wait for.
|
|
||||||
results:
|
|
||||||
- name: digest
|
|
||||||
description: The digest that the image ref resolves to.
|
|
||||||
steps:
|
|
||||||
- name: check-and-wait
|
|
||||||
image: registry.redhat.io/rhel10/skopeo:latest
|
|
||||||
env:
|
|
||||||
- name: REF
|
|
||||||
value: $(params.ref)
|
|
||||||
- name: RESULTS_DIGEST_PATH
|
|
||||||
value: $(results.digest.path)
|
|
||||||
script: |
|
|
||||||
#!/bin/bash -e
|
|
||||||
echo "Fetching digest of $REF"
|
|
||||||
while true; do
|
|
||||||
DIGEST="$(skopeo inspect -n -f {{.Digest}} "docker://$REF" || :)"
|
|
||||||
if [ "${#DIGEST}" -gt 0 ]; then
|
|
||||||
echo -n "$DIGEST" | tee "$RESULTS_DIGEST_PATH"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
echo "$(date -uIseconds): digest unavailable, waiting..."
|
|
||||||
sleep 60
|
|
||||||
done
|
|
|
@ -8,7 +8,7 @@ Below summarizes the processes that we follow.
|
||||||
|
|
||||||
* [Reporting Issues](#reporting-issues)
|
* [Reporting Issues](#reporting-issues)
|
||||||
* [Working On Issues](#working-on-issues)
|
* [Working On Issues](#working-on-issues)
|
||||||
* [Contributing To RamaLama](#contributing-to-ramalama-1)
|
* [Contributing To RamaLama](#contributing-to-ramalama)
|
||||||
* [Submitting Pull Requests](#submitting-pull-requests)
|
* [Submitting Pull Requests](#submitting-pull-requests)
|
||||||
* [Communications](#communications)
|
* [Communications](#communications)
|
||||||
* [Code of Conduct](#code-of-conduct)
|
* [Code of Conduct](#code-of-conduct)
|
||||||
|
@ -31,7 +31,6 @@ To make this easier, there are three types of issue templates you can use.
|
||||||
* If you have a bug to report, please use *Bug Report* template.
|
* If you have a bug to report, please use *Bug Report* template.
|
||||||
* If you have an idea to propose, please use the *Feature Request* template.
|
* If you have an idea to propose, please use the *Feature Request* template.
|
||||||
* If your issue is something else, please use the default *Blank issue* template.
|
* If your issue is something else, please use the default *Blank issue* template.
|
||||||
|
|
||||||
Please include as much detail as possible, including all requested fields in the template.
|
Please include as much detail as possible, including all requested fields in the template.
|
||||||
Not having all requested information - for example, a full `ramalama info` - makes it much harder to find and fix issues.
|
Not having all requested information - for example, a full `ramalama info` - makes it much harder to find and fix issues.
|
||||||
A reproducer is the best thing you can include.
|
A reproducer is the best thing you can include.
|
||||||
|
@ -56,7 +55,7 @@ This section describes how to make a contribution to RamaLama.
|
||||||
|
|
||||||
### Prepare your environment
|
### Prepare your environment
|
||||||
|
|
||||||
The minimum version of Python required to use RamaLama is Python 3.10
|
The minimum version of Python required to use RamaLama is PYTHON 3.12
|
||||||
|
|
||||||
### Fork and clone RamaLama
|
### Fork and clone RamaLama
|
||||||
|
|
||||||
|
@ -69,8 +68,7 @@ $ cd ./ramalama/
|
||||||
|
|
||||||
### Using the Makefile
|
### Using the Makefile
|
||||||
|
|
||||||
RamaLama uses a Makefile for common actions such as compiling RamaLama, building containers,
|
RamaLama uses a Makefile for common actions such as compiling RamaLama, building the documentation, and linting.
|
||||||
building the documentation, linting, executing unit tests or generating coverage reports.
|
|
||||||
|
|
||||||
You can list available actions by using:
|
You can list available actions by using:
|
||||||
```shell
|
```shell
|
||||||
|
@ -81,7 +79,7 @@ Usage: make <target>
|
||||||
|
|
||||||
### Install required tools
|
### Install required tools
|
||||||
|
|
||||||
The Makefile allows you to install needed development tools (e.g. the linter):
|
Makefile allow you to install needed development tools (e.g. the linter):
|
||||||
```shell
|
```shell
|
||||||
$ make install-requirements
|
$ make install-requirements
|
||||||
```
|
```
|
||||||
|
@ -173,7 +171,7 @@ There are several types of tests run by RamaLama's upstream CI.
|
||||||
|
|
||||||
### Python Format and lint
|
### Python Format and lint
|
||||||
|
|
||||||
All code changes must pass `make validate`.
|
All code changes must pass ``make validate``.
|
||||||
|
|
||||||
### System Tests
|
### System Tests
|
||||||
|
|
||||||
|
@ -206,7 +204,7 @@ Regardless of the type of PR, all PRs should include:
|
||||||
* Well-documented code changes, both through comments in the code itself and high-quality commit messages.
|
* Well-documented code changes, both through comments in the code itself and high-quality commit messages.
|
||||||
* Additional tests. Ideally, they should fail w/o your code change applied.
|
* Additional tests. Ideally, they should fail w/o your code change applied.
|
||||||
(With a few exceptions, CI hooks will block your PR unless your change
|
(With a few exceptions, CI hooks will block your PR unless your change
|
||||||
includes files under the `test/` subdirectory. Repo
|
includes files named `*_test.go` or under the `test/` subdirectory. Repo
|
||||||
admins may bypass this restriction by setting the 'No New Tests' GitHub
|
admins may bypass this restriction by setting the 'No New Tests' GitHub
|
||||||
label on the PR).
|
label on the PR).
|
||||||
* Documentation updates to reflect the changes made in the pull request.
|
* Documentation updates to reflect the changes made in the pull request.
|
||||||
|
@ -398,6 +396,35 @@ found [here](https://github.com/containers/common/blob/main/CODE-OF-CONDUCT.md).
|
||||||
|
|
||||||
### Bot Interactions
|
### Bot Interactions
|
||||||
|
|
||||||
RamaLama uses [sourcery.ai](https://sourcery.ai/) for AI code reviews.
|
The primary human-interface is through comments in pull-requests.
|
||||||
|
Some of these are outlined below, along with their meaning and intended usage.
|
||||||
|
Some of them require the comment author hold special privileges on the github repository.
|
||||||
|
Others can be used by anyone.
|
||||||
|
|
||||||
You can read their docs [here](https://docs.sourcery.ai/Code-Review/#interacting-with-sourcery) on how to interact with the bot.
|
* ``/close``: Closes an issue or PR.
|
||||||
|
|
||||||
|
* ``/approve``: Mark a PR as appropriate to the project, and as close to meeting
|
||||||
|
met all the contribution criteria above. Adds the *approved* label, marking
|
||||||
|
it as ready for review and possible future merging.
|
||||||
|
|
||||||
|
* ``/lgtm``: A literal "Stamp of approval", signaling okay-to-merge. This causes
|
||||||
|
the bot to ad the *lgtm* label, then attempt a merge. In other words - Never,
|
||||||
|
ever, ever comment ``/lgtm``, unless a PR has actually, really, been fully
|
||||||
|
reviewed. The bot isn't too smart about these things, and could merge
|
||||||
|
unintentionally. Instead, just write ``LGTM``, or
|
||||||
|
spell it out.
|
||||||
|
|
||||||
|
* ``/hold`` and ``/unhold``: Override the automatic handling of a request. Either
|
||||||
|
put it on hold (no handling) or remove the hold (normal handling).
|
||||||
|
|
||||||
|
* ``[ci skip]``: [Adding `[ci skip]` within the HEAD commit](https://cirrus-ci.org/guide/writing-tasks/#conditional-task-execution)
|
||||||
|
will cause Cirrus CI to ***NOT*** execute tests for the PR or after merge. This
|
||||||
|
is useful in only one instance: Your changes are absolutely not exercised by
|
||||||
|
any test. For example, documentation changes. ***IMPORTANT NOTE*** **Other
|
||||||
|
automation may interpret the lack of test results as "PASSED" and unintentional
|
||||||
|
merge a PR. Consider also using `/hold` in a comment, to add additional
|
||||||
|
protection.**
|
||||||
|
|
||||||
|
[The complete list may be found on the command-help page.](https://prow.k8s.io/command-help)
|
||||||
|
However, not all commands are implemented for this repository.
|
||||||
|
If in doubt, ask a maintainer.
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
include README.md LICENSE
|
|
||||||
include shortnames/shortnames.conf
|
|
||||||
include docs/*.1
|
|
||||||
include docs/*.5
|
|
||||||
include docs/*.7
|
|
||||||
recursive-include completions *
|
|
||||||
recursive-include libexec *
|
|
122
Makefile
122
Makefile
|
@ -8,10 +8,7 @@ PYTHON ?= $(shell command -v python3 python|head -n1)
|
||||||
DESTDIR ?= /
|
DESTDIR ?= /
|
||||||
PATH := $(PATH):$(HOME)/.local/bin
|
PATH := $(PATH):$(HOME)/.local/bin
|
||||||
IMAGE ?= ramalama
|
IMAGE ?= ramalama
|
||||||
PROJECT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
GPU ?= cpu
|
||||||
PYTHON_SCRIPTS := $(shell grep -lEr "^\#\!\s*/usr/bin/(env +)?python(3)?(\s|$$)" --exclude-dir={.venv,venv} $(PROJECT_DIR) || true)
|
|
||||||
PYTEST_COMMON_CMD ?= PYTHONPATH=. pytest test/unit/ -vv
|
|
||||||
BATS_IMAGE ?= localhost/bats:latest
|
|
||||||
|
|
||||||
default: help
|
default: help
|
||||||
|
|
||||||
|
@ -22,8 +19,14 @@ help:
|
||||||
@echo " - make build IMAGE=ramalama"
|
@echo " - make build IMAGE=ramalama"
|
||||||
@echo " - make multi-arch"
|
@echo " - make multi-arch"
|
||||||
@echo " - make multi-arch IMAGE=ramalama"
|
@echo " - make multi-arch IMAGE=ramalama"
|
||||||
@echo " Build using build cache, for development only"
|
@echo
|
||||||
@echo " - make build IMAGE=ramalama CACHE=-C"
|
@echo "Build RAG Container Image"
|
||||||
|
@echo
|
||||||
|
@echo " - make build-rag IMAGE=quay.io/ramalama/ramalama GPU=ramalama"
|
||||||
|
@echo
|
||||||
|
@echo "Build Docling Container Image"
|
||||||
|
@echo
|
||||||
|
@echo " - make build-docling IMAGE=quay.io/ramalama/ramalama GPU=ramalama"
|
||||||
@echo
|
@echo
|
||||||
@echo "Build docs"
|
@echo "Build docs"
|
||||||
@echo
|
@echo
|
||||||
|
@ -42,17 +45,10 @@ help:
|
||||||
@echo " - make clean"
|
@echo " - make clean"
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
install-detailed-cov-requirements:
|
|
||||||
pip install ".[cov-detailed]"
|
|
||||||
|
|
||||||
.PHONY: install-cov-requirements
|
|
||||||
install-cov-requirements:
|
|
||||||
pip install ".[cov]"
|
|
||||||
|
|
||||||
.PHONY: install-requirements
|
.PHONY: install-requirements
|
||||||
install-requirements:
|
install-requirements:
|
||||||
./install-uv.sh
|
pipx install black flake8 argcomplete wheel huggingface_hub codespell
|
||||||
pip install ".[dev]"
|
|
||||||
|
|
||||||
.PHONY: install-completions
|
.PHONY: install-completions
|
||||||
install-completions: completions
|
install-completions: completions
|
||||||
|
@ -62,9 +58,9 @@ install-completions: completions
|
||||||
install ${SELINUXOPT} -d -m 755 $(DESTDIR)${SHAREDIR}/fish/vendor_completions.d
|
install ${SELINUXOPT} -d -m 755 $(DESTDIR)${SHAREDIR}/fish/vendor_completions.d
|
||||||
install ${SELINUXOPT} -m 644 completions/fish/vendor_completions.d/ramalama.fish \
|
install ${SELINUXOPT} -m 644 completions/fish/vendor_completions.d/ramalama.fish \
|
||||||
$(DESTDIR)${SHAREDIR}/fish/vendor_completions.d/ramalama.fish
|
$(DESTDIR)${SHAREDIR}/fish/vendor_completions.d/ramalama.fish
|
||||||
install ${SELINUXOPT} -d -m 755 $(DESTDIR)${SHAREDIR}/zsh/site-functions
|
install ${SELINUXOPT} -d -m 755 $(DESTDIR)${SHAREDIR}/zsh/site
|
||||||
install ${SELINUXOPT} -m 644 completions/zsh/site-functions/_ramalama \
|
install ${SELINUXOPT} -m 644 completions/zsh/vendor-completions/_ramalama \
|
||||||
$(DESTDIR)${SHAREDIR}/zsh/site-functions/_ramalama
|
$(DESTDIR)${SHAREDIR}/zsh/vendor-completions/_ramalama
|
||||||
|
|
||||||
.PHONY: install-shortnames
|
.PHONY: install-shortnames
|
||||||
install-shortnames:
|
install-shortnames:
|
||||||
|
@ -80,8 +76,8 @@ completions:
|
||||||
mkdir -p completions/fish/vendor_completions.d
|
mkdir -p completions/fish/vendor_completions.d
|
||||||
register-python-argcomplete --shell fish ramalama > completions/fish/vendor_completions.d/ramalama.fish
|
register-python-argcomplete --shell fish ramalama > completions/fish/vendor_completions.d/ramalama.fish
|
||||||
|
|
||||||
mkdir -p completions/zsh/site-functions
|
mkdir -p completions/zsh/vendor-completions
|
||||||
-register-python-argcomplete --shell zsh ramalama > completions/zsh/site-functions/_ramalama
|
-register-python-argcomplete --shell zsh ramalama > completions/zsh/vendor-completions/_ramalama
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install: docs completions
|
install: docs completions
|
||||||
|
@ -90,15 +86,23 @@ install: docs completions
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build:
|
build:
|
||||||
./container_build.sh ${CACHE} build $(IMAGE) -v "$(VERSION)"
|
./container_build.sh build $(IMAGE)
|
||||||
|
|
||||||
.PHONY: build-rm
|
.PHONY: build-rm
|
||||||
build-rm:
|
build-rm:
|
||||||
./container_build.sh ${CACHE} -r build $(IMAGE) -v "$(VERSION)"
|
./container_build.sh -r build $(IMAGE)
|
||||||
|
|
||||||
.PHONY: build_multi_arch
|
.PHONY: build_multi_arch
|
||||||
build_multi_arch:
|
build_multi_arch:
|
||||||
./container_build.sh ${CACHE} multi-arch $(IMAGE) -v "$(VERSION)"
|
./container_build.sh multi-arch $(IMAGE)
|
||||||
|
|
||||||
|
.PHONY: build-rag
|
||||||
|
build-rag:
|
||||||
|
podman build --build-arg IMAGE=${IMAGE} --build-arg GPU=${GPU} -t ${IMAGE}-rag container-images/pragmatic
|
||||||
|
|
||||||
|
.PHONY: build-docling
|
||||||
|
build-docling:
|
||||||
|
podman build --build-arg IMAGE=${IMAGE} --build-arg CONTENT=docling --build-arg GPU=${GPU} -t ${IMAGE}-docling container-images/pragmatic
|
||||||
|
|
||||||
.PHONY: install-docs
|
.PHONY: install-docs
|
||||||
install-docs: docs
|
install-docs: docs
|
||||||
|
@ -110,27 +114,12 @@ docs:
|
||||||
|
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
lint:
|
lint:
|
||||||
ifneq (,$(wildcard /usr/bin/python3))
|
black --line-length 120 --exclude 'venv/*' *.py ramalama/*.py # Format the code
|
||||||
/usr/bin/python3 -m compileall -q .
|
flake8 --max-line-length=120 --exclude=venv *.py ramalama/*.py # Check for any inconsistencies
|
||||||
endif
|
|
||||||
|
|
||||||
! grep -ri --exclude-dir ".venv" --exclude-dir "*/.venv" "#\!/usr/bin/python3" .
|
|
||||||
flake8 $(PROJECT_DIR) $(PYTHON_SCRIPTS)
|
|
||||||
shellcheck *.sh */*.sh */*/*.sh
|
|
||||||
|
|
||||||
.PHONY: check-format
|
|
||||||
check-format:
|
|
||||||
black --check --diff $(PROJECT_DIR) $(PYTHON_SCRIPTS)
|
|
||||||
isort --check --diff $(PROJECT_DIR) $(PYTHON_SCRIPTS)
|
|
||||||
|
|
||||||
.PHONY: format
|
|
||||||
format:
|
|
||||||
black $(PROJECT_DIR) $(PYTHON_SCRIPTS)
|
|
||||||
isort $(PROJECT_DIR) $(PYTHON_SCRIPTS)
|
|
||||||
|
|
||||||
.PHONY: codespell
|
.PHONY: codespell
|
||||||
codespell:
|
codespell:
|
||||||
codespell -w $(PROJECT_DIR) $(PYTHON_SCRIPTS)
|
codespell --dictionary=- -w --skip="*/venv*"
|
||||||
|
|
||||||
.PHONY: test-run
|
.PHONY: test-run
|
||||||
test-run:
|
test-run:
|
||||||
|
@ -138,7 +127,7 @@ test-run:
|
||||||
_RAMALAMA_OPTIONS=--nocontainer _RAMALAMA_TEST=local bats -T test/system/030-run.bats
|
_RAMALAMA_OPTIONS=--nocontainer _RAMALAMA_TEST=local bats -T test/system/030-run.bats
|
||||||
|
|
||||||
.PHONY: validate
|
.PHONY: validate
|
||||||
validate: codespell lint check-format
|
validate: codespell lint
|
||||||
ifeq ($(OS),Linux)
|
ifeq ($(OS),Linux)
|
||||||
hack/man-page-checker
|
hack/man-page-checker
|
||||||
hack/xref-helpmsgs-manpages
|
hack/xref-helpmsgs-manpages
|
||||||
|
@ -163,62 +152,15 @@ bats-nocontainer:
|
||||||
bats-docker:
|
bats-docker:
|
||||||
_RAMALAMA_TEST_OPTS=--engine=docker RAMALAMA=$(CURDIR)/bin/ramalama bats -T test/system/
|
_RAMALAMA_TEST_OPTS=--engine=docker RAMALAMA=$(CURDIR)/bin/ramalama bats -T test/system/
|
||||||
|
|
||||||
.PHONY: bats-image
|
|
||||||
bats-image:
|
|
||||||
podman inspect $(BATS_IMAGE) &> /dev/null || \
|
|
||||||
podman build -t $(BATS_IMAGE) -f container-images/bats/Containerfile .
|
|
||||||
|
|
||||||
bats-in-container: extra-opts = --security-opt unmask=/proc/* --device /dev/net/tun --device /dev/fuse
|
|
||||||
|
|
||||||
%-in-container: bats-image
|
|
||||||
podman run -it --rm \
|
|
||||||
--userns=keep-id:size=200000 \
|
|
||||||
--security-opt label=disable \
|
|
||||||
--security-opt=mask=/sys/bus/pci/drivers/i915 \
|
|
||||||
$(extra-opts) \
|
|
||||||
-v $(CURDIR):/src \
|
|
||||||
$(BATS_IMAGE) make $*
|
|
||||||
|
|
||||||
.PHONY: ci
|
.PHONY: ci
|
||||||
ci:
|
ci:
|
||||||
test/ci.sh
|
test/ci.sh
|
||||||
|
|
||||||
.PHONY: unit-tests
|
.PHONY: test
|
||||||
unit-tests:
|
test: validate bats bats-nocontainer ci
|
||||||
$(PYTEST_COMMON_CMD)
|
|
||||||
|
|
||||||
.PHONY: unit-tests-verbose
|
|
||||||
unit-tests-verbose:
|
|
||||||
$(PYTEST_COMMON_CMD) --full-trace --capture=tee-sys
|
|
||||||
|
|
||||||
.PHONY: cov-run
|
|
||||||
cov-run: install-cov-requirements
|
|
||||||
PYTHONPATH=. coverage run -m pytest test/unit/
|
|
||||||
|
|
||||||
.PHONY: cov-tests
|
|
||||||
cov-tests: cov-run
|
|
||||||
PYTHONPATH=. coverage report
|
|
||||||
|
|
||||||
.PHONY: detailed-cov-tests
|
|
||||||
detailed-cov-tests: install-detailed-cov-requirements cov-run
|
|
||||||
PYTHONPATH=. coverage report -m
|
|
||||||
PYTHONPATH=. coverage html
|
|
||||||
PYTHONPATH=. coverage json
|
|
||||||
PYTHONPATH=. coverage lcov
|
|
||||||
PYTHONPATH=. coverage xml
|
|
||||||
|
|
||||||
|
|
||||||
.PHONY: end-to-end-tests
|
|
||||||
end-to-end-tests: validate bats bats-nocontainer ci
|
|
||||||
make clean
|
make clean
|
||||||
hack/tree_status.sh
|
hack/tree_status.sh
|
||||||
|
|
||||||
.PHONY: test
|
|
||||||
test: tests
|
|
||||||
|
|
||||||
.PHONY: tests
|
|
||||||
tests: unit-tests end-to-end-tests
|
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
@find . -name \*~ -delete
|
@find . -name \*~ -delete
|
||||||
|
|
92
bin/ramalama
92
bin/ramalama
|
@ -1,21 +1,101 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
import glob
|
||||||
|
import os
|
||||||
|
import errno
|
||||||
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def add_pipx_venvs_bin_to_path():
|
||||||
if not sys.stdout.isatty():
|
"""
|
||||||
sys.stdout.reconfigure(line_buffering=True)
|
Adds available pipx virtual environments bin directories to PATH.
|
||||||
|
This function looks for venv in ~/.local/pipx/venvs/ramalama/bin and
|
||||||
|
if it exists appends it to the environment variable PATH.
|
||||||
|
"""
|
||||||
|
pipx_bin_path = os.path.expanduser(f'~/.local/pipx/venvs/ramalama/bin')
|
||||||
|
if os.path.exists(pipx_bin_path):
|
||||||
|
os.environ["PATH"] += ":" + pipx_bin_path
|
||||||
|
|
||||||
|
|
||||||
|
def add_site_packages_to_syspath(base_path):
|
||||||
|
"""
|
||||||
|
Adds site-packages directories from a given base path to sys.path.
|
||||||
|
"""
|
||||||
|
python_version = f'{sys.version_info.major}.{sys.version_info.minor}'
|
||||||
|
search_pattern = os.path.expanduser(f'{base_path}/lib/python{python_version}/site-packages')
|
||||||
|
matched_paths = glob.glob(search_pattern)
|
||||||
|
if matched_paths:
|
||||||
|
for path in matched_paths:
|
||||||
|
sys.path.insert(0, path)
|
||||||
|
return
|
||||||
|
|
||||||
|
# Fallback to a more general pattern if the specific version doesn't match
|
||||||
|
search_pattern = os.path.expanduser(f'{base_path}/lib/python*/site-packages')
|
||||||
|
matched_paths = glob.glob(search_pattern)
|
||||||
|
if matched_paths:
|
||||||
|
for path in matched_paths:
|
||||||
|
sys.path.insert(0, path)
|
||||||
|
|
||||||
|
|
||||||
|
def main(args):
|
||||||
|
sharedirs = ["/opt/homebrew/share/ramalama", "/usr/local/share/ramalama", "/usr/share/ramalama"]
|
||||||
|
syspath = next((d for d in sharedirs if os.path.exists(d + "/ramalama/cli.py")), None)
|
||||||
|
if syspath:
|
||||||
|
sys.path.insert(0, syspath)
|
||||||
|
|
||||||
|
add_site_packages_to_syspath('~/.local/pipx/venvs/*')
|
||||||
|
add_site_packages_to_syspath('/usr/local')
|
||||||
|
add_pipx_venvs_bin_to_path()
|
||||||
sys.path.insert(0, './')
|
sys.path.insert(0, './')
|
||||||
try:
|
try:
|
||||||
import ramalama
|
import ramalama
|
||||||
except Exception:
|
except:
|
||||||
print(f"ramalama module not found in sys.path: {sys.path}", file=sys.stderr)
|
print(f"ramalama module not found in sys.path: {sys.path}", file=sys.stderr)
|
||||||
raise
|
raise
|
||||||
|
|
||||||
ramalama.cli.main()
|
parser, args = ramalama.init_cli()
|
||||||
|
|
||||||
|
# if autocomplete doesn't exist, just do nothing, don't break
|
||||||
|
try:
|
||||||
|
import argcomplete
|
||||||
|
|
||||||
|
argcomplete.autocomplete(parser)
|
||||||
|
except Exception:
|
||||||
|
None
|
||||||
|
|
||||||
|
if args.version:
|
||||||
|
return ramalama.print_version(args)
|
||||||
|
|
||||||
|
def eprint(e, exit_code):
|
||||||
|
ramalama.perror("Error: " + str(e).strip("'\""))
|
||||||
|
sys.exit(exit_code)
|
||||||
|
|
||||||
|
# Process CLI
|
||||||
|
try:
|
||||||
|
args.func(args)
|
||||||
|
except ramalama.HelpException:
|
||||||
|
parser.print_help()
|
||||||
|
except AttributeError as e:
|
||||||
|
parser.print_usage()
|
||||||
|
print("ramalama: requires a subcommand")
|
||||||
|
if args.debug:
|
||||||
|
raise e
|
||||||
|
except IndexError as e:
|
||||||
|
eprint(e, errno.EINVAL)
|
||||||
|
except KeyError as e:
|
||||||
|
eprint(e, 1)
|
||||||
|
except NotImplementedError as e:
|
||||||
|
eprint(e, errno.ENOTSUP)
|
||||||
|
except subprocess.CalledProcessError as e:
|
||||||
|
eprint(e, e.returncode)
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
sys.exit(0)
|
||||||
|
except ValueError as e:
|
||||||
|
eprint(e, errno.EINVAL)
|
||||||
|
except IOError as e:
|
||||||
|
eprint(e, errno.EIO)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main(sys.argv[1:])
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue