sha256:b60e450bc7622b0181c88b89d0343eb2a2aeeeb88e33f6b8c4b4fc83b8fe4ced
OS/ARCH
Compressed size
1.53 GB
Last pushed
6 days by doijanky
Type
Image
Manifest digest
sha256:cd8c0ae30f4b37aca832f9f9848242f6e7ee3369593cf3837f4a1d5690dd2486
15
LABEL io.k8s.description=SonarQube Server is a self-managed, automatic code review tool that systematically helps you deliver Clean Code.
0 B
16
LABEL io.openshift.min-cpu=400m
0 B
17
LABEL io.openshift.min-memory=2048M
0 B
18
LABEL io.openshift.non-scalable=false
0 B
19
LABEL io.openshift.tags=sonarqube,static-code-analysis,code-quality,clean-code
0 B
20
LABEL org.opencontainers.image.url=https://github.com/SonarSource/docker-sonarqube
0 B
21
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8
0 B
22
ARG SONARQUBE_VERSION=2026.1.5.126862
0 B
23
ARG SONARQUBE_ZIP_URL=https://binaries.sonarsource.com/CommercialDistribution/sonarqube-datacenter/sonarqube-datacenter-2026.1.5.126862.zip
0 B
24
ENV DOCKER_RUNNING=true JAVA_HOME=/opt/java/openjdk SONARQUBE_HOME=/opt/sonarqube SONAR_VERSION=2026.1.5.126862 SQ_DATA_DIR=/opt/sonarqube/data SQ_EXTENSIONS_DIR=/opt/sonarqube/extensions SQ_LOGS_DIR=/opt/sonarqube/logs SQ_TEMP_DIR=/opt/sonarqube/temp SONAR_CLUSTER_NODE_TYPE=search SONAR_CLUSTER_ENABLED=true
0 B
25
ENV ES_TMPDIR=/opt/sonarqube/temp
0 B
26
RUN |2 SONARQUBE_VERSION=2026.1.5.126862 SONARQUBE_ZIP_URL=https://binaries.sonarsource.com/CommercialDistribution/sonarqube-datacenter/sonarqube-datacenter-2026.1.5.126862.zip /bin/sh -c set -eux; deluser ubuntu; useradd --system --uid 1000 --gid 0 sonarqube; apt-get update; apt-get --no-install-recommends -y install bash curl fonts-dejavu gnupg iproute2 unzip; echo "networkaddress.cache.ttl=5" >> "${JAVA_HOME}/conf/security/java.security"; sed --in-place --expression="s?securerandom.source=file:/dev/random?securerandom.source=file:/dev/urandom?g" "${JAVA_HOME}/conf/security/java.security"; for server in $(shuf -e hkps://keyserver.ubuntu.com) ; do gpg --batch --keyserver "${server}" --recv-keys 679F1EE92B19609DE816FDE81DB198F93525EC1A && break || : ; done; mkdir --parents /opt; cd /opt; curl --proto "=https" --fail --output sonarqube.zip --silent --show-error "${SONARQUBE_ZIP_URL}"; curl --proto "=https" --fail --output sonarqube.zip.asc --silent --show-error "${SONARQUBE_ZIP_URL}.asc"; gpg --batch --verify sonarqube.zip.asc sonarqube.zip; unzip -q sonarqube.zip; mv "sonarqube-${SONARQUBE_VERSION}" sonarqube; rm sonarqube.zip*; rm -rf ${SONARQUBE_HOME}/bin/*; ln -s "${SONARQUBE_HOME}/lib/sonar-application-${SONARQUBE_VERSION}.jar" "${SONARQUBE_HOME}/lib/sonarqube.jar"; chown -R sonarqube:root ${SONARQUBE_HOME}; chown -R sonarqube:root "${SQ_DATA_DIR}" "${SQ_EXTENSIONS_DIR}" "${SQ_LOGS_DIR}" "${SQ_TEMP_DIR}"; chmod -R 550 ${SONARQUBE_HOME}; chmod -R 770 "${SQ_DATA_DIR}" "${SQ_EXTENSIONS_DIR}" "${SQ_LOGS_DIR}" "${SQ_TEMP_DIR}"; apt-get remove -y gnupg unzip curl; rm -rf /var/lib/apt/lists/*; # buildkit
1.44 GB
27
VOLUME [/opt/sonarqube/data /opt/sonarqube/extensions /opt/sonarqube/logs /opt/sonarqube/temp]
0 B
28
COPY --chown=root:root --chmod=555 run.sh sonar.sh /opt/sonarqube/docker/ # buildkit
832 B
29
WORKDIR /opt/sonarqube
32 B
30
EXPOSE map[9000/tcp:{}]
0 B
31
USER sonarqube
0 B
32
STOPSIGNAL SIGINT
0 B
33
ENTRYPOINT ["/opt/sonarqube/docker/run.sh"]
0 B
34
CMD ["/opt/sonarqube/docker/sonar.sh"]
0 B