ludc
2023-06-30 e146bc181625aee75624f8364654721cfd886254
Source/UBCS/service-stop.sh
@@ -7,7 +7,7 @@
    containerName=ubcs-auth
    #如果存在,就关闭并且删除该容器
    if [[ -n $(docker ps -q -f "name=$containerName") ]];then
         echo $containerName"is up,we will stop and remove it !!!"
         echo $containerName" is up,we will stop and remove it !!!"
         docker stop $containerName
         docker rm $containerName
         docker rmi $imagesName
@@ -18,7 +18,7 @@
    imagesName=vci-ubcs/ubcs-admin
    containerName=ubcs-admin
    if [[ -n $(docker ps -q -f "name=$containerName") ]];then
             echo $containerName"is up,we will stop and remove it !!!"
             echo $containerName" is up,we will stop and remove it !!!"
             docker stop $containerName
             docker rm $containerName
             docker rmi $imagesName
@@ -29,7 +29,7 @@
    imagesName=vci-ubcs/ubcs-auth
    containerName=ubcs-auth
    if [[ -n $(docker ps -q -f "name=$containerName") ]];then
             echo $containerName"is up,we will stop and remove it !!!"
             echo $containerName" is up,we will stop and remove it !!!"
             docker stop $containerName
             docker rm $containerName
             docker rmi $imagesName
@@ -40,7 +40,7 @@
    imagesName=vci-ubcs/ubcs-log
    containerName=ubcs-log
    if [[ -n $(docker ps -q -f "name=$containerName") ]];then
             echo $containerName"is up,we will stop and remove it !!!"
             echo $containerName" is up,we will stop and remove it !!!"
             docker stop $containerName
             docker rm $containerName
             docker rmi $imagesName
@@ -51,7 +51,7 @@
    imagesName=vci-ubcs/ubcs-desk
    containerName=ubcs-desk
    if [[ -n $(docker ps -q -f "name=$containerName") ]];then
             echo $containerName"is up,we will stop and remove it !!!"
             echo $containerName" is up,we will stop and remove it !!!"
             docker stop $containerName
             docker rm $containerName
             docker rmi $imagesName
@@ -62,7 +62,7 @@
    imagesName=vci-ubcs/ubcs-flow
    containerName=ubcs-flow
    if [[ -n $(docker ps -q -f "name=$containerName") ]];then
             echo $containerName"is up,we will stop and remove it !!!"
             echo $containerName" is up,we will stop and remove it !!!"
             docker stop $containerName
             docker rm $containerName
             docker rmi $imagesName
@@ -73,7 +73,7 @@
    imagesName=vci-ubcs/ubcs-develop
    containerName=ubcs-develop
    if [[ -n $(docker ps -q -f "name=$containerName") ]];then
             echo $containerName"is up,we will stop and remove it !!!"
             echo $containerName" is up,we will stop and remove it !!!"
             docker stop $containerName
             docker rm $containerName
             docker rmi $imagesName
@@ -84,7 +84,7 @@
    imagesName=vci-ubcs/ubcs-jobadmin
    containerName=ubcs-jobadmin
    if [[ -n $(docker ps -q -f "name=$containerName") ]];then
             echo $containerName"is up,we will stop and remove it !!!"
             echo $containerName" is up,we will stop and remove it !!!"
             docker stop $containerName
             docker rm $containerName
             docker rmi $imagesName
@@ -95,7 +95,7 @@
    imagesName=vci-ubcs/ubcs-job
    containerName=ubcs-job
    if [[ -n $(docker ps -q -f "name=$containerName") ]];then
             echo $containerName"is up,we will stop and remove it !!!"
             echo $containerName" is up,we will stop and remove it !!!"
             docker stop $containerName
             docker rm $containerName
             docker rmi $imagesName
@@ -106,7 +106,7 @@
    imagesName=vci-ubcs/ubcs-report
    containerName=ubcs-report
    if [[ -n $(docker ps -q -f "name=$containerName") ]];then
             echo $containerName"is up,we will stop and remove it !!!"
             echo $containerName" is up,we will stop and remove it !!!"
             docker stop $containerName
             docker rm $containerName
             docker rmi $imagesName
@@ -117,7 +117,7 @@
    imagesName=vci-ubcs/ubcs-resource
    containerName=ubcs-resource
    if [[ -n $(docker ps -q -f "name=$containerName") ]];then
             echo $containerName"is up,we will stop and remove it !!!"
             echo $containerName" is up,we will stop and remove it !!!"
             docker stop $containerName
             docker rm $containerName
             docker rmi $imagesName
@@ -128,7 +128,7 @@
    imagesName=vci-ubcs/ubcs-swagger
    containerName=ubcs-swagger
    if [[ -n $(docker ps -q -f "name=$containerName") ]];then
             echo $containerName"is up,we will stop and remove it !!!"
             echo $containerName" is up,we will stop and remove it !!!"
             docker stop $containerName
             docker rm $containerName
             docker rmi $imagesName
@@ -139,7 +139,7 @@
    imagesName=vci-ubcs/ubcs-system
    containerName=ubcs-system
    if [[ -n $(docker ps -q -f "name=$containerName") ]];then
             echo $containerName"is up,we will stop and remove it !!!"
             echo $containerName" is up,we will stop and remove it !!!"
             docker stop $containerName
             docker rm $containerName
             docker rmi $imagesName
@@ -150,7 +150,7 @@
    imagesName=vci-ubcs/ubcs-user
    containerName=ubcs-user
    if [[ -n $(docker ps -q -f "name=$containerName") ]];then
             echo $containerName"is up,we will stop and remove it !!!"
             echo $containerName" is up,we will stop and remove it !!!"
             docker stop $containerName
             docker rm $containerName
             docker rmi $imagesName
@@ -161,7 +161,7 @@
    imagesName=vci-ubcs/ubcs-gateway
    containerName=ubcs-gateway
    if [[ -n $(docker ps -q -f "name=$containerName") ]];then
             echo $containerName"is up,we will stop and remove it !!!"
             echo $containerName" is up,we will stop and remove it !!!"
             docker stop $containerName
             docker rm $containerName
             docker rmi $imagesName
@@ -172,7 +172,7 @@
    imagesName=vci-ubcs/ubcs-omd
    containerName=ubcs-omd
    if [[ -n $(docker ps -q -f "name=$containerName") ]];then
             echo $containerName"is up,we will stop and remove it !!!"
             echo $containerName" is up,we will stop and remove it !!!"
             docker stop $containerName
             docker rm $containerName
             docker rmi $imagesName
@@ -183,7 +183,7 @@
    imagesName=vci-ubcs/ubcs-code
    containerName=ubcs-code
    if [[ -n $(docker ps -q -f "name=$containerName") ]];then
             echo $containerName"is up,we will stop and remove it !!!"
             echo $containerName" is up,we will stop and remove it !!!"
             docker stop $containerName
             docker rm $containerName
             docker rmi $imagesName
@@ -194,7 +194,7 @@
    imagesName=vci-ubcs/ubcs-applyjtcodeservice
    containerName=ubcs-applyjtcodeservice
    if [[ -n $(docker ps -q -f "name=$containerName") ]];then
             echo $containerName"is up,we will stop and remove it !!!"
             echo $containerName" is up,we will stop and remove it !!!"
             docker stop $containerName
             docker rm $containerName
             docker rmi $imagesName