Adding SonarQube Stack (#352)
* Adding SonarQube Stack * Updating configuration
This commit is contained in:
committed by
Hussein Galal
parent
85ffaf7566
commit
16859801eb
@@ -0,0 +1,48 @@
|
||||
sonarqube-data:
|
||||
image: busybox
|
||||
net: none
|
||||
labels:
|
||||
io.rancher.container.start_once: true
|
||||
volumes:
|
||||
- /opt/sonarqube/extensions/plugins
|
||||
|
||||
sonarqube:
|
||||
image: sonarqube
|
||||
ports:
|
||||
- ${http_port}:9000
|
||||
links:
|
||||
- postgres
|
||||
environment:
|
||||
http_proxy: ${http_proxy}
|
||||
https_proxy: ${https_proxy}
|
||||
SONARQUBE_JDBC_USERNAME: ${postgres_user}
|
||||
SONARQUBE_JDBC_PASSWORD: ${postgres_password}
|
||||
SONARQUBE_JDBC_URL: jdbc:postgresql://postgres/sonar
|
||||
labels:
|
||||
io.rancher.sidekicks: sonarqube-data
|
||||
volumes_from:
|
||||
- sonarqube-data
|
||||
|
||||
postgres-data:
|
||||
image: busybox
|
||||
net: none
|
||||
labels:
|
||||
io.rancher.container.start_once: true
|
||||
volumes:
|
||||
- ${postgres_data}
|
||||
|
||||
postgres:
|
||||
image: postgres:latest
|
||||
ports:
|
||||
- ${postgress_port}:5432
|
||||
environment:
|
||||
PGDATA: ${postgres_data}
|
||||
POSTGRES_DB: ${postgres_db}
|
||||
POSTGRES_USER: ${postgres_user}
|
||||
POSTGRES_PASSWORD: ${postgres_password}
|
||||
tty: true
|
||||
stdin_open: true
|
||||
labels:
|
||||
io.rancher.sidekicks: postgres-data
|
||||
volumes_from:
|
||||
- postgres-data
|
||||
@@ -0,0 +1,55 @@
|
||||
.catalog:
|
||||
name: "SonarQube"
|
||||
version: "v0.0.1"
|
||||
description: "SonarQube"
|
||||
uuid: sonarqube-0
|
||||
minimum_rancher_version: v0.51.0
|
||||
questions:
|
||||
- variable: http_port
|
||||
description: "HTTP port to access SonarQube UI"
|
||||
label: "SonarQube HTTP Port"
|
||||
required: true
|
||||
default: "9000"
|
||||
type: "int"
|
||||
- variable: postgress_port
|
||||
description: "Port for Postgres"
|
||||
label: "Postgres Port"
|
||||
required: true
|
||||
default: "5432"
|
||||
type: "int"
|
||||
- variable: postgres_data
|
||||
description: "Postgres Data Folder"
|
||||
label: "Postgres Data"
|
||||
required: true
|
||||
default: "/var/lib/postgresql/data/pgdata"
|
||||
type: "string"
|
||||
- variable: postgres_db
|
||||
description: "Postgres Database"
|
||||
label: "Postgres Database"
|
||||
required: true
|
||||
default: "sonar"
|
||||
type: "string"
|
||||
- variable: postgres_user
|
||||
description: "Postgres User"
|
||||
label: "Postgres User"
|
||||
required: true
|
||||
default: "sonar"
|
||||
type: "string"
|
||||
- variable: postgres_password
|
||||
description: "Postgres Password"
|
||||
label: "Postgres Password"
|
||||
required: true
|
||||
default: "sonar"
|
||||
type: "string"
|
||||
- variable: http_proxy
|
||||
description: "In case you are at corporate network, setup http_proxy variable"
|
||||
label: "http_proxy"
|
||||
required: false
|
||||
default: ""
|
||||
type: "string"
|
||||
- variable: https_proxy
|
||||
description: "In case you are at corporate network, setup https_proxy variable"
|
||||
label: "https_proxy"
|
||||
required: false
|
||||
default: ""
|
||||
type: "string"
|
||||
Reference in New Issue
Block a user