Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
itadventurer committed Jun 21, 2024
1 parent 63a3b6d commit b6b7777
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions cruisecontrol_ui/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
FROM nginx
FROM quay.io/strimzi/kafka:latest-kafka-3.7.0

ENV CRUISE_CONTROL_UI_VERSION=0.4.0
ENV NGINX_HOME=/usr/share/nginx/html/
ENV CC_UI_VERSION=0.4.0
ENV CC_UI_HOME=./cruise-control-ui/dist/

RUN curl -LO https://github.com/linkedin/cruise-control-ui/releases/download/v${CRUISE_CONTROL_UI_VERSION}/cruise-control-ui-${CRUISE_CONTROL_UI_VERSION}.tar.gz; \
tar xvfz cruise-control-ui-${CRUISE_CONTROL_UI_VERSION}.tar.gz -C ${NGINX_HOME} --strip-components=2; \
rm -f cruise-control-ui-${CRUISE_CONTROL_UI_VERSION}.tar.gz*; \
echo "dev,dev,/kafkacruisecontrol/" > "${NGINX_HOME}"static/config.csv;
USER root

EXPOSE 9090
RUN mkdir -p ${CC_UI_HOME}

RUN curl -LO https://github.com/linkedin/cruise-control-ui/releases/download/v${CC_UI_VERSION}/cruise-control-ui-${CC_UI_VERSION}.tar.gz; \
tar xvfz cruise-control-ui-${CC_UI_VERSION}.tar.gz -C ${CC_UI_HOME} --strip-components=2; \
rm -f cruise-control-ui-${CC_UI_VERSION}.tar.gz*; \
echo "dev,dev,/kafkacruisecontrol/" > "${CC_UI_HOME}"static/config.csv;

USER 1001

0 comments on commit b6b7777

Please sign in to comment.