출처 : docker-compose로 sonarqube 설치하기 :: Dev Traveler (tistory.com)
root@server:~# apt update root@server:~# apt install docker.io docker-compose version root@server:~# docker compose version Docker Compose version v2.14.1 위에 문서에 "" 를 제거 한다. root@server:~/sonar# docker compose up -d services.sonarqube.ulimits.nofile.hard must be a integer 디렉토리를 만들고 root@server:~# mkdir sonar root@server:~# cd sonar/ root@server:~/sonar# ls 아래 값을 입력하고 root@server:~/sonar# vi docker-compose.yml 실행 root@server:~/sonar# docker-compose up -d |
vi docker-compose.yml
version: "2" services: sonarqube: image: sonarqube:lts container_name: sonarqube ports: - "9000:9000" ulimits: nofile: soft: 262144 hard: 262144 networks: - sonarnet environment: - sonar.jdbc.url=jdbc:postgresql://db:5432/sonar volumes: - sonarqube_conf:/opt/sonarqube/conf - sonarqube_data:/opt/sonarqube/data - sonarqube_extensions:/opt/sonarqube/extensions - sonarqube_logs:/opt/sonarqube/logs db: image: postgres container_name: postgres_sonar ports: - "5432:5432" networks: - sonarnet environment: - POSTGRES_USER=sonar - POSTGRES_PASSWORD=sonar volumes: - postgresql:/var/lib/postgresql - postgresql_data:/var/lib/postgresql/data networks: sonarnet: driver: bridge volumes: sonarqube_conf: sonarqube_data: sonarqube_extensions: sonarqube_logs: postgresql: postgresql_data: |
실행 완료...
private github와 연동
https://docs.sonarqube.org/9.6/devops-platform-integration/github-integration/
'시스템' 카테고리의 다른 글
github runner group (0) | 2024.02.02 |
---|---|
Forigate 방화벽 Syslog 백업 (0) | 2023.07.21 |
키바나 설치 (0) | 2023.04.28 |
Logstash 설치 (0) | 2023.04.27 |
iptime 공유기 & mesh linksys 콜라보레이션 무선 AP 구성 (0) | 2023.04.18 |