Skip to content

Conversation

@tomatozil
Copy link
Collaborator

🔧 어떤 작업인가요?

에뮬레이터를 컨테이너 여러개로 띄우기 위해 monicar-emulator/simulation 에 파일들을 추가하고
yml이나 코드를 조금 수정했습니다.

#️⃣ 연관된 이슈

#305

💡 리뷰어에게 하고 싶은 말

크게 아래와 같은 작업이 있습니다.

  1. monicar-emulator/src/main/resources/application.yml에 프로필 세개와 각자 써야 할 gpx 파일, 차량 정보 환경 변수 추가
  2. Dockerfile, docker-compose.yml, 쉘 스크립트 파일 추가
    📍각자 컴퓨터에서 하나 띄울 때: monicar-emulator/simulation에서 start-one-container.sh 을 원하는 profile로 수정하고 실행
    📍하나의 컴퓨터에서 세대 다 띄울 때: monicar-emulator/simulation에서 start-three-container.sh 을 실행
  3. 에뮬레이터가 차량 정보를 환경 변수로 받아 쓸 수 있도록 클래스 구조 변경!
    📍 FixedVehicleInfo가 VehicleConstant만 썼음 -> VehicleDynamic를 주입받아 쓸 수 있게 됨
    📍 FixedVehicleInfo가 Component로 스프링 컨테이너의 관리를 받으면서도, 정적 객체처럼 주입 없이 쓸 수 있으려면ApplicationContextProvider가 필요해서 추가 !

🙏 아래 내용이 모두 충족 되었는지 확인해주세요 🙏

  • PR 이전 dev 브랜치 병합 하셨나요?
  • PR 이전 빌드 테스트 정상적으로 성공했나요?
  • PR 상세내용이 충분히 기재 되었나요?
  • PR 리뷰어, 할당자, 라벨, 프로젝트 확인

@tomatozil tomatozil added the 🔧 Chore 빌드 업무 수정, 패키지 매니저 설정 등 (소스 코드 수정 없음) label Feb 16, 2025
@tomatozil tomatozil requested a review from kbyunghoon February 16, 2025 10:18
@tomatozil tomatozil self-assigned this Feb 16, 2025
@tomatozil tomatozil linked an issue Feb 16, 2025 that may be closed by this pull request
3 tasks
Copy link
Collaborator

@kbyunghoon kbyunghoon left a comment

Choose a reason for hiding this comment

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

리뷰 남겼습니다

Copy link
Collaborator

@kbyunghoon kbyunghoon left a comment

Choose a reason for hiding this comment

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

확인했습니다. 수고하셨습니다.

@tomatozil tomatozil merged commit 70f903b into develop Feb 17, 2025
@tomatozil tomatozil deleted the chore/#305-에뮬레이터-각기-다른-gpx-파일로-컨테이너-만들기 branch February 27, 2025 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔧 Chore 빌드 업무 수정, 패키지 매니저 설정 등 (소스 코드 수정 없음)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[chore] 에뮬레이터 각기 다른 gpx 파일로 컨테이너 만들기

3 participants