Forked from RawToast/Basic SonarQube Postgres Database Setup
Last active
May 1, 2017 13:09
-
-
Save allyjweir/a8a38fa1770fa783b6abb9e27fbe988c to your computer and use it in GitHub Desktop.
SonarQube Postgres
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install SonarQube and dependencies on Ubuntu 16.04 LTS | |
# Create new user for future access | |
# Disable 'root' user SSH access | |
# Install and configure Postgres | |
sudo apt-get instal | |
sudo -u postgres psql postgres | |
CREATE DATABASE sonar; | |
CREATE USER sonar WITH PASSWORD 'verysecret'; | |
GRANT ALL PRIVILEGES ON DATABASE sonar TO sonar; | |
# Install and configure Sonarqube | |
#Configure Sonarqube to run as a service | |
cp .sonarquberc /etc/init.d/sonar | |
sudo ln -s $SONAR_HOME/bin/linux-x86-64/sonar.sh /usr/bin/sonar | |
sudo chmod 755 /etc/init.d/sonar | |
sudo chkconfig --add sonar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment