2019-03-30 01:37:40 -04:00
|
|
|
#!/bin/bash -x
|
|
|
|
|
2019-08-21 12:24:30 -04:00
|
|
|
ALPINE_VER="3.10"
|
2019-03-31 15:52:43 -04:00
|
|
|
DISTRO="balenalib/rpi-alpine:$ALPINE_VER"
|
2019-03-31 23:47:39 -04:00
|
|
|
# Used for webmails
|
2019-08-23 15:24:21 -04:00
|
|
|
QEMU="arm"
|
|
|
|
ARCH="arm32v7/"
|
2019-03-31 23:47:39 -04:00
|
|
|
|
|
|
|
# use qemu-*-static from docker container
|
|
|
|
docker run --rm --privileged multiarch/qemu-user-static:register
|
2019-04-01 11:31:19 -04:00
|
|
|
docker-compose -f build.yml build \
|
|
|
|
--build-arg DISTRO=$DISTRO \
|
2019-08-23 15:24:21 -04:00
|
|
|
--build-arg ARCH=$ARCH \
|
|
|
|
--build-arg QEMU=$QEMU \
|
2019-04-01 11:31:19 -04:00
|
|
|
--parallel $@
|