Uploaded images to Docker hub

This commit is contained in:
andryyy
2016-12-13 22:12:54 +01:00
parent 1910e3bc29
commit 94530fcecd
6 changed files with 5 additions and 105 deletions

View File

@@ -4,10 +4,6 @@
NAME="rspamd-mailcow"
build() {
docker build --no-cache -t rspamd data/Dockerfiles/rspamd/.
}
PDNS_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' pdns-mailcow 2> /dev/null)
if [[ ! ${PDNS_IP} =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Cannot determine Powerdns Recursor ip address. Is the container running?"
@@ -20,17 +16,6 @@ if [[ ! -z $(docker ps -af "name=${NAME}" -q) ]]; then
docker rm $(docker ps -af "name=${NAME}" -q)
fi
if [[ ! -z "$(docker images -q rspamd)" ]]; then
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
build
fi
else
build
fi
# Needs network-alias because of different dns
docker run \
@@ -45,7 +30,7 @@ docker run \
--network-alias=rspamd \
-h rspamd \
--name ${NAME} \
-d rspamd
-d andryyy/mailcow-dockerized:rspamd
/bin/bash ./fix-permissions.sh