From 3043ba1ebff63699daf0b20b3c6039e2227cb67a Mon Sep 17 00:00:00 2001 From: govl6113 <81179951+govl6113@users.noreply.github.com> Date: Wed, 27 Sep 2023 23:38:35 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20deploy.sh=EC=9E=91=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 deploy.sh diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..bafd8c7 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,6 @@ +export JASYPT_ENCRYPTOR_PASSWORD=${password} + +docker ps -q --filter "name=cakk" | grep -q . && docker stop cakk && docker rm cakk | true +docker rmi cakk:lastest +docker build -t cakk:lastest /home/ubuntu/docker/jenkins/workspace/cakk/. +docker run -p 8081:8080 -d --name=cakk -e JASYPT_ENCRYPTOR_PASSWORD=$JASYPT_ENCRYPTOR_PASSWORD cakk:lastest