chore(deps): update sonarqube docker tag to v9.9.7 (#2216)

* chore(deps): update sonarqube docker tag to v9.9.7

* Update app version [skip ci]

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-action update-app-version <githubaction@githubaction.com>
This commit is contained in:
renovate[bot]
2024-10-01 19:48:06 +08:00
committed by GitHub
co-authored by renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> github-action update-app-version
parent d2310280ad
commit f8284e6e42
6 changed files with 1 additions and 1 deletions
+48
View File
@@ -0,0 +1,48 @@
additionalProperties:
formFields:
- child:
default: ""
envKey: PANEL_DB_HOST
required: true
type: service
default: postgresql
envKey: PANEL_DB_TYPE
labelEn: Database Service
labelZh: 数据库服务
required: true
type: apps
values:
- label: PostgreSQL
value: postgresql
- default: sonarqube
envKey: PANEL_DB_NAME
labelEn: Database
labelZh: 数据库名
random: true
required: true
rule: paramCommon
type: text
- default: sonarqube
envKey: PANEL_DB_USER
labelEn: User
labelZh: 数据库用户
random: true
required: true
rule: paramCommon
type: text
- default: sonarqube
envKey: PANEL_DB_USER_PASSWORD
labelEn: Password
labelZh: 数据库用户密码
random: true
required: true
rule: paramComplexity
type: password
- default: 9000
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
@@ -0,0 +1,22 @@
services:
sonarqube:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
image: sonarqube:9.9.7-community
ports:
- ${PANEL_APP_PORT_HTTP}:9000
volumes:
- ./data/data:/opt/sonarqube/data
- ./data/extensions:/opt/sonarqube/extensions
- ./data/logs:/opt/sonarqube/logs
environment:
SONAR_JDBC_URL: jdbc:${PANEL_DB_TYPE}://${PANEL_DB_HOST}:${PANEL_DB_PORT}/${PANEL_DB_NAME}
SONAR_JDBC_USERNAME: ${PANEL_DB_USER}
SONAR_JDBC_PASSWORD: ${PANEL_DB_USER_PASSWORD}
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true
@@ -0,0 +1,10 @@
#!/bin/bash
if [ -f "/etc/sysctl.conf" ]; then
grep -qxF 'vm.max_map_count=262144' /etc/sysctl.conf || echo 'vm.max_map_count=262144' >> /etc/sysctl.conf
sysctl -p /etc/sysctl.conf >/dev/null
else
sysctl -w vm.max_map_count=262144
fi
chown -R 1000:1000 data