Skip to content

Commit 3afa734

Browse files
committed
Updated the docker example to test the confluent archive
1 parent a3fba34 commit 3afa734

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ tasks.register<Zip>("createConfluentArchive") {
411411
description = "Creates the Confluent Archive zipfile to be uploaded to the Confluent Hub"
412412
dependsOn("prepareConfluentArchive")
413413
from(files("$buildDir/confluentArchive"))
414-
archiveBaseName.set("mongodb")
414+
archiveBaseName.set("")
415415
archiveAppendix.set("kafka-connect-mongodb")
416416
archiveVersion.set(project.version.toString())
417417
destinationDirectory.set(file("$buildDir/confluent"))

docker/docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ services:
7272
CONNECT_STATUS_STORAGE_REPLICATION_FACTOR: "1"
7373
CONNECT_PLUGIN_PATH: /usr/local/share/kafka/plugins
7474
volumes:
75-
- ../build/libs/:/usr/local/share/kafka/plugins/
75+
- ../build/confluent/kafka-connect-mongodb:/usr/local/share/kafka/plugins/
7676
depends_on:
7777
- zookeeper
7878
- kafka

docker/run.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
echo "Building the MongoDB Kafka Connector"
44
(
55
cd ..
6-
./gradlew clean shadowJar
6+
./gradlew clean createConfluentArchive
7+
echo -e "Unzipping the confluent archive plugin....\n"
8+
unzip -d ./build/confluent/kafka-connect-mongodb ./build/confluent/*.zip
79
)
810

911
echo "Starting docker ."

0 commit comments

Comments
 (0)