Skip to content

Commit

Permalink
wip local sonar latest LTS 9 version
Browse files Browse the repository at this point in the history
  • Loading branch information
henrjk committed Jul 3, 2023
1 parent ecf8e75 commit f3c74ca
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build/package/Dockerfile.sonar
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
USER root
WORKDIR /usr/src/app

ENV SONAR_SCANNER_VERSION=4.6.2.2472 \
CNES_REPORT_VERSION=4.0.0
ENV SONAR_SCANNER_VERSION=4.8.0.2856 \
CNES_REPORT_VERSION=4.2.0

# Build Go binary.
COPY go.mod .
Expand Down
2 changes: 1 addition & 1 deletion scripts/run-sonarqube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ if [ "$(uname -m)" = "arm64" ]; then
rm -rf docker-sonarqube || true
git clone https://github.com/SonarSource/docker-sonarqube
cd docker-sonarqube
git checkout refs/tags/9.7.0 # Last available Git tag
git checkout refs/tags/9.9.1 # Last available Git tag
cd 9/community
docker build -t sonarqube-arm:${SONAR_IMAGE_TAG} .
cd "${SCRIPT_DIR}"/sonarqube
Expand Down
5 changes: 5 additions & 0 deletions scripts/sonarqube/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
ARG from=""
FROM $from

USER root
ENV SQ_CONF_DIR="/opt/sonarqube/conf"
RUN chmod -R ugo+wrX "${SQ_CONF_DIR}"

USER sonarqube
RUN echo "sonar.forceAuthentication=true" >> conf/sonar.properties

# Uncomment the following line to see debug output, e.g. in case SonarQube is
Expand Down

0 comments on commit f3c74ca

Please sign in to comment.