File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -10,19 +10,28 @@ RUN mv -v /home/gradle/cruise-control/cruise-control/build/libs/cruise-control-$
1010RUN 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
1421FROM solsson/jdk-opensource:11.0.2@sha256:9088fd8eff0920f6012e422cdcb67a590b2a6edbeae1ff0ca8e213e0d4260cf8
1522ARG SOURCE_REF
1623ARG SOURCE_TYPE
1724ARG DOCKERFILE_PATH
1825ARG VERSION
1926
20- RUN mkdir -p /opt/cruise-control
27+ RUN mkdir -p /opt/cruise-control /opt/cruise-control/cruise-control-ui
2128COPY --from=0 /home/gradle/cruise-control/cruise-control/build/libs/cruise-control.jar /opt/cruise-control/cruise-control/build/libs/cruise-control.jar
2229COPY --from=0 /home/gradle/cruise-control/config /opt/cruise-control/config
2330COPY --from=0 /home/gradle/cruise-control/kafka-cruise-control-start.sh /opt/cruise-control/
2431COPY --from=0 /home/gradle/cruise-control/cruise-control/build/dependant-libs /opt/cruise-control/cruise-control/build/dependant-libs
2532COPY 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
2736EXPOSE 8090
2837CMD [ "/opt/cruise-control/start.sh" ]
You can’t perform that action at this time.
0 commit comments