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