Skip to content

Commit 2dadb71

Browse files
authored
Merge pull request #22 from double16/cruise-control-ui
Add Kafka Cruise Control UI
2 parents 396d756 + 4e7a700 commit 2dadb71

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

cruise-control/Dockerfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,28 @@ RUN mv -v /home/gradle/cruise-control/cruise-control/build/libs/cruise-control-$
1010
RUN mv -v /home/gradle/cruise-control/cruise-control/build/dependant-libs/cruise-control-metrics-reporter-${VERSION}.jar \
1111
/home/gradle/cruise-control/cruise-control/build/dependant-libs/cruise-control-metrics-reporter.jar
1212

13+
FROM node:10.15
14+
RUN mkdir /src && cd /src && git clone https://github.com/linkedin/cruise-control-ui.git
15+
WORKDIR /src/cruise-control-ui
16+
RUN git checkout dfc257cecb59f1be703ddb0ff3ce8522c9b3685f
17+
RUN npm install
18+
RUN npm run build
19+
1320
# The container is made to work with github.com/Yolean/kubernetes-kafka, so we try to use a common base
1421
FROM solsson/jdk-opensource:11.0.2@sha256:9088fd8eff0920f6012e422cdcb67a590b2a6edbeae1ff0ca8e213e0d4260cf8
1522
ARG SOURCE_REF
1623
ARG SOURCE_TYPE
1724
ARG DOCKERFILE_PATH
1825
ARG VERSION
1926

20-
RUN mkdir -p /opt/cruise-control
27+
RUN mkdir -p /opt/cruise-control /opt/cruise-control/cruise-control-ui
2128
COPY --from=0 /home/gradle/cruise-control/cruise-control/build/libs/cruise-control.jar /opt/cruise-control/cruise-control/build/libs/cruise-control.jar
2229
COPY --from=0 /home/gradle/cruise-control/config /opt/cruise-control/config
2330
COPY --from=0 /home/gradle/cruise-control/kafka-cruise-control-start.sh /opt/cruise-control/
2431
COPY --from=0 /home/gradle/cruise-control/cruise-control/build/dependant-libs /opt/cruise-control/cruise-control/build/dependant-libs
2532
COPY opt/cruise-control /opt/cruise-control/
33+
COPY --from=1 /src/cruise-control-ui/dist /opt/cruise-control/cruise-control-ui/dist
34+
RUN echo "local,localhost,/kafkacruisecontrol" > /opt/cruise-control/cruise-control-ui/dist/static/config.csv
2635

2736
EXPOSE 8090
2837
CMD [ "/opt/cruise-control/start.sh" ]

0 commit comments

Comments
 (0)