From 35cd433ccf48e149f1a2f479a0528c8372d9b49a Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 8 Oct 2023 22:31:06 +0200 Subject: [PATCH] =?utf8?q?Service=20`cruise-control-ui`=20erg=C3=A4nzt:=20?= =?utf8?q?Scheitert=20noch=20an=20CORS?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- README.sh | 1 + docker/config.csv | 1 + docker/docker-compose.yml | 7 +++++++ 3 files changed, 9 insertions(+) create mode 100644 docker/config.csv diff --git a/README.sh b/README.sh index fa8a4c7..f0bd1a8 100755 --- a/README.sh +++ b/README.sh @@ -11,6 +11,7 @@ git submodule update --init cruise-control || exit 1 (cd cruise-control; ./gradlew jar) || exit 1 (cd docker; ln -sf ../cruise-control/cruise-control-metrics-reporter/build/libs/cruise-control-metrics-reporter-*.jar cruise-control-metrics-reporter.jar) docker build -t juplo/cruise-control . +docker build -t juplo/cruise-control-ui cruise-control-ui docker-compose -f docker/docker-compose.yml up --remove-orphans setup || exit 1 docker-compose -f docker/docker-compose.yml ps diff --git a/docker/config.csv b/docker/config.csv new file mode 100644 index 0000000..7b09636 --- /dev/null +++ b/docker/config.csv @@ -0,0 +1 @@ +dev,juplo,http://localhost:9090/kafkacruisecontrol/ diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 900001b..5fb1d3d 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -214,6 +214,13 @@ services: - kafka-2 - kafka-3 + cruise-control-ui: + image: juplo/cruise-control-ui + volumes: + - ./config.csv:/usr/share/nginx/html/static/config.csv + ports: + - "9080:80" + producer: image: juplo/endless-stream-spring-producer:1.0-SNAPSHOT environment: -- 2.20.1