Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: 서버 재부팅 시 Docker 컨테이너 자동 시작 설정 추가 완료 #101

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

limehee
Copy link
Collaborator

@limehee limehee commented Jan 7, 2025

Summary

#100

Docker 컨테이너가 서버 재부팅 시 자동으로 시작되지 않는 문제를 해결하기 위해 Jenkins 파이프라인 스크립트를 수정하였습니다. 스프링 애플리케이션과 FastAPI 각각의 특성에 맞는 --restart 옵션을 추가하여 안정적인 서비스 동작을 보장합니다.

Tasks

  • Jenkins 파이프라인 스크립트에서 Docker 컨테이너 실행 명령 수정
    • 스프링 애플리케이션: --restart unless-stopped 옵션 추가
    • FastAPI: --restart always 옵션 추가
  • 서버 재부팅 후 Docker 컨테이너 자동 시작 확인

ETC

  • 작업 후 테스트를 통해 서버 재부팅 시 컨테이너가 정상적으로 자동 시작되는 것을 확인하였습니다.

@limehee limehee added 🌎 Intra 서버 인프라 및 도메인 관련 🔨 Refactor 코드 수정 및 개선 labels Jan 7, 2025
@limehee limehee requested a review from Copilot January 7, 2025 17:00
@limehee limehee self-assigned this Jan 7, 2025
@limehee limehee linked an issue Jan 7, 2025 that may be closed by this pull request

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

Files not reviewed (2)
  • cd/Jenkinsfile.core: Language not supported
  • cd/Jenkinsfile.rhythm: Language not supported
Copy link

github-actions bot commented Jan 7, 2025

🛠️ Test Summary (success)

📄 View Detailed Test Logs

Metrics Test Result Details
Total Tests 496
Tests Passed 496
Tests Failed 0
⚠️ Tests Skipped 0
⏱️ Execution Time 60.37s

Copy link

sonarqubecloud bot commented Jan 7, 2025

Copy link

github-actions bot commented Jan 7, 2025

📉 JaCoCo Coverage Verification Results

Class Metric Actual Threshold Type Expected
com.stempo.ApiApplication lines covered 0.00 minimum 0.50
com.stempo.annotation.SuccessApiResponseCustomizer branches covered 0.66 minimum 0.70
com.stempo.config.WebConfig.1 branches covered 0.00 minimum 0.70
com.stempo.config.WebConfig.1 lines covered 0.20 minimum 0.50
com.stempo.support.yaml.YamlEnvironmentPostProcessor branches covered 0.30 minimum 0.70

(If empty, there are no coverage violations.)

HTML Coverage Report

You can download the HTML coverage report from the Artifacts of this run:
View Coverage HTML Artifacts

@limehee limehee merged commit 4018ed2 into develop Jan 7, 2025
8 checks passed
@limehee limehee deleted the refactor/#100 branch January 7, 2025 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌎 Intra 서버 인프라 및 도메인 관련 🔨 Refactor 코드 수정 및 개선
Projects
None yet
Development

Successfully merging this pull request may close these issues.

서버 재부팅 시 Docker 컨테이너 자동 시작 설정 추가
1 participant