Skip to content

Commit

Permalink
Merge branch 'master' into localization_for_cn
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinB1eber authored Sep 6, 2023
2 parents 229d7e2 + a4f15fb commit 03a299c
Showing 1 changed file with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,23 @@ fun Project.createStackDeployTask(profile: String) {
| MINIO_ROOT_USER: admin
| MINIO_ROOT_PASSWORD: adminadmin
|
| minio-startup:
| image: minio/mc:latest
| depends_on:
| - minio
| entrypoint:
| - /bin/sh
| - -c
| - |
| /usr/bin/mc alias set minio http://minio:9000 admin adminadmin
| /usr/bin/mc mb --ignore-existing minio/cnb
| /usr/bin/mc policy set public minio/cnb
| /usr/bin/mc cp --recursive /data/ minio/cnb/cnb/files
| volumes:
| - type: bind
| source: ${project.rootProject.layout.projectDirectory.asFile}/save-backend/src/test/resources/minio
| target: /data
|
|${declareDexService().prependIndent(" ")}
""".trimMargin()
} else if (profile == "dev" && it.trim().startsWith("logging:")) {
Expand Down Expand Up @@ -272,7 +289,7 @@ fun Project.createStackDeployTask(profile: String) {
dependsOn(kafkaTaskName)
}

val minioTaskName = registerService("minio", MINIO_STARTUP_DELAY_MILLIS)
val minioTaskName = registerService("minio-startup", MINIO_STARTUP_DELAY_MILLIS, "startMinioService")
tasks.register("startMinio") {
dependsOn(minioTaskName)
}
Expand Down

0 comments on commit 03a299c

Please sign in to comment.