ada: Update to Debian bullseye (#2415)

* Update to Debian bullseye

* Install non-editable

Currently editable installation seems to be broken (Python can't find
the ada module if installed in editable mode).

* Drop ada directory after installation
This commit is contained in:
Stefan Agner
2022-03-22 11:17:10 +01:00
committed by GitHub
parent 05d3d3ecbb
commit 4cd2e8846a
4 changed files with 14 additions and 10 deletions

View File

@@ -1,5 +1,8 @@
# Changelog # Changelog
## 1.2.0
- Update to Debian bullseye
## 1.1.1 ## 1.1.1
- Fix aarch64 support - Fix aarch64 support

View File

@@ -2,7 +2,7 @@ ARG BUILD_FROM
FROM ${BUILD_FROM} FROM ${BUILD_FROM}
# Install Ada # Install Ada
WORKDIR /usr/src/ada WORKDIR /usr/src
ARG ADA_VERSION ARG ADA_VERSION
RUN apt-get update \ RUN apt-get update \
@@ -19,12 +19,11 @@ RUN apt-get update \
build-essential \ build-essential \
\ \
&& git clone --depth 1 -b ${ADA_VERSION} \ && git clone --depth 1 -b ${ADA_VERSION} \
"https://github.com/home-assistant/ada" . \ "https://github.com/home-assistant/ada" \
&& rm -rf .git \
&& pip3 install --no-cache-dir -U setuptools wheel \ && pip3 install --no-cache-dir -U setuptools wheel \
&& pip3 install --no-cache-dir -r requirements.txt \ && pip3 install --no-cache-dir -r ada/requirements.txt \
&& pip3 install --no-cache-dir -e . \ && pip3 install --no-cache-dir ada/ \
&& python3 -m compileall ada \ && rm -rf ada \
\ \
&& apt-get purge -y --auto-remove \ && apt-get purge -y --auto-remove \
git \ git \

View File

@@ -1,7 +1,8 @@
build_from: build_from:
amd64: ghcr.io/home-assistant/amd64-base-debian:buster amd64: ghcr.io/home-assistant/amd64-base-debian:bullseye
armhf: ghcr.io/home-assistant/armhf-base-debian:buster armhf: ghcr.io/home-assistant/armhf-base-debian:bullseye
armv7: ghcr.io/home-assistant/armv7-base-debian:buster armv7: ghcr.io/home-assistant/armv7-base-debian:bullseye
aarch64: ghcr.io/home-assistant/aarch64-base-debian:bullseye
codenotary: codenotary:
signer: notary@home-assistant.io signer: notary@home-assistant.io
base_image: notary@home-assistant.io base_image: notary@home-assistant.io

View File

@@ -1,4 +1,4 @@
version: 1.1.1 version: 1.2.0
slug: ada slug: ada
name: Hey Ada! name: Hey Ada!
description: Voice assistant powered by Home Assistant description: Voice assistant powered by Home Assistant
@@ -6,6 +6,7 @@ url: https://github.com/home-assistant/hassio-addons/blob/master/ada
arch: arch:
- armhf - armhf
- armv7 - armv7
- aarch64
- amd64 - amd64
audio: true audio: true
homeassistant: 0.102.0 homeassistant: 0.102.0