summaryrefslogtreecommitdiffhomepage
path: root/public/v2/apps/sonarqube.json
diff options
context:
space:
mode:
authorKasra Bigdeli <[email protected]>2019-08-14 13:00:30 -0400
committerKasra Bigdeli <[email protected]>2019-08-14 13:00:30 -0400
commitd5223e80f564cc21ca90f67008fa12f76e1f069e (patch)
treef241e5b065d7fa24dcef18923bbe653262788d9b /public/v2/apps/sonarqube.json
parent3f6dc9213224d35c97857f6db6aa20da5119ba67 (diff)
downloadcaprover-one-click-apps-d5223e80f564cc21ca90f67008fa12f76e1f069e.tar.gz
caprover-one-click-apps-d5223e80f564cc21ca90f67008fa12f76e1f069e.zip
Added v2
Diffstat (limited to 'public/v2/apps/sonarqube.json')
-rw-r--r--public/v2/apps/sonarqube.json74
1 files changed, 74 insertions, 0 deletions
diff --git a/public/v2/apps/sonarqube.json b/public/v2/apps/sonarqube.json
new file mode 100644
index 0000000..f5a7b3d
--- /dev/null
+++ b/public/v2/apps/sonarqube.json
@@ -0,0 +1,74 @@
+{
+ "captainVersion": "2",
+ "documentation": "Taken from https://hub.docker.com/_/sonarqube?tab=description",
+ "dockerCompose": {
+ "version": "3.3",
+ "services": {
+ "$$cap_appname-db": {
+ "image": "postgres:$$cap_postgres_version",
+ "notExposeAsWebApp": "true",
+ "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"
+ }
+ },
+ "$$cap_appname": {
+ "image": "sonarqube:$$cap_sonar_version",
+ "containerHttpPort": "9000",
+ "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/sonarqube"
+ }
+ }
+ }
+ },
+ "instructions": {
+ "start": "SonarQube is an open source product for continuous inspection of code quality. \n This Docker image contains the Community Edition of SonarQube.\n\n Enter your Sonarqube Configuration parameters and click on next. \n\n More information about this container can be found here:\n https://hub.docker.com/_/sonarqube?tab=description\n\n Default username: admin\n Default password: admin\n\n 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."
+ },
+ "variables": [
+ {
+ "id": "$$cap_postgres_version",
+ "label": "Postgres Version",
+ "defaultValue": "9.6",
+ "description": "Checkout 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": "7.7-community",
+ "description": "Checkout 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,}/"
+ }
+ ]
+} \ No newline at end of file