File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,13 @@ RUN addgroup -S kafkaui && adduser -S kafkaui -G kafkaui
1212
1313# creating folder for dynamic config usage (certificates uploads, etc)
1414RUN mkdir -p /etc/kafkaui/certs
15- RUN for cert in /etc/kafkaui/certs/*.crt; do \
16- keytool -import -noprompt -trustcacerts -alias $(basename $cert .crt) -file $cert -keystore $JAVA_HOME/lib/security/cacerts -storepass changeit; \
17- done
15+ RUN if ls /etc/kafkaui/certs/*.crt 1> /dev/null 2>&1; then \
16+ for cert in /etc/kafkaui/certs/*.crt; do \
17+ keytool -import -noprompt -trustcacerts -alias $(basename $cert .crt) -file $cert -keystore $JAVA_HOME/lib/security/cacerts -storepass changeit; \
18+ done \
19+ else \
20+ echo "No certificates found in /etc/kafkaui/certs/" ; \
21+ fi
1822
1923RUN chown kafkaui /etc/kafkaui
2024
You can’t perform that action at this time.
0 commit comments