Commit 2b4b367c authored by Nolan's avatar Nolan

Update email demo from LA to Portland.

Now a Real App (TM)!
parent 3173b446
spamassassin:
docker build --build-arg FROM_PREFIX=arm32v7/ -t spamassassin ./spamassassin
CONTAINERS += spamassassin
dovecot:
docker build --build-arg FROM_PREFIX=arm32v7/ -t dovecot ./dovecot
CONTAINERS += dovecot
postfix:
docker build --build-arg FROM_PREFIX=arm32v7/ -t postfix ./postfix
CONTAINERS += postfix
PHONY += $(CONTAINERS)
PHONY += all
all: $(CONTAINERS)
#XXX Remove the -0 from xz when things are stable.
PHONY += deploy
deploy: $(CONTAINERS)
@test $(SERVER)
docker save $? | xz -0 | pv -W | ssh root@$(SERVER) 'cat>data/sslnginx/html/apps/email.tar.xz'
scp startemail root@$(SERVER):~/data/sslnginx/html/apps/
.PHONY: $(PHONY)
#!/bin/sh
#bash /mnt/sda1/dnsc '["init","nolan.boundery.me","108.255.194.60",3]'
#bash /mnt/sda1/dnsc '["add","mail","A","108.255.194.60"]'
#bash /mnt/sda1/dnsc '["add","@","MX",["mail.nolan.boundery.me.",10]]'
#XXX Obviously this needs to be a declarative format, downloading and running
# sh code on the host is a non-starter...
......@@ -27,3 +23,7 @@ docker network connect spam-dove dovecot
docker start dovecot
docker start spamassassin
docker start postfix
bash /mnt/sda1/dnsc '["add","imap","A","172.18.0.2"]'
#bash /mnt/sda1/dnsc '["add","mail","A","PUBLIC_IP"]'
#bash /mnt/sda1/dnsc '["add","@","MX",["mail.nolan.boundery.me.",10]]'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment