From: Kai Moritz Date: Tue, 24 Oct 2023 19:53:40 +0000 (+0200) Subject: Web-UI `CMAK` installiert X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fconfig%2Fcmak;p=demos%2Fkafka%2Ftraining Web-UI `CMAK` installiert --- diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..6b9f3b4 --- /dev/null +++ b/docker/Dockerfile @@ -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 index 0000000..7739622 --- /dev/null +++ b/docker/README.sh @@ -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 diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index aa37d8e..fda5f23 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -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