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

Commit 5d78d3c

Browse files
committed
sonar-scanner java needs tzdb.dat
1 parent 4858539 commit 5d78d3c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ listed in the changelog.
1717

1818
- sonar-scanner invocations stderr not captured ([#719](https://github.com/opendevstack/ods-pipeline/issues/719))
1919

20+
- sonar-scanner does not start properly: java is lacking tzdb.dat ([#723](https://github.com/opendevstack/ods-pipeline/issues/723))
21+
2022
## [0.13.2] - 2023-07-18
2123

2224
### Fixed

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)