Skip to content

Commit e31ef15

Browse files
committed
build: Improve commit stage workflow
1 parent 316d1af commit e31ef15

File tree

4 files changed

+33
-16
lines changed

4 files changed

+33
-16
lines changed

demo-catalog/templates/spring-boot-ai-service/base/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
id 'java'
3-
id 'org.springframework.boot' version '3.4.0-RC1'
3+
id 'org.springframework.boot' version '3.5.0-M3'
44
id 'io.spring.dependency-management' version '1.1.7'
55
id 'org.cyclonedx.bom' version '2.2.0'
66
id 'org.sonarqube' version '6.1.0.5360'

demo-catalog/templates/spring-boot-ai-service/base/src/main/resources/application.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ spring:
2929
pull-model-strategy: when_missing
3030
chat:
3131
options:
32-
model: phi4:latest
32+
model: smollm2
3333
num-ctx: 4096
3434
temperature: 0.7
3535
embedding:
@@ -54,6 +54,9 @@ spring:
5454
include-query-response: true
5555
{%- if values.vectorStore == "postgresql" %}
5656
pgvector:
57+
{%- if values.llmProvider == "mistralai" %}
58+
dimensions: 1024
59+
{%- endif %}
5760
{%- if values.llmProvider == "ollama" %}
5861
dimensions: 768
5962
{%- endif %}
@@ -66,3 +69,17 @@ management:
6669
web:
6770
exposure:
6871
include: "*"
72+
73+
arconia:
74+
dev:
75+
services:
76+
lgtm:
77+
image-name: grafana/otel-lgtm:0.9.1
78+
{%- if values.llmProvider == "ollama" %}
79+
ollama:
80+
image-name: ollama/ollama:0.6.3
81+
{%- endif %}
82+
{%- if values.vectorStore == "postgresql" %}
83+
postgresql:
84+
image-name: pgvector/pgvector:pg17
85+
{%- endif %}

demo-catalog/templates/spring-boot-ai-service/base/src/test/java/${{values.basePackageDir}}/ApplicationTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
import org.junit.jupiter.api.Test;
44
import org.springframework.boot.test.context.SpringBootTest;
5+
import org.springframework.test.context.TestPropertySource;
56

67
@SpringBootTest
8+
@TestPropertySource(properties = "arconia.dev.services.ollama.enabled=true")
79
class ApplicationTests {
810

911
@Test

demo-catalog/templates/spring-boot-ai-service/template.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ apiVersion: scaffolder.backstage.io/v1beta3
22
kind: Template
33
metadata:
44
name: spring-ai-rag
5-
title: Spring AI Service
6-
description: Spring Boot using Java and Gradle with Spring AI integration to build LLM-powered applications with RAG and tools.
5+
title: Spring AI RAG Service
6+
description: Java application using Spring AI to integrate with LLMs, vector stores, and tools.
77
annotations:
88
backstage.io/time-saved: PT12H
99
tags:
@@ -72,9 +72,9 @@ spec:
7272
groupId:
7373
title: Group
7474
type: string
75-
description: Maven Group ID (e.g. io.kadras)
75+
description: Maven Group ID (e.g. io.arconia)
7676
ui:autofocus: true
77-
default: io.kadras
77+
default: io.arconia
7878
artifactId:
7979
title: Artifact
8080
type: string
@@ -83,8 +83,8 @@ spec:
8383
basePackage:
8484
title: Base Package
8585
type: string
86-
description: Base name for the Java package (e.g. io.kadras.demo)
87-
default: io.kadras.demo
86+
description: Base name for the Java package (e.g. io.arconia.demo)
87+
default: io.arconia.demo
8888

8989
- title: Application Dependencies
9090
required:
@@ -97,28 +97,24 @@ spec:
9797
ui:autofocus: true
9898
default: mistral-ai
9999
enum:
100-
- anthropic
100+
- hugging-face
101101
- mistral-ai
102102
- ollama
103-
- openai
104103
enumNames:
105-
- "Anthropic"
104+
- "Hugging Face"
106105
- "Mistral AI"
107106
- "Ollama"
108-
- "OpenAI"
109107
vectorStore:
110108
title: Vector Store
111109
type: string
112110
description: Choose the vector store to integrate with
113111
default: postgresql
114112
enum:
115-
- chroma
116113
- postgresql
117-
- weaviate
114+
- sqlite
118115
enumNames:
119-
- "ChromaDB"
120116
- "PostgreSQL"
121-
- "Weaviate"
117+
- "SQLite"
122118

123119
- title: Deployment Information
124120
required:
@@ -170,6 +166,7 @@ spec:
170166
gitAuthorName: ${{ user.entity.spec.profile.displayName }}
171167
gitAuthorEmail: ${{ user.entity.spec.profile.email }}
172168
gitCommitMessage: "Initial commit"
169+
protectEnforceAdmins: false
173170
repoVisibility: public
174171
requireBranchesToBeUpToDate: true
175172
requiredCommitSigning: true
@@ -181,6 +178,7 @@ spec:
181178
- ai
182179
- large-language-models
183180
- retrieval-augmented-generation
181+
- rag
184182

185183
- id: register
186184
name: Register Catalog Entity

0 commit comments

Comments
 (0)