Skip to content

Instantly share code, notes, and snippets.

@rafaelwkerr
Created December 2, 2015 19:24
Show Gist options
  • Save rafaelwkerr/9befdc12f8d46018f76d to your computer and use it in GitHub Desktop.
Save rafaelwkerr/9befdc12f8d46018f76d to your computer and use it in GitHub Desktop.
run.sh sonarqube
#!/bin/bash
set -e
if [ "${1:0:1}" != '-' ]; then
exec "$@"
fi
exec java -jar lib/sonar-application-$SONAR_VERSION.jar \
-Dsonar.log.console=true \
-Dsonar.jdbc.username="sonar" \
-Dsonar.jdbc.password="123qwe" \
-Dsonar.jdbc.url="jdbc:mysql://192.168.99.100:3306/sonar" \
-Dsonar.web.javaAdditionalOpts="-Djava.security.egd=file:/dev/./urandom" \
"$@"``
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment