Skip to content

Instantly share code, notes, and snippets.

@gtpgi
gtpgi / Dockerfile
Created November 19, 2018 16:40
Dockerfile and run script to build a Docker image for SonarQube 7.4 Developer Edition
# SonarSource did not make official Docker images for SonarQube 7.1 and above (as of 2018-11-20)
# This Dockerfile will build SonarQube 7.4 Developer Edition
# Based on https://github.com/SonarSource/docker-sonarqube/blob/5d738964cc4b857ca5b399d6f0bb626b6710bac6/7.1/Dockerfile
FROM openjdk:8
ENV SONAR_VERSION=7.4 \
SONARQUBE_HOME=/opt/sonarqube \
# Database configuration
# Defaults to using H2
SONARQUBE_JDBC_USERNAME=sonar \