summaryrefslogtreecommitdiffhomepage
path: root/public/v4/apps/sonarqube.yml
blob: 93ddad8324f909f07d16bfd5688519a2015d344b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
captainVersion: 4
services:
    $$cap_appname-db:
        image: postgres:$$cap_postgres_version
        volumes:
            - $$cap_appname-db-data:/var/lib/postgresql/data
        restart: always
        environment:
            POSTGRES_USER: sonarqube
            POSTGRES_PASSWORD: $$cap_pg_pass
            POSTGRES_DB: sonarqube
            POSTGRES_INITDB_ARGS: $$cap_pg_initdb_args
        caproverExtra:
            notExposeAsWebApp: 'true'
            ports:
                - 5432:5432
    $$cap_appname:
        image: sonarqube:$$cap_sonar_version
        depends_on:
            - $$cap_appname-db
        volumes:
            - $$cap_appname-conf:/opt/sonarqube/conf
            - $$cap_appname-data:/opt/sonarqube/data
            - $$cap_appname-logs:/opt/sonarqube/logs
            - $$cap_appname-extensions:/opt/sonarqube/extensions
        restart: always
        environment:
            SONAR_JDBC_USERNAME: sonarqube
            SONAR_JDBC_PASSWORD: $$cap_pg_pass
            SONAR_JDBC_URL: jdbc:postgresql://srv-captain--$$cap_appname-db:5432/sonarqube
        caproverExtra:
            containerHttpPort: '9000'
caproverOneClickApp:
    variables:
        - id: $$cap_postgres_version
          label: Postgres Version
          defaultValue: '9.6'
          description: Check out their Docker page for the valid tags https://hub.docker.com/r/library/postgres/tags/
          validRegex: /^([^\s^\/])+$/
        - id: $$cap_sonar_version
          label: Sonarqube Version
          defaultValue: 10.2.1-community
          description: Check out their Docker page for the valid tags https://hub.docker.com/_/sonarqube?tab=tags/
          validRegex: /^([^\s^\/])+$/
        - id: $$cap_pg_pass
          label: Postgres Password
          description: ''
          validRegex: /.{1,}/
        - id: $$cap_pg_initdb_args
          label: "OPTIONAL: Arguments for 'postgres initdb'"
          description: For example, --data-checksums
          validRegex: /.{0,}/
    instructions:
        start: >-
            SonarQube is an open source product for continuous inspection of code quality. 
            This Docker image contains the Community Edition of SonarQube.

            Enter your SonarQube Configuration parameters and click on next. 

            More information about this container can be found here:
            https://hub.docker.com/_/sonarqube?tab=description

            Default username: admin
            Default password: admin

            It will take about a minute for the process to finish.
        end: SonarQube is deployed and available as srv-captain--$$cap_appname:9000 to other apps.
    displayName: 'sonarqube'
    isOfficial: true
    description: Catch bugs and vulnerabilities in your app, with thousands of automated Static Code Analysis rules
    documentation: Taken from https://hub.docker.com/_/sonarqube