Repository navigation
ci/cd(deploy): 개발환경 배포 대상을 CHUP-DEV VM으로 변경 - #88
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
배경
기존 개발환경 VM이 기간 만료로 내려가서, GSMSV에 새로 생성한 CHUP-DEV VM(VMID 127)으로 개발환경 배포 대상을 옮깁니다.
새 VM은 SSH 키가 아닌 비밀번호 인증이고, 외부 포트가 새로 할당되었습니다.
ssh.gsmsv.site:24127dev.chup.site:34178변경 사항
thup-dev-cd.ymlGSMSV_SSH_PORT)에서24127하드코딩으로 변경 (상용 워크플로우와 동일한 방식)GSMSV_SSH_PRIVATE_KEY)에서 비밀번호(DEV_GSMSV_SSH_PASSWORD)로 변경GSM SV VM→chup-dev VM으로 변경deploy/.env.example:DATAGSM_REDIRECT_URI예시를 새 HTTPS 포트 기준(https://dev.chup.site:34178/...)으로 갱신deploy/compose.yml: 인증서 발급 주석을 ZeroSSL → Let's Encrypt(VM의 acme.sh, DNS-01 수동 발급)로 갱신코드 외 작업 (완료)
DEV_GSMSV_SSH_PASSWORD추가DATAGSM_REDIRECT_URI를https://dev.chup.site:34178/api/auth/datagsm/callback으로 갱신ubuntu계정 docker 그룹 추가/home/ubuntu/thup/deploy/certs/생성dev.chup.site인증서 재발급deploy/certs/에fullchain.cer,dev.chup.site.key로 배치~/.acme.sh/acme.sh --renew -d dev.chup.site --ecc --yes-I-know-dns-manual-mode-enough-go-ahead-please후 TXT 레코드 갱신, 재실행,docker compose restart caddy필요머지 전 확인 사항
https://dev.chup.site:34178/api/auth/datagsm/callback으로 변경https://dev.chup.site:34178로 변경검증
ubuntu계정으로 SSH 접속 후 sudo 없이docker ps/docker compose version동작 확인_acme-challenge.dev.chup.siteTXT 레코드가 가비아 네임서버 및 8.8.8.8에서 조회되는 것 확인 후 인증서 발급 성공참고
GSMSV_SSH_PORT,GSMSV_SSH_PRIVATE_KEY,OAUTH_SUCCESS_REDIRECT_URL,OAUTH_FAILURE_REDIRECT_URLhttps://claude.ai/code/session_01S2HHoHhRPVceUM7dN3LwTP