Changeset 52:a6c4c89d39c2

Updated builds
author unexist
date Wed, 25 Aug 2021 19:42:44 +0200
parents 6102987fc073
children 06d72c8459cc
files docker/docker-compose-extension.yaml docker/docker-compose-standalone.yaml transformer-debezium/docker/Dockerfile
diffstat 3 files changed, 21 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/docker/docker-compose-extension.yaml	Wed Aug 25 18:22:54 2021 +0200
+++ b/docker/docker-compose-extension.yaml	Wed Aug 25 19:42:44 2021 +0200
@@ -48,7 +48,7 @@
   # Install debezium-connect
   connect:
     container_name: connect-debezium
-    image: unexist/connect-debezium
+    image: docker.io/library/connect-debezium
     hostname: connect
     ports:
       - '8083:8083'
@@ -69,10 +69,6 @@
   create-topics:
     container_name: create-topics
     image: confluentinc/cp-kafka
-    command: bash -c "
-      kafka-topics \
-      --bootstrap-server kafka:29092 \
-      --create --topic todo_created --partitions 1 --replication-factor 1 \
-      --if-not-exists"
+    command: bash -c "kafka-topics --bootstrap-server kafka:29092 --create --topic todo_created --partitions 1 --replication-factor 1 --if-not-exists"
     depends_on:
       - kafka
\ No newline at end of file
--- a/docker/docker-compose-standalone.yaml	Wed Aug 25 18:22:54 2021 +0200
+++ b/docker/docker-compose-standalone.yaml	Wed Aug 25 19:42:44 2021 +0200
@@ -40,7 +40,7 @@
   # Install custom-connect
   connect:
     container_name: connect-standlone
-    image: unexist/connect-standalone
+    image: docker.io/library/connect-standalone
     hostname: connect
     ports:
       - '8083:8083'
@@ -57,11 +57,11 @@
   # Create topics
   create-topics:
     container_name: create-topics
-    image: unexist/connect-standlone
+    image: docker.io/library/connect-standlone
     command: bash -c "
       docker exec -t kafka /usr/bin/kafka-topics \
-      --bootstrap-server :9092 \
-      --create --topic todo_created --partitions 1 --replication-factor 1 \
+      --create --bootstrap-server :9092 \
+      --topic todo_created --partitions 1 --replication-factor 1 \
       --if-not-exists"
     depends_on:
       - kafka
\ No newline at end of file
--- a/transformer-debezium/docker/Dockerfile	Wed Aug 25 18:22:54 2021 +0200
+++ b/transformer-debezium/docker/Dockerfile	Wed Aug 25 19:42:44 2021 +0200
@@ -1,6 +1,17 @@
-FROM strimzi/kafka:0.20.0-kafka-2.6.0
-ENV KAFKA_CONNECT_PLUGIN_PATH=/tmp/connect-plugins
+FROM strimzi/kafka:0.20.1-kafka-2.6.0
+
+ENV KAFKA_CONNECT_PLUGIN_PATH=/opt/kafka/connect-plugins
+
+ENV DEBEZIUM_DIR=$KAFKA_CONNECT_PLUGIN_PATH/debezium-connector-postgres
+
+USER root
 
+# create plugin directory that is accessible by kafka user
 RUN mkdir $KAFKA_CONNECT_PLUGIN_PATH &&\
-    cd $KAFKA_CONNECT_PLUGIN_PATH &&\
-    curl -sfSL https://repo1.maven.org/maven2/io/debezium/debezium-connector-postgres/1.6.0.Beta2/debezium-connector-postgres-1.6.0.Beta2-plugin.tar.gz | tar xz
\ No newline at end of file
+    chmod u+w $KAFKA_CONNECT_PLUGIN_PATH &&\
+    chown kafka:root $KAFKA_CONNECT_PLUGIN_PATH
+
+USER 1001
+
+RUN cd $KAFKA_CONNECT_PLUGIN_PATH &&\
+    curl -sfSL https://repo1.maven.org/maven2/io/debezium/debezium-connector-postgres/1.6.1.Final/debezium-connector-postgres-1.6.1.Final-plugin.tar.gz | tar xz
\ No newline at end of file