Fix messages and rebuild without cache

master
andryyy 2016-12-09 20:52:19 +01:00
parent 5b9e598f6f
commit 1715a7a871
10 changed files with 13 additions and 13 deletions

View File

@ -21,7 +21,7 @@ if [[ ! -z $(docker ps -af "name=${NAME}" -q) ]]; then
fi fi
if [[ ! -z "$(docker images -q dovecot)" ]]; then 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,,} response=${response,,}
if [[ $response =~ ^(yes|y)$ ]]; then if [[ $response =~ ^(yes|y)$ ]]; then
docker rmi dovecot docker rmi dovecot

View File

@ -12,7 +12,7 @@ if [[ ! -z $(docker ps -af "name=${NAME}" -q) ]]; then
fi fi
if [[ ! -z "$(docker images -q rmilter)" ]]; then 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,,} response=${response,,}
if [[ $response =~ ^(yes|y)$ ]]; then if [[ $response =~ ^(yes|y)$ ]]; then
docker rmi memcached docker rmi memcached

View File

@ -50,7 +50,7 @@ if [[ ! -z $(docker ps -af "name=${NAME}" -q) ]]; then
fi fi
if [[ ! -z "$(docker images -q mysql:${DBVERS})" ]]; then 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,,} response=${response,,}
if [[ $response =~ ^(yes|y)$ ]]; then if [[ $response =~ ^(yes|y)$ ]]; then
docker rmi mysql:${DBVERS} docker rmi mysql:${DBVERS}

View File

@ -12,7 +12,7 @@ if [[ ! -z $(docker ps -af "name=${NAME}" -q) ]]; then
fi fi
if [[ ! -z "$(docker images -q nginx:${NGINXVERS})" ]]; then 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 response=${response,,} # tolower
if [[ $response =~ ^(yes|y)$ ]]; then if [[ $response =~ ^(yes|y)$ ]]; then
docker rmi nginx:${NGINXVERS} docker rmi nginx:${NGINXVERS}

View File

@ -11,7 +11,7 @@ if [[ ! -z $(docker ps -af "name=${NAME}" -q) ]]; then
fi fi
if [[ ! -z "$(docker images -q php:${PHPVERS})" ]]; then 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,,} response=${response,,}
if [[ $response =~ ^(yes|y)$ ]]; then if [[ $response =~ ^(yes|y)$ ]]; then
docker rmi php:${PHPVERS} docker rmi php:${PHPVERS}

View File

@ -21,7 +21,7 @@ if [[ ! -z $(docker ps -af "name=${NAME}" -q) ]]; then
fi fi
if [[ ! -z "$(docker images -q postfix)" ]]; then 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,,} response=${response,,}
if [[ $response =~ ^(yes|y)$ ]]; then if [[ $response =~ ^(yes|y)$ ]]; then
docker rmi postfix docker rmi postfix

View File

@ -21,7 +21,7 @@ if [[ ! -z $(docker ps -af "name=${NAME}" -q) ]]; then
fi fi
if [[ ! -z "$(docker images -q redis:${DBVERS})" ]]; then 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,,} response=${response,,}
if [[ $response =~ ^(yes|y)$ ]]; then if [[ $response =~ ^(yes|y)$ ]]; then
docker rmi redis:${DBVERS} docker rmi redis:${DBVERS}

View File

@ -12,11 +12,11 @@ if [[ ! -z $(docker ps -af "name=${NAME}" -q) ]]; then
fi fi
build() { build() {
docker build -t rmilter data/Dockerfiles/rmilter/. docker build --no-cache -t rmilter data/Dockerfiles/rmilter/.
} }
if [[ ! -z "$(docker images -q rmilter)" ]]; then 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,,} response=${response,,}
if [[ $response =~ ^(yes|y)$ ]]; then if [[ $response =~ ^(yes|y)$ ]]; then
docker rmi rmilter docker rmi rmilter

View File

@ -6,7 +6,7 @@
NAME="rspamd-mailcow" NAME="rspamd-mailcow"
build() { 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}..." echo "Stopping and removing containers with name tag ${NAME}..."
@ -16,7 +16,7 @@ if [[ ! -z $(docker ps -af "name=${NAME}" -q) ]]; then
fi fi
if [[ ! -z "$(docker images -q rspamd)" ]]; then 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,,} response=${response,,}
if [[ $response =~ ^(yes|y)$ ]]; then if [[ $response =~ ^(yes|y)$ ]]; then
docker rmi rspamd docker rmi rspamd

View File

@ -12,11 +12,11 @@ if [[ ! -z $(docker ps -af "name=${NAME}" -q) ]]; then
fi fi
build() { build() {
docker build -t sogo data/Dockerfiles/sogo/. docker build --no-cache -t sogo data/Dockerfiles/sogo/.
} }
if [[ ! -z "$(docker images -q sogo)" ]]; then 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 response=${response,,} # tolower
if [[ $response =~ ^(yes|y)$ ]]; then if [[ $response =~ ^(yes|y)$ ]]; then
docker rmi sogo docker rmi sogo