From bcb10bcbfeb8ceadb6160e829b74604a0e65c823 Mon Sep 17 00:00:00 2001 From: Michael Clarke Date: Fri, 29 Dec 2023 21:25:30 +0000 Subject: [PATCH] #782: Fix container build for Sonarqube 10.1 Sonarqube 10.1 includes classes compiled with a Java 17 target, so the plugin fails to compile in the container build that uses Java 11. The build container is therefore being bumped to Java 17, and the environment file configured to pin to Sonarqube 10.1 to allow repeated builds. --- .env | 2 +- Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env b/.env index a75859fa1..aa12dd7ca 100644 --- a/.env +++ b/.env @@ -1,5 +1,5 @@ # The Sonarqube base image. 'latest' if building locally, '8.5-community' if targeting a specific version -SONARQUBE_VERSION=latest +SONARQUBE_VERSION=10.1-community # The name of the Dockerfile to run. 'Dockerfile' is building locally, 'release.Dockerfile' if building the release image DOCKERFILE=Dockerfile diff --git a/Dockerfile b/Dockerfile index a5ef7eff4..7ff6e3639 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ ARG SONARQUBE_VERSION -FROM gradle:7.3.3-jdk11-alpine as builder +FROM gradle:7.3.3-jdk17-alpine as builder COPY . /home/build/project WORKDIR /home/build/project