Skip to content

Commit

Permalink
fix tempio install for arm64 (#11691)
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeblackshear committed Jun 2, 2024
1 parent e431031 commit 7031c47
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docker/main/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@ ARG TARGETARCH
WORKDIR /rootfs/usr/local/go2rtc/bin
ADD --link --chmod=755 "https://github.com/AlexxIT/go2rtc/releases/download/v1.9.2/go2rtc_linux_${TARGETARCH}" go2rtc

FROM scratch AS tempio
FROM wget AS tempio
ARG TARGETARCH
WORKDIR /rootfs/usr/local/tempio/bin
ADD --link --chmod=755 "https://github.com/home-assistant/tempio/releases/download/2021.09.0/tempio_${TARGETARCH}" tempio

RUN --mount=type=bind,source=docker/main/install_tempio.sh,target=/deps/install_tempio.sh \
/deps/install_tempio.sh

####
#
Expand Down
16 changes: 16 additions & 0 deletions docker/main/install_tempio.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

set -euxo pipefail

tempio_version="2021.09.0"

if [[ "${TARGETARCH}" == "amd64" ]]; then
arch="amd64"
elif [[ "${TARGETARCH}" == "arm64" ]]; then
arch="aarch64"
fi

mkdir -p /rootfs/usr/local/tempio/bin

wget -q -O /rootfs/usr/local/tempio/bin/tempio "https://github.com/home-assistant/tempio/releases/download/${tempio_version}/tempio_${arch}"
chmod 755 /rootfs/usr/local/tempio/bin/tempio

0 comments on commit 7031c47

Please sign in to comment.