# scripts patches, they are local to each developer
scripts/patches/*.*
scripts/patches/*license*.txt
+!scripts/patches/debug_ce.sh
+!scripts/patches/debug_web.sh
+!scripts/patches/mysql.sh
+!scripts/patches/postgres.sh
--- /dev/null
+set -euo pipefail
+
+source scripts/property_utils.sh
+
+SQ_HOME=$1
+
+echo "enabling debug on compute engine, listening on port 5005"
+set_property sonar.ce.javaAdditionalOpts -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 $SQ_HOME/conf/sonar.properties
--- /dev/null
+set -euo pipefail
+
+source scripts/property_utils.sh
+
+SQ_HOME=$1
+
+echo "enabling debug on web server, listening on port 5005"
+set_property sonar.web.javaAdditionalOpts -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 $SQ_HOME/conf/sonar.properties
--- /dev/null
+set -euo pipefail
+
+source scripts/property_utils.sh
+
+SQ_HOME=$1
+
+echo "configuring mysql"
+set_property sonar.jdbc.url "jdbc:mysql://localhost:3306/sonarqube?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance" $SQ_HOME/conf/sonar.properties
+set_property sonar.jdbc.username sonarqube $SQ_HOME/conf/sonar.properties
+set_property sonar.jdbc.password sonarqube $SQ_HOME/conf/sonar.properties
--- /dev/null
+set -euo pipefail
+
+source scripts/property_utils.sh
+
+SQ_HOME=$1
+
+echo "configuring postgres"
+set_property sonar.jdbc.url jdbc:postgresql://localhost:5432/sonarqube $SQ_HOME/conf/sonar.properties
+set_property sonar.jdbc.username sonarqube $SQ_HOME/conf/sonar.properties
+set_property sonar.jdbc.password sonarqube $SQ_HOME/conf/sonar.properties