-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MATE-141 : [FEAT] 도커파일에 환경변수 전달 (#122)
* MATE-141 : [FEAT] 도커파일에 환경변수 전달 * MATE-141 : [FEAT] 스크립트 파일 실행 권한 부여 - 1. CodeDeploy가 배포할 때 자동으로 start-server.sh에 실행 권한을 부여
- Loading branch information
Showing
2 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
#!/bin/bash | ||
|
||
#!/bin/bash | ||
echo "--------------- 서버 배포 시작 -----------------" | ||
docker stop catchmi-server || true | ||
docker rm catchmi-server || true | ||
docker pull 533267244952.dkr.ecr.ap-northeast-2.amazonaws.com/catchmi-server:latest | ||
docker run -d --name catchmi-server \ | ||
docker run -d \ | ||
--name catchmi-server \ | ||
--restart unless-stopped \ | ||
-p 8080:8080 \ | ||
-e TZ=Asia/Seoul \ | ||
-e JWT_SECRET_KEY="${JWT_SECRET_KEY}" \ | ||
-e NAVER_CLIENT_ID="${NAVER_CLIENT_ID}" \ | ||
-e NAVER_REDIRECT_URI="${NAVER_REDIRECT_URI}" \ | ||
-e NAVER_CLIENT_SECRET="${NAVER_CLIENT_SECRET}" \ | ||
-e OPENWEATHER_API_KEY="${OPENWEATHER_API_KEY}" \ | ||
-e S3_BUCKET_NAME="${S3_BUCKET_NAME}" \ | ||
-e IAM_ACCESS_KEY="${IAM_ACCESS_KEY}" \ | ||
-e IAM_SECRET_KEY="${IAM_SECRET_KEY}" \ | ||
533267244952.dkr.ecr.ap-northeast-2.amazonaws.com/catchmi-server:latest | ||
echo "--------------- 서버 배포 끝 -----------------" |