Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Commit c16dec4

Browse files
committed
fix missing tzdata with new sonarscanner version
1 parent 1770986 commit c16dec4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build/package/Dockerfile.sonar

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ FROM registry.access.redhat.com/ubi8/ubi-minimal:8.4
3636
ENV SONAR_EDITION="community" \
3737
JAVA_HOME=/usr/lib/jvm/jre-11
3838

39-
RUN microdnf install --nodocs java-11-openjdk-headless which && microdnf clean all
39+
RUN microdnf install --nodocs java-11-openjdk-headless tzdata-java which && microdnf clean all
40+
# tzdata-java was missing unless explicitly installed: see https://stackoverflow.com/a/76848186
4041

4142
COPY --from=builder /usr/local/bin/sonar /usr/local/bin/sonar
4243
COPY --from=builder /usr/local/sonar-scanner-cli /usr/local/sonar-scanner-cli

0 commit comments

Comments
 (0)