You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-08-10 22:31:47 +02:00
update comments, add helper script to push local build to rpi
This commit is contained in:
@@ -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 $@
|
||||
|
6
tests/deploy_to_pi.sh
Executable file
6
tests/deploy_to_pi.sh
Executable file
@@ -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"
|
Reference in New Issue
Block a user