Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
##
## SPDX-License-Identifier: Apache-2.0
## Stage 1 : unpack fat-jar
FROM amazoncorretto:21 as builder
FROM amazoncorretto:21 AS builder

USER root
COPY build/libs/arc-spring-init-1.0.0.jar /deployments/app.jar
COPY build/libs/arc-spring-init-0.1.0.jar /deployments/app.jar
WORKDIR /deployments
RUN java -Djarmode=layertools -jar app.jar extract
# Ensure that the snapshot-dependencies folder is created even if there were no snapshot dependencies in the jar file (to avoid error when copying from that directory below)
Expand All @@ -22,6 +22,6 @@ COPY --from=builder /deployments/application/ ./
COPY config ./config
COPY agents ./agents

EXPOSE 8080
EXPOSE 9090
EXPOSE 9094
EXPOSE 9095
ENTRYPOINT ["java", "org.springframework.boot.loader.launch.JarLauncher"]
3 changes: 2 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ tasks.withType<Test> {
}

dependencies {
val arcVersion = "0.154.0"
val arcVersion = "0.179.0"
val langchain4jVersion = "0.36.2"

// Arc
Expand All @@ -50,6 +50,7 @@ dependencies {

// Azure
implementation("com.azure:azure-identity:1.15.4")
implementation("io.opentelemetry:opentelemetry-extension-kotlin:1.54.1")

// Spring Boot
implementation("org.springframework.boot:spring-boot-starter-actuator")
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# // SPDX-License-Identifier: Apache-2.0
#

version=0.1.0-SNAPSHOT
version=0.1.0
kotlin.code.style=official
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx4096M
org.gradle.caching=true
Expand Down
10 changes: 8 additions & 2 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spring:
enabled: true

server:
port: 8080
port: 9095

arc:
#mcp:
Expand All @@ -40,6 +40,12 @@ arc:
subscriptions:
events:
enable: true
ai:
clients:
- id: GPT-4o
model-name: gpt-4o
api-key: ${OPENAI_API_KEY}
client: openai

logging:
level:
Expand All @@ -57,7 +63,7 @@ management:
sampling:
probability: 1.0
server:
port: 9090
port: 9094
endpoints:
web:
base-path: /
Expand Down