diff --git a/bitnami/sonarqube/8/debian-11/Dockerfile b/bitnami/sonarqube/8/debian-11/Dockerfile index 0ddff536ae99..f3f9ad461f62 100644 --- a/bitnami/sonarqube/8/debian-11/Dockerfile +++ b/bitnami/sonarqube/8/debian-11/Dockerfile @@ -4,10 +4,10 @@ ARG JAVA_EXTRA_SECURITY_DIR="/bitnami/java/extra-security" ARG TARGETARCH LABEL org.opencontainers.image.base.name="docker.io/bitnami/minideb:bullseye" \ - org.opencontainers.image.created="2023-02-21T09:46:47Z" \ + org.opencontainers.image.created="2023-02-22T14:29:12Z" \ org.opencontainers.image.description="Application packaged by VMware, Inc" \ org.opencontainers.image.licenses="Apache-2.0" \ - org.opencontainers.image.ref.name="8.9.10-debian-11-r42" \ + org.opencontainers.image.ref.name="8.9.10-debian-11-r43" \ org.opencontainers.image.title="sonarqube" \ org.opencontainers.image.vendor="VMware, Inc." \ org.opencontainers.image.version="8.9.10" @@ -25,7 +25,7 @@ RUN mkdir -p /tmp/bitnami/pkg/cache/ && cd /tmp/bitnami/pkg/cache/ && \ COMPONENTS=( \ "postgresql-client-15.2.0-1-linux-${OS_ARCH}-debian-11" \ "java-17.0.6-10-2-linux-${OS_ARCH}-debian-11" \ - "sonarqube-8.9.10-3-linux-${OS_ARCH}-debian-11" \ + "sonarqube-8.9.10-4-linux-${OS_ARCH}-debian-11" \ "gosu-1.16.0-2-linux-${OS_ARCH}-debian-11" \ ) && \ for COMPONENT in "${COMPONENTS[@]}"; do \ diff --git a/bitnami/sonarqube/8/debian-11/prebuildfs/opt/bitnami/.bitnami_components.json b/bitnami/sonarqube/8/debian-11/prebuildfs/opt/bitnami/.bitnami_components.json index 1e88d608556c..b05a31d4fcf8 100644 --- a/bitnami/sonarqube/8/debian-11/prebuildfs/opt/bitnami/.bitnami_components.json +++ b/bitnami/sonarqube/8/debian-11/prebuildfs/opt/bitnami/.bitnami_components.json @@ -25,6 +25,6 @@ "digest": "0d99bccd66887beb6e8807696429d0e9272fc664936fd36eafa643974e2d36f9", "distro": "debian-11", "type": "NAMI", - "version": "8.9.10-3" + "version": "8.9.10-4" } } \ No newline at end of file diff --git a/bitnami/sonarqube/8/debian-11/prebuildfs/opt/bitnami/scripts/libservice.sh b/bitnami/sonarqube/8/debian-11/prebuildfs/opt/bitnami/scripts/libservice.sh index f964ab09fcba..af64e198ad2d 100644 --- a/bitnami/sonarqube/8/debian-11/prebuildfs/opt/bitnami/scripts/libservice.sh +++ b/bitnami/sonarqube/8/debian-11/prebuildfs/opt/bitnami/scripts/libservice.sh @@ -305,6 +305,8 @@ generate_systemd_conf() { local exec_reload="" local restart="always" local pid_file="" + local standard_output="journal" + local standard_error="" # Parse CLI flags shift while [[ "$#" -gt 0 ]]; do @@ -318,6 +320,8 @@ generate_systemd_conf() { | --exec-reload \ | --restart \ | --pid-file \ + | --standard-output \ + | --standard-error \ ) var_name="$(echo "$1" | sed -e "s/^--//" -e "s/-/_/g")" shift @@ -362,36 +366,33 @@ ExecStart=${exec_start} EOF # Optional stop and reload commands if [[ -n "$exec_stop" ]]; then - cat >> "$service_file" <> "$service_file" <<< "ExecStop=${exec_stop}" fi if [[ -n "$exec_reload" ]]; then - cat >> "$service_file" <> "$service_file" <<< "ExecReload=${exec_reload}" fi # User and group if [[ -n "$user" ]]; then - cat >> "$service_file" <> "$service_file" <<< "User=${user}" fi if [[ -n "$group" ]]; then - cat >> "$service_file" <> "$service_file" <<< "Group=${group}" fi # PID file allows to determine if the main process is running properly (for Restart=always) if [[ -n "$pid_file" ]]; then - cat >> "$service_file" <> "$service_file" <<< "PIDFile=${pid_file}" fi # Environment flags (may be specified multiple times in a unit) if [[ -n "$environment" ]]; then cat >> "$service_file" <<< "$environment" fi + # Logging + if [[ -n "$standard_output" ]]; then + cat >> "$service_file" <<< "StandardOutput=${standard_output}" + fi + if [[ -n "$standard_error" ]]; then + cat >> "$service_file" <<< "StandardError=${standard_error}" + fi cat >> "$service_file" < +Bitnami provides up-to-date versions of PostgreSQL and SonarQube™, including security patches, soon after they are made upstream. We recommend that you follow these steps to upgrade your container. We will cover here the upgrade of the SonarQube™ container. For the PostgreSQL upgrade see: The `bitnami/sonarqube:latest` tag always points to the most recent release. To get the most recent release you can simple repull the `latest` tag from the Docker Hub with `docker pull bitnami/sonarqube:latest`. However it is recommended to use [tagged versions](https://hub.docker.com/r/bitnami/sonarqube/tags/).