Search

현재 상황 정리해봅시다.

BacklogNumber
0
Domain
Issue
Status
생성 일시
2023/07/31 09:47

Description

Frontend에서 CI랑 CD를 진행중이었음 CI는 단순하게 workflow 파일을 설정해서 npm run test를 하게 만들었음
node.js.yml
CD는 Build한 뒤에 Deploy과정을 거쳐야지 완료가 됨
main.yml
Dockerfile
docker-compose.yml
nginx.conf
현재 Build과정은 내부에서 올려진 코드를 베이스로 Build하고 Build된 이미지를 Docker로 올려놓는작업인데
Deploy에서 문제가 발생해서 예정된 작업인 Docker에서 이미지를 가지고 docker-compose 하는게 안 되고 있다.
초반에 문제는 인스턴스 상에서 ./run.sh를 안 했기 때문에 발생된 문제라고 인식했지만 인스턴스에서 ./run.sh를 해보니
[ec2-user@ip-172-31-15-229 ~]$ pwd /home/ec2-user [ec2-user@ip-172-31-15-229 ~]$ ls actions-runner ntt_front [ec2-user@ip-172-31-15-229 ~]$ cd actions-runner [ec2-user@ip-172-31-15-229 actions-runner]$ pwd /home/ec2-user/actions-runner [ec2-user@ip-172-31-15-229 actions-runner]$ ls _diag env.sh run.sh _work externals safe_sleep.sh actions-runner-linux-x64-2.304.0.tar.gz run-helper.cmd.template svc.sh bin run-helper.sh config.sh run-helper.sh.template [ec2-user@ip-172-31-15-229 actions-runner]$ ./run.sh √ Connected to GitHub Failed to create a session. The runner registration has been deleted from the server, please re-configure. Runner listener exit with terminated error, stop the service, no retry needed. Exiting runner...
JSON
복사
./run.sh 자체가 문제였다.
Github에서 제대로 설정을 안 한건지 인스턴스 상에서 제대로 설정을 안 한건지 모르겠다.
현재 Build과정이 오래걸리니 빠르게 돌려보자

Try

1.
아니 Build도 문제가 있네 Commit 기록을 뒤져보니 nginx.conf를 잘못 설정해서 그런것 같다.
2.
nginx.conf를 수정한뒤에 commit하니 Build는 통과
1.
현재 ./run,sh파일이 잘못된 경로로 올라가있는것 같다.

Solution