浏览代码

Fix messages and rebuild without cache

andryyy 8 年之前
父节点
当前提交
1715a7a871
共有 10 个文件被更改,包括 13 次插入13 次删除
  1. 1 1
      build-dovecot.sh
  2. 1 1
      build-memcached.sh
  3. 1 1
      build-mysql.sh
  4. 1 1
      build-nginx.sh
  5. 1 1
      build-php-fpm.sh
  6. 1 1
      build-postfix.sh
  7. 1 1
      build-redis.sh
  8. 2 2
      build-rmilter.sh
  9. 2 2
      build-rspamd.sh
  10. 2 2
      build-sogo.sh

+ 1 - 1
build-dovecot.sh

@@ -21,7 +21,7 @@ if [[ ! -z $(docker ps -af "name=${NAME}" -q) ]]; then
 fi
 
 if [[ ! -z "$(docker images -q dovecot)" ]]; then
-    read -r -p "Found image locally. Rebuild anyway? [y/N] " response
+    read -r -p "Found image locally. Delete local and rebuild without cache anyway? [y/N] " response
     response=${response,,}
     if [[ $response =~ ^(yes|y)$ ]]; then
         docker rmi dovecot

+ 1 - 1
build-memcached.sh

@@ -12,7 +12,7 @@ if [[ ! -z $(docker ps -af "name=${NAME}" -q) ]]; then
 fi
 
 if [[ ! -z "$(docker images -q rmilter)" ]]; then
-    read -r -p "Found image locally. Rebuild anyway? [y/N] " response
+    read -r -p "Found image locally. Delete local image and repull? [y/N] " response
     response=${response,,}
     if [[ $response =~ ^(yes|y)$ ]]; then
         docker rmi memcached

+ 1 - 1
build-mysql.sh

@@ -50,7 +50,7 @@ if [[ ! -z $(docker ps -af "name=${NAME}" -q) ]]; then
 fi
 
 if [[ ! -z "$(docker images -q mysql:${DBVERS})" ]]; then
-    read -r -p "Found image locally. Rebuild anyway? [y/N] " response
+    read -r -p "Found image locally. Delete local image and repull? [y/N] " response
     response=${response,,}
     if [[ $response =~ ^(yes|y)$ ]]; then
         docker rmi mysql:${DBVERS}

+ 1 - 1
build-nginx.sh

@@ -12,7 +12,7 @@ if [[ ! -z $(docker ps -af "name=${NAME}" -q) ]]; then
 fi
 
 if [[ ! -z "$(docker images -q nginx:${NGINXVERS})" ]]; then
-    read -r -p "Found image locally. Rebuild/pull anyway? [y/N] " response
+    read -r -p "Found image locally. Delete local image and repull? [y/N] " response
     response=${response,,}    # tolower
     if [[ $response =~ ^(yes|y)$ ]]; then
         docker rmi nginx:${NGINXVERS}

+ 1 - 1
build-php-fpm.sh

@@ -11,7 +11,7 @@ if [[ ! -z $(docker ps -af "name=${NAME}" -q) ]]; then
 fi
 
 if [[ ! -z "$(docker images -q php:${PHPVERS})" ]]; then
-    read -r -p "Found image locally. Rebuild/pull anyway? [y/N] " response
+    read -r -p "Found image locally. Delete local image and repull? [y/N] " response
     response=${response,,}
     if [[ $response =~ ^(yes|y)$ ]]; then
         docker rmi php:${PHPVERS}

+ 1 - 1
build-postfix.sh

@@ -21,7 +21,7 @@ if [[ ! -z $(docker ps -af "name=${NAME}" -q) ]]; then
 fi
 
 if [[ ! -z "$(docker images -q postfix)" ]]; then
-    read -r -p "Found image locally. Rebuild anyway? [y/N] " response
+    read -r -p "Found image locally. Delete local and rebuild without cache anyway? [y/N] " response
     response=${response,,}
     if [[ $response =~ ^(yes|y)$ ]]; then
         docker rmi postfix

+ 1 - 1
build-redis.sh

@@ -21,7 +21,7 @@ if [[ ! -z $(docker ps -af "name=${NAME}" -q) ]]; then
 fi
 
 if [[ ! -z "$(docker images -q redis:${DBVERS})" ]]; then
-    read -r -p "Found image locally. Rebuild/pull anyway? [y/N] " response
+    read -r -p "Found image locally. Delete local image and repull? [y/N] " response
     response=${response,,}
     if [[ $response =~ ^(yes|y)$ ]]; then
         docker rmi redis:${DBVERS}

+ 2 - 2
build-rmilter.sh

@@ -12,11 +12,11 @@ if [[ ! -z $(docker ps -af "name=${NAME}" -q) ]]; then
 fi
 
 build() {
-	docker build -t rmilter data/Dockerfiles/rmilter/.
+	docker build --no-cache -t rmilter data/Dockerfiles/rmilter/.
 }
 
 if [[ ! -z "$(docker images -q rmilter)" ]]; then
-	read -r -p "Found image locally. Rebuild anyway? [y/N] " response
+    read -r -p "Found image locally. Delete local and rebuild without cache anyway? [y/N] " response
 	response=${response,,}
 	if [[ $response =~ ^(yes|y)$ ]]; then
 		docker rmi rmilter

+ 2 - 2
build-rspamd.sh

@@ -6,7 +6,7 @@
 NAME="rspamd-mailcow"
 
 build() {
-    docker build -t rspamd data/Dockerfiles/rspamd/.
+    docker build --no-cache -t rspamd data/Dockerfiles/rspamd/.
 }
 
 echo "Stopping and removing containers with name tag ${NAME}..."
@@ -16,7 +16,7 @@ if [[ ! -z $(docker ps -af "name=${NAME}" -q) ]]; then
 fi
 
 if [[ ! -z "$(docker images -q rspamd)" ]]; then
-    read -r -p "Found image locally. Rebuild/pull anyway? [y/N] " response
+    read -r -p "Found image locally. Delete local and rebuild without cache anyway? [y/N] " response
     response=${response,,}
     if [[ $response =~ ^(yes|y)$ ]]; then
         docker rmi rspamd

+ 2 - 2
build-sogo.sh

@@ -12,11 +12,11 @@ if [[ ! -z $(docker ps -af "name=${NAME}" -q) ]]; then
 fi
 
 build() {
-	docker build -t sogo data/Dockerfiles/sogo/.
+	docker build --no-cache -t sogo data/Dockerfiles/sogo/.
 }
 
 if [[ ! -z "$(docker images -q sogo)" ]]; then
-    read -r -p "Found image locally. Rebuild anyway? [y/N] " response
+    read -r -p "Found image locally. Delete local and rebuild without cache anyway? [y/N] " response
     response=${response,,}    # tolower
     if [[ $response =~ ^(yes|y)$ ]]; then
         docker rmi sogo