update comments, add helper script to push local build to rpi

master
Aurélien Bondis 6 years ago
parent b711ef82da
commit 199b74a144

@ -2,10 +2,16 @@
ALPINE_VER="3.8"
DISTRO="balenalib/rpi-alpine:$ALPINE_VER"
# Used for Radicale
EDGE_DISTRO="balenalib/rpi-alpine:edge"
# Used for webmails
PHP="arm32v7/php:7.2-apache"
# NOTE: Might not be needed since using multiarch/qemu
QEMU="$(which qemu-arm-static)"
cp $QEMU ../webmails/rainloop/
cp $QEMU ../webmails/roundcube/
# use qemu-*-static from docker container
docker run --rm --privileged multiarch/qemu-user-static:register
docker-compose -f build.yml build --build-arg DISTRO=$DISTRO --build-arg PHP_DISTRO=$PHP --build-arg EDGE_DISTRO=$EDGE_DISTRO --parallel $@

@ -0,0 +1,6 @@
#!/bin/bash -x
# Small script to deploy locally built images to a remote docker
compose_options=$1
images=$(docker-compose $1 images | awk 'NR > 2 { printf $2":"$3" " }')
docker save $images | pigz - > mail.local.tgz
echo "now run 'docker -H \"ssh://user@host\" load -i mail.local.tgz"
Loading…
Cancel
Save