Skip to content

Commit b1d9182

Browse files
committed
feat: Add support for custom root certificates in Java keystore
1 parent 5d18e31 commit b1d9182

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

api/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ RUN apk add --no-cache \
1111
RUN addgroup -S kafkaui && adduser -S kafkaui -G kafkaui
1212

1313
# creating folder for dynamic config usage (certificates uploads, etc)
14-
RUN mkdir /etc/kafkaui/
14+
RUN mkdir -p /etc/kafkaui/certs
15+
COPY ./import-certs.sh /usr/local/bin/import-certs.sh
16+
RUN chmod +x /usr/local/bin/import-certs.sh
17+
1518
RUN chown kafkaui /etc/kafkaui
1619

1720
USER kafkaui
@@ -24,4 +27,4 @@ ENV JAVA_OPTS=
2427
EXPOSE 8080
2528

2629
# see JmxSslSocketFactory docs to understand why add-opens is needed
27-
CMD java --add-opens java.rmi/javax.rmi.ssl=ALL-UNNAMED $JAVA_OPTS -jar api.jar
30+
CMD ["sh", "-c", "/usr/local/bin/import-certs.sh && java --add-opens java.rmi/javax.rmi.ssl=ALL-UNNAMED $JAVA_OPTS -jar api.jar"]

0 commit comments

Comments
 (0)