feat: modernize application — source, platform artifacts, CI/CD
All checks were successful
Build and Publish TechDocs / build-and-publish (push) Successful in 59s
Build and Push to ACR / Build and Push (push) Successful in 4m41s

- chore: ingest source code

109 files from https://github.com/spring-projects/spring-petclinic
- feat: add platform deployment artifacts
- feat: add CI/CD workflow automation
This commit is contained in:
2026-07-08 18:23:34 +00:00
parent 6065b10704
commit aefb87c5c1
14 changed files with 859 additions and 452 deletions

View File

@@ -1,28 +1,32 @@
apiVersion: score.dev/v1b1
metadata:
name: demo-sunil-1
labels:
app: demo-sunil-1
containers:
main:
demo-sunil-1:
image: .
variables:
DATABASE_URL: "postgresql://${resources.db.username}:${resources.db.password}@${resources.db.host}:${resources.db.port}/${resources.db.name}"
COSMOS_ENDPOINT: "${resources.cosmos.endpoint}"
COSMOS_DATABASE: "${resources.cosmos.database_name}"
COSMOS_CONTAINER: "${resources.cosmos.container_name}"
service:
ports:
web:
port: 80
targetPort: 8080
SPRING_DATASOURCE_PASSWORD: ${resources.db.password}
SPRING_DATASOURCE_URL: jdbc:postgresql://${resources.db.host}:${resources.db.port}/${resources.db.name}
SPRING_DATASOURCE_USERNAME: ${resources.db.username}
OTEL_SERVICE_NAME: demo-sunil-1
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector.monitoring.svc.cluster.local:4318
OTEL_RESOURCE_ATTRIBUTES: app=demo-sunil-1
metadata:
annotations:
prometheus.io/path: /metrics
prometheus.io/port: '8080'
prometheus.io/scrape: 'true'
labels:
app: demo-sunil-1
backstage.io/kubernetes-id: demo-sunil-1
name: demo-sunil-1
resources:
env:
type: environment
db:
type: postgres
cosmos:
type: azure-cosmos-db
dns:
type: dns
env:
type: environment
service:
ports:
http:
port: 8080
targetPort: 8080