diff --git a/bitnami/sonarqube/26/debian-12/Dockerfile b/bitnami/sonarqube/26/debian-12/Dockerfile index e55ef237b206..60ec8665bb9b 100644 --- a/bitnami/sonarqube/26/debian-12/Dockerfile +++ b/bitnami/sonarqube/26/debian-12/Dockerfile @@ -8,13 +8,13 @@ ARG JAVA_EXTRA_SECURITY_DIR="/bitnami/java/extra-security" ARG TARGETARCH LABEL org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \ - org.opencontainers.image.created="2026-06-02T16:53:13Z" \ + org.opencontainers.image.created="2026-06-03T12:05:03Z" \ org.opencontainers.image.description="Application packaged by Broadcom, Inc." \ org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/sonarqube/README.md" \ org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/sonarqube" \ org.opencontainers.image.title="sonarqube" \ org.opencontainers.image.vendor="Broadcom, Inc." \ - org.opencontainers.image.version="26.4.0" + org.opencontainers.image.version="26.6.0" ENV HOME="/" \ OS_ARCH="${TARGETARCH:-amd64}" \ @@ -31,7 +31,7 @@ RUN --mount=type=secret,id=downloads_url,env=SECRET_DOWNLOADS_URL \ COMPONENTS=( \ "postgresql-client-18.4.0-0-linux-${OS_ARCH}-debian-12" \ "java-21.0.11-11-2-linux-${OS_ARCH}-debian-12" \ - "sonarqube-26.4.0-2-linux-${OS_ARCH}-debian-12" \ + "sonarqube-26.6.0-0-linux-${OS_ARCH}-debian-12" \ ) ; \ for COMPONENT in "${COMPONENTS[@]}"; do \ if [ ! -f "${COMPONENT}.tar.gz" ]; then \ @@ -50,9 +50,9 @@ RUN find / -perm /6000 -type f -exec chmod a-s {} \; || true COPY rootfs / RUN /opt/bitnami/scripts/java/postunpack.sh RUN /opt/bitnami/scripts/sonarqube/postunpack.sh -ENV APP_VERSION="26.4.0" \ +ENV APP_VERSION="26.6.0" \ BITNAMI_APP_NAME="sonarqube" \ - IMAGE_REVISION="8" \ + IMAGE_REVISION="0" \ JAVA_HOME="/opt/bitnami/java" \ LD_LIBRARY_PATH="/opt/bitnami/postgresql/lib" \ PATH="/opt/bitnami/postgresql/bin:/opt/bitnami/java/bin:$PATH" diff --git a/bitnami/sonarqube/26/debian-12/prebuildfs/opt/bitnami/checksums/sonarqube-26.4.0-2-linux-amd64-debian-12.tar.gz.sha256 b/bitnami/sonarqube/26/debian-12/prebuildfs/opt/bitnami/checksums/sonarqube-26.4.0-2-linux-amd64-debian-12.tar.gz.sha256 deleted file mode 100644 index 71fac483877d..000000000000 --- a/bitnami/sonarqube/26/debian-12/prebuildfs/opt/bitnami/checksums/sonarqube-26.4.0-2-linux-amd64-debian-12.tar.gz.sha256 +++ /dev/null @@ -1 +0,0 @@ -3dba7491a2ebb0116138ea5abccff3026b9d36344d926173efb6d535aee0900c sonarqube-26.4.0-2-linux-amd64-debian-12.tar.gz diff --git a/bitnami/sonarqube/26/debian-12/prebuildfs/opt/bitnami/checksums/sonarqube-26.4.0-2-linux-arm64-debian-12.tar.gz.sha256 b/bitnami/sonarqube/26/debian-12/prebuildfs/opt/bitnami/checksums/sonarqube-26.4.0-2-linux-arm64-debian-12.tar.gz.sha256 deleted file mode 100644 index 24bd33ded419..000000000000 --- a/bitnami/sonarqube/26/debian-12/prebuildfs/opt/bitnami/checksums/sonarqube-26.4.0-2-linux-arm64-debian-12.tar.gz.sha256 +++ /dev/null @@ -1 +0,0 @@ -26213691e6e37e31611a83af7511082c1c81c3720acd788bec3199bfed2b57db sonarqube-26.4.0-2-linux-arm64-debian-12.tar.gz diff --git a/bitnami/sonarqube/26/debian-12/prebuildfs/opt/bitnami/checksums/sonarqube-26.6.0-0-linux-amd64-debian-12.tar.gz.sha256 b/bitnami/sonarqube/26/debian-12/prebuildfs/opt/bitnami/checksums/sonarqube-26.6.0-0-linux-amd64-debian-12.tar.gz.sha256 new file mode 100644 index 000000000000..e9d247b80819 --- /dev/null +++ b/bitnami/sonarqube/26/debian-12/prebuildfs/opt/bitnami/checksums/sonarqube-26.6.0-0-linux-amd64-debian-12.tar.gz.sha256 @@ -0,0 +1 @@ +ae5543a810788aca9457127ac088c8830599b797420e0528a01c9684af1257e5 sonarqube-26.6.0-0-linux-amd64-debian-12.tar.gz diff --git a/bitnami/sonarqube/26/debian-12/prebuildfs/opt/bitnami/checksums/sonarqube-26.6.0-0-linux-arm64-debian-12.tar.gz.sha256 b/bitnami/sonarqube/26/debian-12/prebuildfs/opt/bitnami/checksums/sonarqube-26.6.0-0-linux-arm64-debian-12.tar.gz.sha256 new file mode 100644 index 000000000000..f14800ead01e --- /dev/null +++ b/bitnami/sonarqube/26/debian-12/prebuildfs/opt/bitnami/checksums/sonarqube-26.6.0-0-linux-arm64-debian-12.tar.gz.sha256 @@ -0,0 +1 @@ +ebfb6ecd575a0527adb932c429ce264219b441c290fafe15c6e929a9a9ebdbd8 sonarqube-26.6.0-0-linux-arm64-debian-12.tar.gz diff --git a/bitnami/sonarqube/26/debian-12/rootfs/opt/bitnami/scripts/libsonarqube.sh b/bitnami/sonarqube/26/debian-12/rootfs/opt/bitnami/scripts/libsonarqube.sh index 1991445ffa4b..ded29584a9cb 100644 --- a/bitnami/sonarqube/26/debian-12/rootfs/opt/bitnami/scripts/libsonarqube.sh +++ b/bitnami/sonarqube/26/debian-12/rootfs/opt/bitnami/scripts/libsonarqube.sh @@ -147,6 +147,17 @@ sonarqube_initialize() { ! is_empty_value "$SONARQUBE_WEB_JAVA_ADD_OPTS" && sonarqube_conf_set "sonar.web.javaAdditionalOpts" "$SONARQUBE_WEB_JAVA_ADD_OPTS" # Disable log rotation (to be handled externally) sonarqube_conf_set "sonar.log.rollingPolicy" "none" + # Enable default plugins + if is_boolean_yes "$SONARQUBE_ENABLE_DEFAULT_PLUGINS"; then + info "Enabling default plugins" + if [[ -d "${SONARQUBE_BASE_DIR}/extensions/default-plugins" ]]; then + mv "${SONARQUBE_BASE_DIR}/extensions/default-plugins"/*.jar "$SONARQUBE_PLUGINS_DIR/" 2>/dev/null || true + fi + fi + # Accept risk consent + if is_boolean_yes "$SONARQUBE_ACCEPT_RISK_CONSENT"; then + sonarqube_conf_set "sonar.plugins.risk.consent" "ACCEPTED" + fi # Additional properties local -a additional_properties IFS=',' read -r -a additional_properties <<< "$SONARQUBE_EXTRA_PROPERTIES" diff --git a/bitnami/sonarqube/26/debian-12/rootfs/opt/bitnami/scripts/sonarqube-env.sh b/bitnami/sonarqube/26/debian-12/rootfs/opt/bitnami/scripts/sonarqube-env.sh index b9f01f0430db..a36f851fedda 100644 --- a/bitnami/sonarqube/26/debian-12/rootfs/opt/bitnami/scripts/sonarqube-env.sh +++ b/bitnami/sonarqube/26/debian-12/rootfs/opt/bitnami/scripts/sonarqube-env.sh @@ -35,6 +35,8 @@ sonarqube_env_vars=( SONARQUBE_MIN_HEAP_SIZE SONARQUBE_ELASTICSEARCH_JAVA_ADD_OPTS SONARQUBE_EXTRA_PROPERTIES + SONARQUBE_ENABLE_DEFAULT_PLUGINS + SONARQUBE_ACCEPT_RISK_CONSENT SONARQUBE_USERNAME SONARQUBE_PASSWORD SONARQUBE_EMAIL @@ -85,6 +87,7 @@ export SONARQUBE_CONF_FILE="${SONARQUBE_CONF_DIR}/sonar.properties" export SONARQUBE_LOGS_DIR="${SONARQUBE_BASE_DIR}/logs" export SONARQUBE_LOG_FILE="${SONARQUBE_LOGS_DIR}/sonar.log" export SONARQUBE_TMP_DIR="${SONARQUBE_BASE_DIR}/temp" +export SONARQUBE_PLUGINS_DIR="${SONARQUBE_BASE_DIR}/extensions/plugins" export SONARQUBE_PID_FILE="${SONARQUBE_BASE_DIR}/pids/SonarQube.pid" export SONARQUBE_BIN_DIR="${SONARQUBE_BASE_DIR}/bin/linux-x86-64" export PATH="${BITNAMI_ROOT_DIR}/java/bin:${PATH}" @@ -112,6 +115,8 @@ export SONARQUBE_ELASTICSEARCH_JAVA_ADD_OPTS="${SONARQUBE_ELASTICSEARCH_JAVA_ADD export SONARQUBE_WEB_JAVA_ADD_OPTS="${SONARQUBE_WEB_JAVA_ADD_OPTS:-} ${JAVA_TOOL_OPTIONS:-}" SONARQUBE_EXTRA_PROPERTIES="${SONARQUBE_EXTRA_PROPERTIES:-"${SONARQUBE_PROPERTIES:-}"}" export SONARQUBE_EXTRA_PROPERTIES="${SONARQUBE_EXTRA_PROPERTIES:-}" +export SONARQUBE_ENABLE_DEFAULT_PLUGINS="${SONARQUBE_ENABLE_DEFAULT_PLUGINS:-no}" +export SONARQUBE_ACCEPT_RISK_CONSENT="${SONARQUBE_ACCEPT_RISK_CONSENT:-no}" # SonarQube credentials export SONARQUBE_USERNAME="${SONARQUBE_USERNAME:-admin}" # only used during the first initialization diff --git a/bitnami/sonarqube/README.md b/bitnami/sonarqube/README.md index e8ee1da8c1b4..812eb3af0332 100644 --- a/bitnami/sonarqube/README.md +++ b/bitnami/sonarqube/README.md @@ -91,6 +91,8 @@ The following tables list the main variables you can set. | `SONARQUBE_MIN_HEAP_SIZE` | Minimum heap size for SonarQube services (CE, Search and Web). | `nil` | | `SONARQUBE_ELASTICSEARCH_JAVA_ADD_OPTS` | Additional Java options for Elasticsearch. | `nil` | | `SONARQUBE_EXTRA_PROPERTIES` | Comma separated list of properties to be set in the sonar.properties file, e.g. `my.sonar.property1=property_value,my.sonar.property2=property_value`. | `nil` | +| `SONARQUBE_ENABLE_DEFAULT_PLUGINS` | Whether to enable the default bundled plugins. | `no` | +| `SONARQUBE_ACCEPT_RISK_CONSENT` | Whether to accept the third-party plugins risk consent. | `no` | | `SONARQUBE_USERNAME` | SonarQube user name. | `admin` | | `SONARQUBE_PASSWORD` | SonarQube user password. | `nil` | | `SONARQUBE_EMAIL` | SonarQube user e-mail address. | `user@example.com` | @@ -117,6 +119,7 @@ The following tables list the main variables you can set. | `SONARQUBE_LOGS_DIR` | Directory for SonarQube log files. | `${SONARQUBE_BASE_DIR}/logs` | | `SONARQUBE_LOG_FILE` | SonarQube log file. | `${SONARQUBE_LOGS_DIR}/sonar.log` | | `SONARQUBE_TMP_DIR` | Directory for SonarQube temporary files. | `${SONARQUBE_BASE_DIR}/temp` | +| `SONARQUBE_PLUGINS_DIR` | Directory for SonarQube plugins. | `${SONARQUBE_BASE_DIR}/extensions/plugins` | | `SONARQUBE_PID_FILE` | SonarQube PID file. | `${SONARQUBE_BASE_DIR}/pids/SonarQube.pid` | | `SONARQUBE_BIN_DIR` | SonarQube directory for binary executables. | `${SONARQUBE_BASE_DIR}/bin/linux-x86-64` | | `SONARQUBE_VOLUME_DIR` | SonarQube directory for mounted configuration files. | `${BITNAMI_VOLUME_DIR}/sonarqube` |