Fix messages and rebuild without cache
parent
5b9e598f6f
commit
1715a7a871
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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}
|
||||||
|
|
|
@ -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}
|
||||||
|
|
|
@ -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}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue