ss0510s의 개발 블로그
close
프로필 배경
프로필 로고

ss0510s의 개발 블로그

  • 분류 전체보기
    • BackEnd
      • DB
      • SpringBoot
      • Java
    • WebSocket
    • Books
      • Head First Design Pattern
    • Infra
    • AI
  • 홈
  • 태그
  • 방명록
[Infra] SonarQube Jenkins 연동

[Infra] SonarQube Jenkins 연동

SonarQube프로그램 정적 분석 도구로, 실행 없이 코드를 분석하는 것 SonarQube 설치docker-compose를 이용해 설치하는 방법sonarqube를 사용하기 위해서는 PostgreSQL DB가 필요sonarqube를 실행하기 전, postgresql에서 sonar 유저와 DB 생성 필요docker-compose.yml sonarqube: image: sonarqube:community ports: - "9000:9000" container_name: sonarqube depends_on: - postgres environment: SONAR_JDBC_URL: jdbc:postgresql://postgres:5432/${DATABASE}..

  • format_list_bulleted Infra
  • · 2024. 5. 27.
  • textsms

[Infra] BackEnd Blue-Green 배포

✅ [문제점]배포되는 과정에서 서비스가 중단되거나 오류가 발생한 경우 정상적으로 동작하지 않음특히, MSA로 아키텍처를 설계하면 마이크로 서비스가 미들웨어 서버에 등록되는 과정에서 1분간의 딜레이가 발생하여 1분동안 서비스를 이용할 수 없음=> 무중단 배포 도입무중단 배포서비스 장애와 배포의 부담을 최소화하기 위해 운영 중인 서비스를 중단하지 않고 신규 소프트웨어를 배포하는 기술종류1. 롤링 배포사용 중인 인스턴스 내에서 새 버전을 점진적으로 교체하는 것장점인스턴스마다 차례로 배포를 진행하기 때문에 상황에 따라 손쉽게 롤백이 가능많은 서버 자원을 확보하지 않아도 됨단점배포 도중 서비스 중인 인스턴스가 줄어들면 각각의 서버가 부담하는 트래픽 양이 증가할 수도 있음호환성 문제 발생2. 블루그린 배포구버전과 ..

  • format_list_bulleted Infra
  • · 2024. 5. 27.
  • textsms

[Infra] Spring Boot Pipeline 구축

[Infra] Spring Boot Pipeline 구축DockerfileFROM openjdk:{버전}LABEL authors="{작성자}"COPY build/libs/*.jar app.jarENTRYPOINT ["java", "-jar", "app.jar"]  backend 폴더 내에 추가Pipeline멀티브런치를 이용해 분리했을 경우, Manged File > groovy file > pipeline jenkins 파일 생성해서 작성pipeline { agent any tools { gradle "gradle" } options { disableConcurrentBuilds() }tools: 파이프라인에서 사용할 도구를 정의, gradle 도구 사..

  • format_list_bulleted Infra
  • · 2024. 5. 25.
  • textsms
[Infra] React Pipeline 구축

[Infra] React Pipeline 구축

[Infra] React Pipeline 구축Dockerfile## 1. Build React AppFROM node:alpine as builderWORKDIR /appCOPY package*.json .RUN npm ci --forceCOPY . .RUN npm run build## 2. React를 Nginx로 ServeFROM nginx:latestRUN rm /etc/nginx/conf.d/default.confCOPY ./nginx.conf /etc/nginx/conf.dRUN ls -alWORKDIR /usr/share/nginx/htmlCOPY --from=builder /app/dist /usr/share/nginx/htmlEXPOSE 80CMD ["nginx", "-g", "daemon..

  • format_list_bulleted Infra
  • · 2024. 5. 25.
  • textsms
[Infra] Jenkins - GitLab 연동

[Infra] Jenkins - GitLab 연동

[Infra] Jenkins - GitLab 연동💡 BackEnd와 FrontEnd 파이프라인을 분리하고, BackEnd는 Application 별로 파이프라인을 분리하여, 해당 폴더 내용이 변경되었을 때만 파이프라인이 실행되도록 독립적으로 구성한다.[1] GitLab Access TokenProject -> Settings -> Project Access Tokens에서 Add new token을 통해 token 발급[2] System → GitLab ServerGitLab Credential 등록 (API Token)Jenkins 관리 - Manage Credentials 클릭Stores scoped to Jenkins - Domains - (global) - Add credentials 클릭Add..

  • format_list_bulleted Infra
  • · 2024. 5. 25.
  • textsms

[Infra] Jenkins 설치

Jenkins 설치Jenkins의 Docker FileFROM jenkins/jenkins:ltsUSER root# Install dependenciesRUN apt-get update -qq \ && apt-get install -qqy apt-transport-https ca-certificates curl gnupg2 software-properties-common# Install DockerRUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -RUN add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/debian \ $(lsb_..

  • format_list_bulleted Infra
  • · 2024. 5. 25.
  • textsms
  • navigate_before
  • 1
  • navigate_next
전체 카테고리
  • 분류 전체보기
    • BackEnd
      • DB
      • SpringBoot
      • Java
    • WebSocket
    • Books
      • Head First Design Pattern
    • Infra
    • AI
최근 글
인기 글
최근 댓글
태그
  • #mongoDB
  • #STOMP
  • #react
  • #head first desgin pattern
  • #Jenkins
  • #java21
  • #Head First Design Pattern
  • #spring boot
  • #Pipeline
  • #Infra
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바