Add docker-compose support to sample-imperative-produce-consume app (#505)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '3.2.0-SNAPSHOT'
|
||||
id 'io.spring.dependency-management' version '1.1.0'
|
||||
id 'org.springframework.boot' version '3.2.1-SNAPSHOT'
|
||||
id 'io.spring.dependency-management' version '1.1.4'
|
||||
}
|
||||
|
||||
description = 'Spring Pulsar Sample (Imperative Produce and Consume)'
|
||||
@@ -12,19 +12,21 @@ repositories {
|
||||
maven { url 'https://repo.spring.io/snapshot' }
|
||||
}
|
||||
|
||||
ext['spring-pulsar.version'] = '${project.version}'
|
||||
|
||||
dependencies {
|
||||
implementation "org.springframework.boot:spring-boot-starter-pulsar:${springBootVersion}"
|
||||
implementation 'org.springframework.boot:spring-boot-starter-pulsar'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-actuator'
|
||||
implementation 'io.micrometer:micrometer-tracing-bridge-brave'
|
||||
implementation 'io.zipkin.reporter2:zipkin-reporter-brave'
|
||||
implementation 'io.zipkin.reporter2:zipkin-sender-urlconnection'
|
||||
|
||||
developmentOnly 'org.springframework.boot:spring-boot-docker-compose'
|
||||
testImplementation project(':spring-pulsar-test')
|
||||
testRuntimeOnly 'ch.qos.logback:logback-classic'
|
||||
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
||||
testImplementation 'org.awaitility:awaitility'
|
||||
testImplementation "org.springframework.boot:spring-boot-starter-test:${springBootVersion}"
|
||||
testImplementation "org.springframework.boot:spring-boot-testcontainers:${springBootVersion}"
|
||||
testImplementation "org.springframework.boot:spring-boot-starter-test"
|
||||
testImplementation "org.springframework.boot:spring-boot-testcontainers"
|
||||
testImplementation 'org.testcontainers:junit-jupiter'
|
||||
testImplementation 'org.testcontainers:pulsar'
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
services:
|
||||
pulsar:
|
||||
image: 'apachepulsar/pulsar:3.1.1'
|
||||
ports:
|
||||
- '6650'
|
||||
- '8080'
|
||||
command: 'bin/pulsar standalone'
|
||||
@@ -6,3 +6,6 @@ spring:
|
||||
topic-name: bar-topic
|
||||
schema-info:
|
||||
schema-type: JSON
|
||||
docker:
|
||||
compose:
|
||||
file: spring-pulsar-sample-apps/sample-imperative-produce-consume/compose.yaml
|
||||
|
||||
Reference in New Issue
Block a user