ARG VERSION=7.5.1 FROM confluentinc/cp-kafka-connect:${VERSION} USER root COPY cruise-control /opt/cruise-control/ WORKDIR /opt/cruise-control RUN wget -O - https://github.com/linkedin/cruise-control-ui/releases/download/v0.4.0/cruise-control-ui-0.4.0.tar.gz | tar -xzv 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 ENTRYPOINT [ "/opt/cruise-control/run.sh" ] CMD [ "config/cruisecontrol.properties" ]