CORS für die cruise-control-ui konfiguriert - _Hilft nicht :/_
[demos/kafka/training] / Dockerfile
index 6ec7b58..c3009a2 100644 (file)
@@ -5,6 +5,7 @@ COPY cruise-control /opt/cruise-control/
 WORKDIR /opt/cruise-control
 ENV BOOTSTRAP_SERVERS=localhost:9092
 ENV ZOOKEEPER_CONNECT=localhost:2181
-RUN echo -e '#!/bin/bash\n sed -ie "s+^bootstrap\.servers=.*$+bootstrap.servers=${BOOTSTRAP_SERVERS}+;s+^zookeeper\.connect=.*$+zookeeper.connect=${ZOOKEEPER_CONNECT}+" config/cruisecontrol.properties\nexec ./kafka-cruise-control-start.sh "$@"' > run.sh; chmod a+x run.sh
+ENV CORS_ORIGIN=localhost:8080
+RUN echo -e '#!/bin/bash\n sed -ie "s+^bootstrap\.servers=.*$+bootstrap.servers=${BOOTSTRAP_SERVERS}+;s+^zookeeper\.connect=.*$+zookeeper.connect=${ZOOKEEPER_CONNECT}+;s+^webserver\.http\.cors\.enabled=.*$+webserver.http.cors.enabled=true+;s+webserver\.http\.cors\.origin=.*+webserver.http.cors.origin=${CORS_ORIGIN}+" config/cruisecontrol.properties\nexec ./kafka-cruise-control-start.sh "$@"' > run.sh; chmod a+x run.sh
 ENTRYPOINT [ "/opt/cruise-control/run.sh" ]
 CMD [ "config/cruisecontrol.properties" ]