X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;f=docker%2FDockerfile;h=c3009a26cf30992561e6047f3d34555d1447571c;hb=676f0aa9ac44aed00b18601033aa2182c5366e17;hp=6ec7b58db7991ed59593020de798ad7fb9965144;hpb=41992a8da4f5ff3df5edc49f95c5994f71f9102f;p=demos%2Fkafka%2Ftraining diff --git a/docker/Dockerfile b/docker/Dockerfile index 6ec7b58..c3009a2 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -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" ]