build: 更新构建配置以包含数据库服务
All checks were successful
CI/CD Pipeline / build-and-deploy (push) Successful in 2m46s

- 在 build.gradle.kts 文件中添加 llmx-database服务到 entrypoint 配置- 修改 docker-compose.test.yml 文件中的容器名称,使用更通用的命名
This commit is contained in:
gewuyou 2025-05-10 14:39:53 +08:00
parent 549e4f3b97
commit 6794d1a0ef
2 changed files with 3 additions and 3 deletions

View File

@ -145,7 +145,7 @@ subprojects {
paths = listOf(File(rootProject.projectDir, "scripts").absolutePath) paths = listOf(File(rootProject.projectDir, "scripts").absolutePath)
entrypoint = listOf( entrypoint = listOf(
"/bin/sh", "-c", "/bin/sh", "-c",
"/entrypoint.sh -d llmx-nacos:8848 -c " + "/entrypoint.sh -d llmx-nacos:8848,llmx-database:9052 -c " +
"'java -cp $( cat /app/jib-classpath-file ) $( cat /app/jib-main-class-file )'" "'java -cp $( cat /app/jib-classpath-file ) $( cat /app/jib-main-class-file )'"
) )
} }
@ -157,7 +157,7 @@ subprojects {
paths = listOf(File(rootProject.projectDir, "scripts").absolutePath) paths = listOf(File(rootProject.projectDir, "scripts").absolutePath)
entrypoint = listOf( entrypoint = listOf(
"/bin/sh", "-c", "/bin/sh", "-c",
"/entrypoint.sh -d llmx-nacos:8848 -c " + "/entrypoint.sh -d llmx-nacos:8848,llmx-database:9052 -c " +
"'java -cp $( cat /app/jib-classpath-file ) $( cat /app/jib-main-class-file )'" "'java -cp $( cat /app/jib-classpath-file ) $( cat /app/jib-main-class-file )'"
) )
} }

View File

@ -44,7 +44,7 @@ services:
restart: always restart: always
llmx-core-database: llmx-core-database:
image: postgres:16-alpine # 长期支持版本推荐用 16 image: postgres:16-alpine # 长期支持版本推荐用 16
container_name: llmx-core-database container_name: llmx-database
restart: always restart: always
ports: ports:
- "9052:5432" - "9052:5432"