Compare commits

...

68 Commits
v0.4.0 ... main

Author SHA1 Message Date
Jeff MAURY 99bbc94348
chore: reset content as those images are not used anymore (#122) 2025-05-19 09:26:43 +02:00
renovate[bot] e85acc66a1
chore(deps): update registry.access.redhat.com/ubi9/python-311 docker tag to v9.5-1747058512 (#118)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-12 23:40:53 +02:00
renovate[bot] bb893d5b78
chore(deps): update registry.access.redhat.com/ubi9/python-311 docker tag to v9.5-1746539270 (#117)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-07 08:15:51 +02:00
renovate[bot] e396602c2f
chore(deps): update dependency pip to v25.1.1 (#116)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-02 21:35:35 +02:00
renovate[bot] 943227cfd1
chore(deps): update registry.access.redhat.com/ubi9/python-311 docker tag to v9.5-1745945598 (#115)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-30 07:08:24 +02:00
renovate[bot] 3b5a11ebf0
chore(deps): update registry.access.redhat.com/ubi9-minimal docker tag to v9.5-1745855087 (#114)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-28 21:52:13 +02:00
renovate[bot] 6c8eeeb731
chore(deps): update dependency pip to v25.1 (#113)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-28 08:10:56 +02:00
renovate[bot] 1c362731e7
chore(deps): update registry.access.redhat.com/ubi9/python-311 docker tag to v9.5-1745330958 (#112)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-23 09:13:32 +02:00
renovate[bot] 477c9bed82
chore(deps): update registry.access.redhat.com/ubi9/python-311 docker tag to v9.5-1744097391 (#111)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-08 19:16:49 +02:00
renovate[bot] 4b6652c24b
chore(deps): update registry.access.redhat.com/ubi9/python-311 docker tag to v9.5-1743582312 (#110)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-03 08:54:19 +02:00
renovate[bot] 1e9c385485
chore(deps): update registry.access.redhat.com/ubi9/python-311 docker tag to v9.5-1743079393 (#109)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-29 17:02:08 +01:00
renovate[bot] bbc031fdb5
chore(deps): update registry.access.redhat.com/ubi9/python-311 docker tag to v9.5-1742996850 (#108)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-27 09:19:58 +01:00
renovate[bot] 68d06a0d82
chore(deps): update registry.access.redhat.com/ubi9/python-311 docker tag to v9.5-1742890420 (#106)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-26 10:08:02 +01:00
renovate[bot] 5e388b6699
chore(deps): update registry.access.redhat.com/ubi9-minimal docker tag to v9.5-1742914212 (#107)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-26 10:05:46 +01:00
renovate[bot] d062690d6f
chore(deps): update registry.access.redhat.com/ubi9/python-311 docker tag to v9.5-1742198934 (#105)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-17 14:54:01 +01:00
renovate[bot] d1dae62ea2
chore(deps): update registry.access.redhat.com/ubi9-minimal docker tag to v9.5-1741850109 (#104)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-13 15:39:01 +01:00
renovate[bot] f1ad3e7936
chore(deps): update registry.access.redhat.com/ubi9/python-311 docker tag to v9.5-1741671866 (#103)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-11 14:29:13 +01:00
renovate[bot] 274ff0845b
chore(deps): update registry.access.redhat.com/ubi9-minimal docker tag to v9.5-1741599792 (#102)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-10 12:18:46 +00:00
renovate[bot] 8f4a9ccbd3
chore(deps): update registry.access.redhat.com/ubi9/python-311 docker tag to v9.5-1741020859 (#101)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-05 09:54:46 +01:00
renovate[bot] 3c9ad15235
chore(deps): update registry.access.redhat.com/ubi9/python-311 docker tag to v9.5-1741002173 (#100)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-04 11:35:44 +01:00
renovate[bot] d2ce3fde6e chore(deps): update registry.access.redhat.com/ubi9-minimal docker tag to v9.5-1739420147 2025-02-13 07:42:24 +01:00
renovate[bot] 210fc3a954 chore(deps): update registry.access.redhat.com/ubi9-minimal docker tag to v9.5-1738816775 2025-02-09 20:09:14 +01:00
renovate[bot] da3eaa659c chore(deps): update dependency pip to v25.0.1 2025-02-09 20:08:59 +01:00
renovate[bot] baf7d715b1
chore(deps): update registry.access.redhat.com/ubi9-minimal docker tag to v9.5-1738643652 (#93)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-05 08:55:05 +01:00
renovate[bot] 5c57cf1190 chore(deps): update registry.access.redhat.com/ubi9/python-311 docker tag to v9.5-1737537151 2025-01-26 18:07:28 +01:00
renovate[bot] caf5c24803 chore(deps): update dependency pip to v25 2025-01-26 18:07:06 +01:00
renovate[bot] 2526949467
chore(deps): update registry.access.redhat.com/ubi9-minimal docker tag to v9.5-1736404155 (#90)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-09 10:02:43 +00:00
renovate[bot] a103cd302a
chore(deps): update registry.access.redhat.com/ubi9/python-311 docker tag to v9.5-1736353526 (#89)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-09 10:44:33 +01:00
renovate[bot] 416a402b82
chore(deps): update registry.access.redhat.com/ubi9/python-311 docker tag to v9.5-1734610704 (#88)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-20 15:08:25 +01:00
renovate[bot] 520ea22cb1
chore(deps): update registry.access.redhat.com/ubi9/python-311 docker tag to v9.5-1734553278 (#86)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-19 08:49:23 +01:00
renovate[bot] 8dc551eef0 chore(deps): update registry.access.redhat.com/ubi9-minimal docker tag to v9.5-1734497536 2024-12-19 07:50:54 +01:00
renovate[bot] cb27373e11
chore(deps): update registry.access.redhat.com/ubi9-minimal docker tag to v9.5-1733767867 (#85)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-10 09:03:14 +01:00
Jeff MAURY ad0b3ec9e5
fix: update image to support usage info (#81)
* fix: update image to support usage info

Signed-off-by: Jeff MAURY <jmaury@redhat.com>

* fix: use rebase instead of apply

Signed-off-by: Jeff MAURY <jmaury@redhat.com>

* fix: fix setup file

Signed-off-by: Jeff MAURY <jmaury@redhat.com>

* fix: add gitignore

Signed-off-by: Jeff MAURY <jmaury@redhat.com>

* fix: update git info

Signed-off-by: Jeff MAURY <jmaury@redhat.com>

---------

Signed-off-by: Jeff MAURY <jmaury@redhat.com>
2024-12-06 13:27:22 +01:00
renovate[bot] 5b637db4e8
chore(deps): update registry.access.redhat.com/ubi9/python-311 docker tag to v9.5-1733172699 (#84)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-04 16:09:56 +01:00
Jeff MAURY bd7faa1033 fix: fix renovate/registry.access.redhat.com-ubi9-python-311-9.x (#82)
Signed-off-by: Jeff MAURY <jmaury@redhat.com>
2024-11-29 16:07:59 +01:00
renovate[bot] 908751f1ee chore(deps): update registry.access.redhat.com/ubi9/python-311 docker tag to v9 2024-11-29 16:07:59 +01:00
dependabot[bot] 4143020fdf build(deps): Bump llama-cpp-python[server] from 0.3.1 to 0.3.2
Bumps [llama-cpp-python[server]](https://github.com/abetlen/llama-cpp-python) from 0.3.1 to 0.3.2.
- [Release notes](https://github.com/abetlen/llama-cpp-python/releases)
- [Changelog](https://github.com/abetlen/llama-cpp-python/blob/main/CHANGELOG.md)
- [Commits](https://github.com/abetlen/llama-cpp-python/compare/v0.3.1...v0.3.2)

---
updated-dependencies:
- dependency-name: llama-cpp-python[server]
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-18 11:47:18 +01:00
renovate[bot] d51dbef760 chore(deps): update registry.access.redhat.com/ubi9-minimal docker tag to v9.5-1731604394 2024-11-18 09:59:48 +01:00
Jeff MAURY 03df1e1d0c
fix: AMD Vulkan build is failing (#80)
Fixes #79

Signed-off-by: Jeff MAURY <jmaury@redhat.com>
2024-11-18 08:10:12 +00:00
renovate[bot] 20dc744c6e chore(deps): update registry.access.redhat.com/ubi9/python-311 docker tag to v1-77.1729776556 2024-11-06 19:01:58 +01:00
renovate[bot] 3fae2edd7a
chore(deps): update registry.access.redhat.com/ubi9/python-311 docker tag to v1-77.1729767833 (#72)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-29 21:51:36 +01:00
dependabot[bot] 765690a014
build(deps): Bump pip from 24.2 to 24.3.1 (#69)
Bumps [pip](https://github.com/pypa/pip) from 24.2 to 24.3.1.
- [Changelog](https://github.com/pypa/pip/blob/main/NEWS.rst)
- [Commits](https://github.com/pypa/pip/commits)

---
updated-dependencies:
- dependency-name: pip
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-28 13:56:34 +00:00
Jeff MAURY d86e3941a0
fix: ARM Vulkan build is failing (#71)
Fixes #70

Signed-off-by: Jeff MAURY <jmaury@redhat.com>
2024-10-28 13:32:50 +00:00
renovate[bot] 1278ddd373
chore(deps): update registry.access.redhat.com/ubi9/python-311 docker tag to v1-77.1726696860 (#66)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-17 09:39:28 +02:00
Jeff MAURY 8b24f9da20
fix: release workflow is broken since several images (#63)
Fixes #62

Signed-off-by: Jeff MAURY <jmaury@redhat.com>
2024-10-14 13:51:51 +02:00
Jeff MAURY a4abefab3b
fix: Vulkan ARM64 build broken (#65)
Fixes #64

Signed-off-by: Jeff MAURY <jmaury@redhat.com>
2024-10-14 08:10:17 +02:00
dependabot[bot] 79cf63f5ce
build(deps): Bump llama-cpp-python[server] from 0.3.0 to 0.3.1 (#60)
Bumps [llama-cpp-python[server]](https://github.com/abetlen/llama-cpp-python) from 0.3.0 to 0.3.1.
- [Release notes](https://github.com/abetlen/llama-cpp-python/releases)
- [Changelog](https://github.com/abetlen/llama-cpp-python/blob/main/CHANGELOG.md)
- [Commits](https://github.com/abetlen/llama-cpp-python/compare/v0.3.0...v0.3.1)

---
updated-dependencies:
- dependency-name: llama-cpp-python[server]
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-30 08:17:05 +02:00
renovate[bot] bcbdfd3daa chore(deps): update dependency ubuntu to v24 2024-09-27 00:04:02 +02:00
renovate[bot] e54ec79e51 chore(deps): update dependency llama-cpp-python to v0.3.0 2024-09-25 21:41:17 +02:00
Jeff MAURY f531f3f4a8
chore: update to llama cpp python server 0.2.90 (#53)
* build(deps): Bump llama-cpp-python[server] from 0.2.79 to 0.2.88

Bumps [llama-cpp-python[server]](https://github.com/abetlen/llama-cpp-python) from 0.2.79 to 0.2.88.
- [Release notes](https://github.com/abetlen/llama-cpp-python/releases)
- [Changelog](https://github.com/abetlen/llama-cpp-python/blob/main/CHANGELOG.md)
- [Commits](https://github.com/abetlen/llama-cpp-python/compare/v0.2.79...v0.2.88)

---
updated-dependencies:
- dependency-name: llama-cpp-python[server]
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: update Vulkan buid

Signed-off-by: Jeff MAURY <jmaury@redhat.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Jeff MAURY <jmaury@redhat.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-24 08:46:37 +02:00
renovate[bot] c054e55066 chore(deps): update registry.access.redhat.com/ubi9-minimal docker tag to v9.4-1227.1726694542 2024-09-23 19:07:38 +02:00
renovate[bot] ee81766133 chore(deps): update registry.access.redhat.com/ubi9/python-311 docker tag to v1-77.1726664316 2024-09-23 19:07:23 +02:00
renovate[bot] 2982ef3dd2
chore(deps): update registry.access.redhat.com/ubi9/python-311 docker tag to v1-77.1725907703 (#51)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-16 10:50:04 +00:00
renovate[bot] 5268d5cea4
chore(deps): update registry.access.redhat.com/ubi9-minimal docker tag to v9.4-1227.1725849298 (#50)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-10 17:00:28 +02:00
renovate[bot] 8b982e18ac
chore(deps): update registry.access.redhat.com/ubi9-minimal docker tag to v9.4-1227 (#49)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-10 10:28:27 +02:00
Luca Stocchi 3ab12d0b98
fix: revert llama cpp python server (#44)
Signed-off-by: lstocchi <lstocchi@redhat.com>
2024-08-12 12:04:26 +02:00
renovate[bot] 62b6f628ed
chore(deps): update registry.access.redhat.com/ubi9/python-311 docker tag to v1-72.1722518949 (#39)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-02 08:40:58 +02:00
renovate[bot] deccf13222
chore(deps): update dependency llama-cpp-python to v0.2.85 (#38)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-31 16:58:04 +00:00
Jeff MAURY 05a6fdeda6
feat: provide CUDA image for AMD64 (#37)
* feat: provide CUDA image for AMD64

Fixes #36

Signed-off-by: Jeff MAURY <jmaury@redhat.com>

* fix: apply reviews from @benoitf and @lstocchi

Signed-off-by: Jeff MAURY <jmaury@redhat.com>
2024-07-31 16:45:59 +02:00
dependabot[bot] c39f6d6be8
build(deps): Bump pip from 24.0 to 24.2 (#35)
Bumps [pip](https://github.com/pypa/pip) from 24.0 to 24.2.
- [Changelog](https://github.com/pypa/pip/blob/main/NEWS.rst)
- [Commits](https://github.com/pypa/pip/compare/24.0...24.2)

---
updated-dependencies:
- dependency-name: pip
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-30 08:25:03 +02:00
renovate[bot] 023f67cc4f
chore(deps): update registry.access.redhat.com/ubi9/python-311 docker tag to v1-72 (#33)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-29 19:59:26 +02:00
Luca Stocchi ef689a9ee3
feat: add vulkan images (#22)
* feat: add vulkan images

Signed-off-by: lstocchi <lstocchi@redhat.com>

* fix: remove archs from name and convert dockerfile in multi-staged

Signed-off-by: lstocchi <lstocchi@redhat.com>

* fix: update image name

Signed-off-by: lstocchi <lstocchi@redhat.com>

* fix: merge all jobs into one

Signed-off-by: lstocchi <lstocchi@redhat.com>

---------

Signed-off-by: lstocchi <lstocchi@redhat.com>
2024-07-29 19:18:52 +02:00
renovate[bot] 946b290aa2
chore(deps): update dependency llama-cpp-python to v0.2.84 (#31)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-29 09:29:38 +02:00
renovate[bot] c332b87706
chore(deps): update registry.access.redhat.com/ubi9-minimal docker tag to v9.4-1194 (#30)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-24 10:51:10 +02:00
renovate[bot] e7cfcae91d
chore(deps): update dependency llama-cpp-python to v0.2.83 (#28)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-23 00:36:16 -04:00
renovate[bot] dbcd9ab302
chore(deps): update registry.access.redhat.com/ubi9-minimal docker tag to v9.4-1134 (#26)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-19 13:37:46 +02:00
renovate[bot] 8a28c5f197
Add renovate.json (#23)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-19 13:28:05 +02:00
dependabot[bot] b50d77887f
build(deps): Bump llama-cpp-python[server] from 0.2.79 to 0.2.82 (#25)
Bumps [llama-cpp-python[server]](https://github.com/abetlen/llama-cpp-python) from 0.2.79 to 0.2.82.
- [Release notes](https://github.com/abetlen/llama-cpp-python/releases)
- [Changelog](https://github.com/abetlen/llama-cpp-python/blob/main/CHANGELOG.md)
- [Commits](https://github.com/abetlen/llama-cpp-python/compare/v0.2.79...v0.2.82)

---
updated-dependencies:
- dependency-name: llama-cpp-python[server]
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-19 13:27:28 +02:00
8 changed files with 7 additions and 288 deletions

View File

@ -1,71 +0,0 @@
---
#
# Copyright (C) 2024 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
name: Build and publish the playground image
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
name: Build image
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install qemu dependency
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
- name: Build Playground Image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: ai-lab-playground-chat
tags: nightly ${{ github.sha }}
containerfiles: |
./chat/Containerfile
context: ./chat
oci: true
archs: amd64, arm64
- name: Echo Outputs
run: |
echo "Image: ${{ steps.build-image.outputs.image }}"
echo "Tags: ${{ steps.build-image.outputs.tags }}"
echo "Tagged Image: ${{ steps.build-image.outputs.image-with-tag }}"
- name: Login to ghcr.io
uses: redhat-actions/podman-login@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push To ghcr.io
id: push-to-ghcr
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: ghcr.io/${{ github.repository_owner }}/podman-desktop-extension-ai-lab-playground-images

View File

@ -1,52 +0,0 @@
---
#
# Copyright (C) 2024 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
name: Build the playground image
on: [pull_request]
jobs:
build:
name: Build image
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install qemu dependency
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
- name: Build Playground Image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: ai-studio-playground-chat
tags: ${{ github.sha }}
containerfiles: |
./chat/Containerfile
context: ./chat
oci: true
archs: amd64, arm64
- name: Echo Outputs
run: |
echo "Image: ${{ steps.build-image.outputs.image }}"
echo "Tags: ${{ steps.build-image.outputs.tags }}"
echo "Tagged Image: ${{ steps.build-image.outputs.image-with-tag }}"

View File

@ -1,112 +0,0 @@
#
# Copyright (C) 2024 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
name: release
on:
workflow_dispatch:
inputs:
version:
description: 'Version to release'
required: true
branch:
description: 'Branch to use for the release'
required: true
default: main
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch }}
- name: Generate tag utilities
id: TAG_UTIL
run: |
TAG_PATTERN=${{ github.event.inputs.version }}
echo "githubTag=v$TAG_PATTERN" >> ${GITHUB_OUTPUT}
echo "imageVersion=$TAG_PATTERN" >> ${GITHUB_OUTPUT}
echo "imageVersionShort=${TAG_PATTERN%.*}" >> ${GITHUB_OUTPUT}
- name: tag
run: |
git config --local user.name ${{ github.actor }}
echo "Tagging with ${{ steps.TAG_UTIL.outputs.githubTag }}"
git tag ${{ steps.TAG_UTIL.outputs.githubTag }}
git push origin ${{ steps.TAG_UTIL.outputs.githubTag }}
- name: Create Release
id: create_release
uses: ncipollo/release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: ${{ steps.TAG_UTIL.outputs.githubTag }}
name: ${{ steps.TAG_UTIL.outputs.githubTag }}
draft: true
prerelease: false
- name: Install qemu dependency
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
- name: Build Playground Image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: ai-lab-playground-chat
tags: latest ${{ steps.TAG_UTIL.outputs.imageVersion }} ${{ steps.TAG_UTIL.outputs.imageVersionShort }}
labels: io.podman.ai-lab.version=${{ steps.TAG_UTILS.outputs.imageVersion }}
containerfiles: |
./chat/Containerfile
context: ./chat
oci: true
archs: amd64, arm64
- name: Login to ghcr.io
uses: redhat-actions/podman-login@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push To ghcr.io
id: push-to-ghcr
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: ghcr.io/${{ github.repository_owner }}/podman-desktop-extension-ai-lab-playground-images
- name: id
run: echo the release id is ${{ needs.tag.outputs.releaseId}}
- name: Publish release
uses: StuYarrow/publish-release@v1.1.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
id: ${{ steps.create_release.outputs.id}}

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
llama-cpp-python

View File

@ -1,28 +0,0 @@
#
# Copyright (C) 2024 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
FROM registry.access.redhat.com/ubi9-minimal:9.3-1552
RUN microdnf install -y python3 python3-pip gcc g++ shadow-utils && microdnf clean all
RUN useradd -r -g root -m -d /home/default -s /bin/bash default
WORKDIR /home/default
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
USER default
COPY run.sh run.sh
EXPOSE 8000
ENTRYPOINT [ "sh", "run.sh" ]

View File

@ -1 +0,0 @@
llama-cpp-python[server]==0.2.79

View File

@ -1,24 +0,0 @@
#!/bin/bash
#
# Copyright (C) 2024 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
if [ ${MODEL_PATH} ]; then
python -m llama_cpp.server --model ${MODEL_PATH} --host ${HOST:=0.0.0.0} --port ${PORT:=8001} --n_gpu_layers ${GPU_LAYERS:=0} --clip_model_path ${CLIP_MODEL_PATH:=None} --chat_format ${MODEL_CHAT_FORMAT:="llama-2"}
exit 0
fi
echo "This image should not be used outside of Podman Desktop AI Lab extension. Missing required MODEL_PATH environment variable."
exit 1

6
renovate.json Normal file
View File

@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
]
}