From 34e752f23660c96be058eaf8f3b6b722ade5d6cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=95=9C=EA=B4=80=ED=9D=AC?= Date: Tue, 7 Jan 2025 12:20:34 +0900 Subject: [PATCH] =?UTF-8?q?refactor(CD):=20=EC=84=9C=EB=B2=84=20=EC=9E=AC?= =?UTF-8?q?=EB=B6=80=ED=8C=85=20=EC=8B=9C=20Docker=20=EC=BB=A8=ED=85=8C?= =?UTF-8?q?=EC=9D=B4=EB=84=88=20=EC=9E=90=EB=8F=99=20=EC=8B=9C=EC=9E=91=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cd/Jenkinsfile.core | 1 + cd/Jenkinsfile.rhythm | 1 + 2 files changed, 2 insertions(+) diff --git a/cd/Jenkinsfile.core b/cd/Jenkinsfile.core index 094170d..94a762e 100644 --- a/cd/Jenkinsfile.core +++ b/cd/Jenkinsfile.core @@ -354,6 +354,7 @@ def deployNewInstance() { -v ${env.HOST_LOGS_PATH}:${env.CONTAINER_LOGS_PATH} \\ -e LOG_PATH=${env.CONTAINER_LOGS_PATH} \\ -e SPRING_PROFILES_ACTIVE=${env.PROFILE} \\ + --restart unless-stopped \\ ${env.IMAGE_NAME}:${env.DEPLOY_CONTAINER} echo "Checking if infra network ${env.INFRA_NETWORK} exists" diff --git a/cd/Jenkinsfile.rhythm b/cd/Jenkinsfile.rhythm index 3571e9e..dd4abe9 100644 --- a/cd/Jenkinsfile.rhythm +++ b/cd/Jenkinsfile.rhythm @@ -261,6 +261,7 @@ def deployNewInstance() { docker run -d --name ${env.CONTAINER_NAME} \\ -p ${env.APP_PORT}:5000 \\ --network ${env.APPLICATION_NETWORK} \\ + --restart always \\ ${env.IMAGE_NAME}:${env.CONTAINER_NAME} echo "Checking if infra network ${env.INFRA_NETWORK} exists"