Git Product home page Git Product logo

azure-sonar-qube's Introduction

azure-sonar-qube

Provisionar azure Linux VM para Desplegar sonarqube y abrir puerto adecuado

vname=sonarqube
az group create -n ${vname}-rg
az vm create --name ${vname}-vm --resource-group ${vname}-rg --image UbuntuLTS --admin-username azureadmin
az vm open-port --name ${vname}-vm --resource-group ${vname}-rg --port 9000

Terraform Script to deploy single node sonar qube on azure

  1. Instalar Prerequisitos con script JVM & postgresql
curl -sLo - https://raw.githubusercontent.com/ampacheco/azure-sonar-qube/main/setup.sh | sudo bash -
  1. Configuración Manual del PostgreSQL Parte Manual
  2. Setup del sonar Qube con script
curl -sLo - https://raw.githubusercontent.com/ampacheco/azure-sonar-qube/main/setup-sq.sh |sudo bash -
  1. Configuración del Sonarquebe Parte Manual
  2. Configurar Sonarqube script
curl -sLo - https://raw.githubusercontent.com/ampacheco/azure-sonar-qube/main/configure-sq.sh |sudo bash -

Parte Manual 1

Configuración de la base de datos

# Login as postgres user
sudo su - postgres

# Now create a user below by executing below command
createuser sonar

# Switch to sql shell by entering 
psql
# Execute the below three lines (one by one)
ALTER USER sonar WITH ENCRYPTED password 'password';
CREATE DATABASE sonarqube OWNER sonar;
GRANT ALL PRIVILEGES ON DATABASE sonarqube to sonar;
# Exit psql
\q

Parte Manual 2

Configuración del Arranque del Sonar

Modificar sonar.properties

# Modify sonar.properties file
cat << EOF | sudo tee -a /opt/sonarqube/conf/sonar.properties
sonar.jdbc.username=sonar
sonar.jdbc.password=password
sonar.jdbc.url=jdbc:postgresql://localhost/sonarqube
# EOF

Especificar usuario sudo vi /opt/sonarqube/bin/linux-x86-64/sonar.sh

uncomment

RUN_AS_USER=sonar

azure-sonar-qube's People

Contributors

ampacheco avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.