HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
♥️
2기 최종 프로젝트 팀별 공간
/
[팀 08] 사이코
[팀 08] 사이코
/
프로젝트 세팅
프로젝트 세팅
프로젝트 세팅
프로젝트 세팅

프로젝트 세팅

 

프로젝트 생성

버전

  • java : 11
  • gradle : 7.5
  • springboot : 2.7.2

의존성

  • spring web
  • spring restdocs
 
의존성은 개발하면서 추가
 
코드 스타일 xml
Saiko.xml
2.8KB

리드미 작성

CI/CD

.husky → 커밋 메시지 자동화 (git hook 공유)
sonarqube → 코드 품질 자동화 (컨벤션 맞춰서 pr에 코멘트) http://3.39.218.101/
codecov → 테스트 커버리지 자동화 (테스트 커버리지 확인해서 pr에 코멘트)
 
sonarqube 적용
ec2 인스턴스 내 docker-compose로 이미지 띄워서 서버를 띄울 예정
docker-compose.yml에 대해
 
Docker - docker compose 기본 사용법
도커 입문 수업을 듣고 중요한 내용을 정리했습니다. 개인 공부 후 자료를 남기기 위한 목적이므로 내용 상에 오류가 있을 수 있습니다. docker compose의 기본 작성법과 주요 명령들을 이해하고자 한다. docker compose는 여러 개의 docker container를 모아서 관리하기 위한 툴이다. 웹 서비스는 일반적으로 프론트엔드 서버, 벡엔드 서버, 데이터베이스 서버로 구성되기 때문에 각 서버를 docker container로 연결하여 동작시키고 docker compose를 사용하여 해당 컨테이너들을 관리하는 것이다.
Docker - docker compose 기본 사용법
https://unpasoadelante.tistory.com/197
Docker - docker compose 기본 사용법
Docker Compose 네트워크
Docker Compose는 여러 개의 컨테이너(container)로 구성된 애플리케이션을 관리하기 위한 간단한 오케스트레이션(Orchestration) 도구입니다. 여러 개의 컨테이너로 구성된 Docker Compose 애플리케이션 내에서 컨테이너 간의 통신은 어떻게 이루어질까요? Docker 네트워크에 대해서 생소하신 분들은 관련 포스팅 를 통해 먼저 기본 개념을 파악하시기를 권장드립니다. Docker Compose 설정법이나 커맨드가 생소하신 분들은 아래 포스팅를 먼저 읽고 돌아오시기를 추천드립니다.
Docker Compose 네트워크
https://www.daleseo.com/docker-compose-networks/
Docker Compose 네트워크
docker-sonarqube/docker-compose.yml at master · SonarSource/docker-sonarqube
You can't perform that action at this time. You signed in with another tab or window. You signed out in another tab or window. Reload to refresh your session. Reload to refresh your session.
docker-sonarqube/docker-compose.yml at master · SonarSource/docker-sonarqube
https://github.com/SonarSource/docker-sonarqube/blob/master/example-compose-files/sq-with-postgres/docker-compose.yml
docker-sonarqube/docker-compose.yml at master · SonarSource/docker-sonarqube
notion image
sha256:b89044d191da13a4668513182555e8ee55498921078e49bbe90923c86c64a535
[Docker] docker compose 사용법
Docker compose란, 여러 개의 컨테이너로부터 이루어진 서비스를 구축, 실행하는 순서를 자동으로 하여, 관리를 간단히하는 기능이다. Docker compose에서는 compose 파일을 준비하여 커맨드를 1회 실행하는 것으로, 그 파일로부터 설정을 읽어들여 모든 컨테이너 서비스를 실행시키는 것이 가능하다. Docker compose를 사용하기 위해서는, 크게 나눠 아래의 세 가지 순서로 이루어진다.
[Docker] docker compose 사용법
https://engineer-mole.tistory.com/221
[Docker] docker compose 사용법
docker-compose로 sonarqube 설치하기
요즘은 도커가 많이 활성화 되어서 각종 환경 구성이 용이하다.오늘 설치할 소나큐브는 정적분석 도구로서 소스코드 취약점을 분석해 주는 오픈소스이다.(공식사이트: https://www.sonarqube.org/) 소나큐브는 내부적으로 데이터베이스를 활용하며 오늘 가이드에서는 postgre를 이용해 설치한다. docker를 이용해 구성하기에는 cli 명령어를 2번 써야 하므로 docker-compose를 활용해 sonarqube를 설치한다. (설치 순서 & 제약사항) AWS EC2에 docker-compose를 먼저 설치한다.
docker-compose로 sonarqube 설치하기
https://gblee1987.tistory.com/105
docker-compose로 sonarqube 설치하기
SonarQube7.9 설치하기 /w PostgreSQL (docker-compose)
SonarQube7.9 + PostgreSQL 설치 방법을 공유 합니다. docker-compose 로 진행합니다. (이제 컨테이너 아니면, 설치를 못ㅎ..
SonarQube7.9 설치하기 /w PostgreSQL (docker-compose)
https://velog.io/@king/SonarQube7.9-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-with-PostgreSQL-docker-compose-dgk56rd2db
SonarQube7.9 설치하기 /w PostgreSQL (docker-compose)
SonarQube with Postgres on docker-compose - Paul Edenburg
Struggling to get a working environment with SonarQube and PostgreSQL? Use the following docker-compose file and be up and running in minutes.
SonarQube with Postgres on docker-compose - Paul Edenburg
https://pauledenburg.com/sonarqube-postgres-docker-compose/
SonarQube with Postgres on docker-compose - Paul Edenburg
How to run SonarQube using Docker-Compose
SonarQube is static code analyis tool. It can be installed quickly using Docker-compose with fewer manual steps.SonarQube is an automatic code review tool to detect bugs, vulnerabilities, and code smells in your code. It can integrate with your existing workflow to enable continuous code inspection across your project branches and pull requests.
How to run SonarQube using Docker-Compose
https://blog.knoldus.com/how-to-run-sonarqube-using-docker-compose/
How to run SonarQube using Docker-Compose
우리 팀의 코드 품질은? 정적코드 분석도구, 소나큐브 적용기
소나큐브는 대표적인 코드 정적분석 툴입니다. 정적 분석이란 말은, 프로그램을 실행하지 않고 코드를 살펴 문제점을 살펴준다는 뜻입니다. 소나큐브가 필요한 이유와 분석해주는 항목에 대해선 다음 슬라이드에서 잘 설명되고 있어 첨부합니다. sonarsource, sonarqube 소개 제가 진행하는 프로젝트에선 github PR -> sonarqube에서 코드 정적분석 -> PR에 결과 리포트 링크를 하는 식으로 활용하고 있습니다~~! 프로젝트 1.
우리 팀의 코드 품질은? 정적코드 분석도구, 소나큐브 적용기
https://velog.io/@sihyung92/how-to-apply-sonarqube
우리 팀의 코드 품질은? 정적코드 분석도구, 소나큐브 적용기
AWS EC2에서 SonarQube 설치 및 구성
SonarQube는 소스 코드 품질 관리, 코드 분석을 위한 오픈소스 플랫폼이다. 코드 분석에 가장 널리 사용된다. SonarQube7.x는 다음과 같은 요구사항을 가진다. SonarQube 버전에 따라 요구사항에 맞게 설정해야 한다. 업데이트와 필요한 패키지를 설치한다. sudo yum update -y sudo yum install wget unzip -y Java 11를 설치한다. Amazon linux에서는 다음과 같이 설치한다.
AWS EC2에서 SonarQube 설치 및 구성
https://joobly.tistory.com/4
AWS EC2에서 SonarQube 설치 및 구성
What's the default superuser username/password for postgres after a new install?
CAUTION The answer about changing the UNIX password for "postgres" through "$ sudo passwd postgres" is not preferred, and can even be DANGEROUS! This is why: By default, the UNIX account "postgres" is locked, which means it cannot be logged in using a password. If you use "sudo passwd postgres", the account is immediately unlocked.
What's the default superuser username/password for postgres after a new install?
https://serverfault.com/questions/110154/whats-the-default-superuser-username-password-for-postgres-after-a-new-install
What's the default superuser username/password for postgres after a new install?
웹페이지 연결 후 CI적용
웹페이지 연결 후 CI 적용