2019-03-30 07:37:40 +02:00
|
|
|
#!/bin/bash -x
|
|
|
|
|
2019-03-31 21:52:43 +02:00
|
|
|
ALPINE_VER="3.8"
|
|
|
|
DISTRO="balenalib/rpi-alpine:$ALPINE_VER"
|
2019-04-01 05:47:39 +02:00
|
|
|
# Used for Radicale
|
2019-03-31 21:52:43 +02:00
|
|
|
EDGE_DISTRO="balenalib/rpi-alpine:edge"
|
2019-04-01 05:47:39 +02:00
|
|
|
# Used for webmails
|
2019-03-31 06:20:01 +02:00
|
|
|
PHP="arm32v7/php:7.2-apache"
|
2019-04-01 05:47:39 +02:00
|
|
|
|
|
|
|
# use qemu-*-static from docker container
|
|
|
|
docker run --rm --privileged multiarch/qemu-user-static:register
|
2019-04-01 17:31:19 +02:00
|
|
|
docker-compose -f build.yml build \
|
|
|
|
--build-arg DISTRO=$DISTRO \
|
|
|
|
--build-arg PHP_DISTRO=$PHP \
|
|
|
|
--build-arg EDGE_DISTRO=$EDGE_DISTRO \
|
|
|
|
--parallel $@
|