标签:mit 准备 href about mes set art ons log
mkdir -p /home/jenkins_root/sonarQube/{sonarqube_data,sonarqube_extensions,sonarqube_logs,conf}
mkdir -p /home/jenkins_root/sonarQube/postgreSQL_data
sonarqube_data – contains data files, such as the embedded H2 database and Elasticsearch indexes
sonarqube_logs – contains SonarQube logs about access, web process, CE process, and Elasticsearch
sonarqube_extensions – contains plugins, such as language analyzers
FROM sonarqube:8.2-community
COPY /home/jenkins_root/sonarQube/conf/sonar.properties /opt/sonarqube/conf/
[^避免暴力停止容器导致任务终端 --stop-timeout 3600 (延迟关闭容器)]
version: '2.4'
services:
postgres:
image: "postgres"
restart: always
ports:
- "9000:9000"
sonar:
image: "sonarqube:lastest"
restart: always
ports:
- "9000:9000"
- "9092:9092"
volumes:
- "/home/jenkins_root/jenkins_install_dir:/var/jenkins_home"
- "/home/jenkins_root/sonarQube/sonarqube_data:/opt/sonarqube/data"
- "/home/jenkins_root/sonarQube/sonarqube_extensions:/opt/sonarqube/extensions"
- "/home/jenkins_root/sonarQube/sonarqube_logs:/opt/sonarqube/logs"
environment:
- sonar.jdbc.url=jdbc:sqlserver://localhost;databaseName=cloudnet
- sonar.jdbc.url=jdbc:username:eccom
- sonar.jdbc.url=jdbc:password:eccom
network_mode: "host"
cpus: 1
mem_limit: 2g
depends_on:
- postgres
loading...
标签:mit 准备 href about mes set art ons log
原文地址:https://www.cnblogs.com/nhz-M/p/12496519.html