]> source.dussan.org Git - sonarqube.git/commitdiff
Add development patches for start.sh
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 17 Nov 2017 20:15:30 +0000 (21:15 +0100)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 17 Nov 2017 20:18:43 +0000 (21:18 +0100)
.gitignore
scripts/patches/debug_ce.sh [new file with mode: 0755]
scripts/patches/debug_web.sh [new file with mode: 0755]
scripts/patches/mysql.sh [new file with mode: 0755]
scripts/patches/postgres.sh [new file with mode: 0755]

index eed05a54bdd9aab6ef66b5ff56fef1591abd3d6d..fadc2446785a98660e5185b981df2f9251ab5cd7 100644 (file)
@@ -51,3 +51,7 @@ Desktop.ini
 # 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
diff --git a/scripts/patches/debug_ce.sh b/scripts/patches/debug_ce.sh
new file mode 100755 (executable)
index 0000000..aafeada
--- /dev/null
@@ -0,0 +1,8 @@
+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
diff --git a/scripts/patches/debug_web.sh b/scripts/patches/debug_web.sh
new file mode 100755 (executable)
index 0000000..831a6dd
--- /dev/null
@@ -0,0 +1,8 @@
+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
diff --git a/scripts/patches/mysql.sh b/scripts/patches/mysql.sh
new file mode 100755 (executable)
index 0000000..59931e7
--- /dev/null
@@ -0,0 +1,10 @@
+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
diff --git a/scripts/patches/postgres.sh b/scripts/patches/postgres.sh
new file mode 100755 (executable)
index 0000000..0f3b105
--- /dev/null
@@ -0,0 +1,10 @@
+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