Web-UI `CMAK` installiert config/cmak
authorKai Moritz <kai@juplo.de>
Tue, 24 Oct 2023 19:53:40 +0000 (21:53 +0200)
committerKai Moritz <kai@juplo.de>
Fri, 27 Oct 2023 09:30:20 +0000 (11:30 +0200)
docker/Dockerfile [new file with mode: 0644]
docker/README.sh [new file with mode: 0755]
docker/docker-compose.yml

diff --git a/docker/Dockerfile b/docker/Dockerfile
new file mode 100644 (file)
index 0000000..6b9f3b4
--- /dev/null
@@ -0,0 +1,13 @@
+FROM openjdk:11
+ARG CMAK_VERSION=3.0.0.6
+LABEL AUTHOR="Kai Moritz"
+LABEL AUTHOR_EMAIL="kai@juplo.de"
+ENV ZK_HOSTS=localhost:2181
+RUN cd /tmp && \
+    wget https://github.com/yahoo/CMAK/releases/download/$CMAK_VERSION/cmak-$CMAK_VERSION.zip && \
+    unzip -d /opt/ cmak-$CMAK_VERSION.zip && \
+    rm -v cmak-$CMAK_VERSION.zip
+WORKDIR /opt/cmak-${CMAK_VERSION}
+EXPOSE 9000
+ENTRYPOINT [ "./bin/cmak" ]
+CMD [ "-Dconfig.file=conf/application.conf" ]
diff --git a/docker/README.sh b/docker/README.sh
new file mode 100755 (executable)
index 0000000..7739622
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+CMAK_VERSION=3.0.0.6
+
+docker build --build-arg=CMAK_VERSION=$CMAK_VERSION -t juplo/cmak:$CMAK_VERSION .
+docker tag juplo/cmak:$CMAK_VERSION juplo/cmak
index aa37d8e..fda5f23 100644 (file)
@@ -190,22 +190,12 @@ services:
     depends_on:
       - zookeeper
 
-  akhq:
-    image: tchiotludo/akhq:0.23.0
+  cmak:
+    image: juplo/cmak:3.0.0.6
     ports:
-      - 8888:8080
+      - 8888:9000
     environment:
-      AKHQ_CONFIGURATION: |
-        akhq:
-          connections:
-            docker-kafka-server:
-              properties:
-                bootstrap.servers: "kafka:9092"
-              schema-registry:
-                url: "http://schema-registry:8085"
-              connect:
-                - name: "connect"
-                  url: "http://connect:8083"
+      ZK_HOSTS: zookeeper:2181
     depends_on:
       - kafka-1
       - kafka-2