Skip to content

Commit

Permalink
chore(sonar): bump CLI from 5.0.1.3006 to 6.1.0.4477
Browse files Browse the repository at this point in the history
  • Loading branch information
mremi committed Aug 20, 2024
1 parent f8574f1 commit 92beabc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Versions

2024-08-31
----------
* Sonar: bumping Sonar CLI from 5.0.1.3006 to 6.1.0.4477
* Platform : adding git. Bumping platform-cli version.

2024-07-31
Expand Down
15 changes: 10 additions & 5 deletions sonar/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
FROM alpine:3.20.2
FROM alpine:3.20.2 as base
LABEL maintainer="[email protected]"

ARG SONARSCANNER_VERSION
ARG GLIBC_VERSION
ARG ZLIB_VERSION

ENV PATH=/sonar-scanner/bin:/sonar-scanner/jre/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

ARG GLIBC_VERSION
ARG SONARSCANNER_VERSION
ARG ZLIB_VERSION
FROM base as base-amd64
ARG SONARSCANNER_ARCH="linux-x64"

FROM base as base-arm64
ARG SONARSCANNER_ARCH="linux-aarch64"

FROM base-$TARGETARCH
RUN echo "Starting ..." && \
apk --update upgrade && apk add curl make tzdata unzip && \
echo "Done base install!" && \
Expand All @@ -21,7 +26,7 @@ RUN echo "Starting ..." && \
mkdir /tmp/libz && \
tar -xf /tmp/libz.tar.xz -C /tmp/libz && \
mv /tmp/libz/usr/lib/libz.so* /usr/glibc-compat/lib && \
curl -o ./sonarscanner.zip -L https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${SONARSCANNER_VERSION}-linux.zip && \
curl -o ./sonarscanner.zip -L https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${SONARSCANNER_VERSION}-${SONARSCANNER_ARCH}.zip && \
unzip sonarscanner.zip && \
rm sonarscanner.zip && \
mv sonar-scanner-${SONARSCANNER_VERSION}-linux sonar-scanner && \
Expand Down
8 changes: 5 additions & 3 deletions sonar/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
versions:
"5.0":
platforms: *base_platforms
"6.1":
platforms:
- linux/amd64
- linux/arm64
build_args:
GLIBC_VERSION: 2.32-r0
SONARSCANNER_VERSION: 5.0.1.3006
SONARSCANNER_VERSION: 6.1.0.4477
ZLIB_VERSION: 1.2.11-3
test_config:
cmd:
Expand Down

0 comments on commit 92beabc

Please sign in to comment.