@@ -2,8 +2,8 @@ apiVersion: scaffolder.backstage.io/v1beta3
2
2
# https://backstage.io/docs/features/software-catalog/descriptor-format#kind-template
3
3
kind : Template
4
4
metadata :
5
- name : chatbot
6
- title : Chatbot Application
5
+ name : chatbot2
6
+ title : Chatbot Application 2
7
7
description : Build your own Large language model (LLM)-enabled chat application. Pick from the model servers available or bring your own.
8
8
tags : ["ai", "llamacpp", "vllm", "python"]
9
9
spec :
@@ -40,14 +40,14 @@ spec:
40
40
title : Model Server
41
41
description : |
42
42
llama.cpp: A Python binding of LLM inference in C/C++ with minimal setup. | [Learn more](https://github.com/containers/ai-lab-recipes/tree/main/model_servers/llamacpp_python)
43
-
43
+
44
44
vLLM: A high throughput, memory efficient inference and serving engine with GPU support for LLMs in OpenShift. If you choose vLLM, ensure that your cluster has Nvidia GPU supported (with compute capability 7.0 or higher). Also, it should have enough CPU & memory resources for the model you would like to work with. | [Learn more](https://github.com/rh-aiservices-bu/llm-on-openshift/tree/main/llm-servers/vllm/gpu)
45
45
default : llama.cpp
46
46
type : string
47
47
enum :
48
48
- vLLM
49
49
- llama.cpp
50
- # SED_LLM_SERVER_END
50
+ # SED_LLM_SERVER_END
51
51
- Existing model server
52
52
dependencies :
53
53
modelServer :
59
59
# SED_LLM_SERVER_END
60
60
properties :
61
61
modelServer :
62
- const : Existing model server
62
+ const : Existing model server
63
63
modelEndpoint :
64
64
title : Model Server Endpoint
65
65
type : string
@@ -150,7 +150,7 @@ spec:
150
150
- githubServer
151
151
properties :
152
152
hostType :
153
- const : GitHub
153
+ const : GitHub
154
154
githubServer :
155
155
title : Repository Server
156
156
type : string
@@ -160,7 +160,7 @@ spec:
160
160
- gitlabServer
161
161
properties :
162
162
hostType :
163
- const : GitLab
163
+ const : GitLab
164
164
gitlabServer :
165
165
title : Repository Server
166
166
type : string
@@ -222,7 +222,7 @@ spec:
222
222
appPort : 8501
223
223
appRunCommand : " streamlit run chatbot_ui.py"
224
224
modelServiceContainer : quay.io/ai-lab/llamacpp_python:latest
225
- modelServicePort : 8001
225
+ modelServicePort : 8001
226
226
# Renders all the template variables into the files and directory names and content, and places the result in the workspace.
227
227
- id : fetch-skeleton
228
228
name : Fetch Skeleton
@@ -233,14 +233,14 @@ spec:
233
233
values :
234
234
name : ${{ parameters.name }}
235
235
namespace : ${{ parameters.namespace }}
236
- description : Secure Supply Chain Example for Chatbot Application
236
+ description : Secure Supply Chain Example for Chatbot Application
237
237
dockerfile : Containerfile
238
238
buildContext : .
239
239
gitopsSecretName : ${{ 'gitops-auth-secret' if parameters.hostType === 'GitHub' else 'gitlab-auth-secret' }}
240
- image : ' ${{ parameters.imageRegistry }}/${{ parameters.imageOrg }}/${{ parameters.imageName }}'
240
+ image : " ${{ parameters.imageRegistry }}/${{ parameters.imageOrg }}/${{ parameters.imageName }}"
241
241
tags : ' ["ai", "llamacpp", "vllm", "python"]'
242
- owner : ${{ parameters.owner }}
243
- repoSlug : ' ${{ parameters.imageOrg }}/${{ parameters.imageName }}'
242
+ owner : ${{ parameters.owner }}
243
+ repoSlug : " ${{ parameters.imageOrg }}/${{ parameters.imageName }}"
244
244
defaultBranch : ${{ parameters.branch }}
245
245
- id : fetch-github-action
246
246
name : Fetch GitHub Action
@@ -256,7 +256,7 @@ spec:
256
256
if : ${{ parameters.hostType === 'GitHub' }}
257
257
input :
258
258
sourcePath : source
259
- allowedHosts : [ ' ${{ parameters.githubServer}}' ]
259
+ allowedHosts : [" ${{ parameters.githubServer}}" ]
260
260
description : This is ${{ parameters.name }}
261
261
repoUrl : ${{ parameters.githubServer }}?owner=${{ parameters.repoOwner }}&repo=${{ parameters.repoName }}
262
262
defaultBranch : ${{ parameters.branch }}
@@ -273,7 +273,7 @@ spec:
273
273
if : ${{ parameters.hostType === 'GitLab' }}
274
274
input :
275
275
sourcePath : source
276
- allowedHosts : [ ' ${{ parameters.gitlabServer }}' ]
276
+ allowedHosts : [" ${{ parameters.gitlabServer }}" ]
277
277
description : This is ${{ parameters.name }}
278
278
repoUrl : ${{ parameters.gitlabServer }}?owner=${{ parameters.repoOwner }}&repo=${{ parameters.repoName }}
279
279
defaultBranch : ${{ parameters.branch }}
@@ -296,11 +296,11 @@ spec:
296
296
# example: github.com?owner=<owner>&repo=<srcRepo>, the gitops repo name will be <srcRepo>-gitops
297
297
repoURL : https://${{ parameters.githubServer if parameters.hostType === 'GitHub' else parameters.gitlabServer }}/${{ parameters.repoOwner }}/${{ parameters.repoName }}-gitops
298
298
srcRepoURL : https://${{ parameters.githubServer if parameters.hostType === 'GitHub' else parameters.gitlabServer }}/${{ parameters.repoOwner }}/${{ parameters.repoName }}
299
- argoComponentOverlays : ' ./components/${{ parameters.name }}/overlays'
300
- owner : ${{ parameters.owner }}
299
+ argoComponentOverlays : " ./components/${{ parameters.name }}/overlays"
300
+ owner : ${{ parameters.owner }}
301
301
image : quay.io/redhat-appstudio/dance-bootstrap-app:latest # bootstrap app image as placeholder
302
302
# actual src image, should be used by tekton PR pipeline to update the image in gitops repo
303
- srcImage : ' ${{ parameters.imageRegistry }}/${{ parameters.imageOrg }}/${{ parameters.imageName }}'
303
+ srcImage : " ${{ parameters.imageRegistry }}/${{ parameters.imageOrg }}/${{ parameters.imageName }}"
304
304
argoNS : ai-rhdh
305
305
argoProject : default
306
306
secretRef : ${{ parameters.hostType === 'GitLab' }}
@@ -344,9 +344,9 @@ spec:
344
344
if : ${{ parameters.hostType === 'GitHub' }}
345
345
input :
346
346
sourcePath : gitops
347
- allowedHosts : [' ${{ parameters.githubServer }}' ]
347
+ allowedHosts : [" ${{ parameters.githubServer }}" ]
348
348
description : This is GitOps repository for ${{ parameters.name }}
349
- repoUrl : ${{ parameters.githubServer }}?owner=${{ parameters.repoOwner }}&repo=${{ parameters.repoName }}-gitops
349
+ repoUrl : ${{ parameters.githubServer }}?owner=${{ parameters.repoOwner }}&repo=${{ parameters.repoName }}-gitops
350
350
defaultBranch : " main"
351
351
protectDefaultBranch : false
352
352
repoVisibility : " public"
@@ -357,29 +357,29 @@ spec:
357
357
if : ${{ parameters.hostType === 'GitLab' }}
358
358
input :
359
359
sourcePath : gitops
360
- allowedHosts : [' ${{ parameters.gitlabServer }}' ]
360
+ allowedHosts : [" ${{ parameters.gitlabServer }}" ]
361
361
description : This is GitOps repository for ${{ parameters.name }}
362
- repoUrl : ${{ parameters.gitlabServer }}?owner=${{ parameters.repoOwner }}&repo=${{ parameters.repoName }}-gitops
362
+ repoUrl : ${{ parameters.gitlabServer }}?owner=${{ parameters.repoOwner }}&repo=${{ parameters.repoName }}-gitops
363
363
defaultBranch : " main"
364
364
protectDefaultBranch : false
365
365
repoVisibility : " public"
366
366
- id : wait-for-github-repository
367
367
name : Waiting for Repository Availability
368
- action : ' debug:wait'
368
+ action : " debug:wait"
369
369
input :
370
370
seconds : 3
371
371
- id : register
372
372
name : Register
373
373
action : catalog:register
374
374
input :
375
375
repoContentsUrl : ${{ steps['publish-github'].output.repoContentsUrl if steps['publish-github'].output else steps['publish-gitlab'].output.repoContentsUrl }}
376
- catalogInfoPath : ' /catalog-info.yaml'
376
+ catalogInfoPath : " /catalog-info.yaml"
377
377
- id : register-gitops
378
378
name : Register Gitops
379
379
action : catalog:register
380
380
input :
381
381
repoContentsUrl : ${{ steps['publish-github-gitops'].output.repoContentsUrl if steps['publish-github-gitops'].output else steps['publish-gitlab-gitops'].output.repoContentsUrl }}
382
- catalogInfoPath : ' /catalog-info.yaml'
382
+ catalogInfoPath : " /catalog-info.yaml"
383
383
- id : create-argocd-resources
384
384
name : Create ArgoCD Resources
385
385
action : argocd:create-resources
@@ -389,7 +389,7 @@ spec:
389
389
argoInstance : default
390
390
namespace : ai-rhdh
391
391
repoUrl : https://${{ parameters.githubServer if parameters.hostType === 'GitHub' else parameters.gitlabServer }}/${{ parameters.repoOwner }}/${{ parameters.repoName }}-gitops.git
392
- path : ' ./app-of-apps'
392
+ path : " ./app-of-apps"
393
393
# PR with empty commit
394
394
- id : trigger-build-pr
395
395
name : PR to Trigger Pipeline Build
@@ -412,10 +412,8 @@ spec:
412
412
repoUrl : ${{ parameters.githubServer }}?owner=${{ parameters.repoOwner }}&repo=${{ parameters.repoName }}
413
413
branchOrTagName : ${{ parameters.branch }}
414
414
workflowId : automerge.yml
415
- workflowInputs : {
416
- pr_url : " ${{ steps['trigger-build-pr'].output.remoteUrl }}"
417
- }
418
-
415
+ workflowInputs :
416
+ { pr_url: "${{ steps['trigger-build-pr'].output.remoteUrl }}" }
419
417
420
418
# Outputs are displayed to the user after a successful execution of the template.
421
419
output :
@@ -429,4 +427,4 @@ spec:
429
427
entityRef : ${{ steps['register'].output.entityRef }}
430
428
- title : Open GitOps Resource in Catalog
431
429
icon : catalog
432
- entityRef : ${{ steps['register-gitops'].output.entityRef }}
430
+ entityRef : ${{ steps['register-gitops'].output.entityRef }}
0 commit comments