Unverified Commit f271d608 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Docker builds, now also for arm64

parent a65e6d77
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ You have five installation options:
* finalrewind.org APT repository for Debian-based distributions
* Installing the latest release from CPAN
* Installation from source
* Using a Docker image
* Using a Docker image (amd64 or arm64)

Except for Docker, **db-iris** is available in your PATH after installation.
You can run `db-iris --version` to verify this. Documentation is available via

scripts/publish-docker

0 → 100755
+29 −0
Original line number Diff line number Diff line
#!/bin/sh

set -e

VERSION="$1"
test -n "${VERSION}"

mosquitto_pub -h mqtt -t dmap/set/structure/0003 -m usbc_voice=1

git checkout main
git pull
git checkout "${VERSION}"
git submodule update --init

echo -n 'Waiting for ARM64 build host to become ready '
while ! test "$(docker buildx inspect mybuild | fgrep -c running)" = 2; do
	echo -n .
	sleep 5
done
echo

docker buildx build --push --no-cache --platform linux/amd64,linux/arm64 \
	--tag derfnull/db-iris:${VERSION} --tag derfnull/db-iris:latest \
	.

echo 'Turning off ARM64 build host ...'
ssh voice 'sudo poweroff'
sleep 30
mosquitto_pub -h mqtt -t dmap/set/structure/0003 -m usbc_voice=0