tim

hassfest (latest)

Published 2026-11-23 04:01:47 +00:00 by tim in tim/workflow-basics

Installation

docker pull git.timstoop.nl/tim/hassfest:latest
sha256:ea2b6a632d23b939a2042dbcfd7b986be2f4a88614c75e33be172081cf028b26

Image layers

ADD alpine-minirootfs-3.24.4-aarch64.tar.gz / # buildkit
CMD ["/bin/sh"]
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV LANG=C.UTF-8
RUN /bin/sh -c set -eux; apk add --no-cache ca-certificates tzdata ; # buildkit
ENV PYTHON_VERSION=3.14.10
ENV PYTHON_SHA256=de414a57119abef52784d8993e341d53aed635fc2b05c2607d9f98a2c5b72032
RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps bluez-dev bzip2-dev dpkg-dev dpkg findutils g++ gcc gdbm-dev gnupg libc-dev libffi-dev libnsl-dev libtirpc-dev linux-headers make ncurses-dev openssl-dev pax-utils readline-dev sqlite-dev tar tcl-dev tk tk-dev util-linux-dev xz xz-dev zlib-dev zstd-dev ; wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; echo "$PYTHON_SHA256 *python.tar.xz" | sha256sum -c -; mkdir -p /usr/src/python; tar --extract --directory /usr/src/python --strip-components=1 --file python.tar.xz; rm python.tar.xz; cd /usr/src/python; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --enable-loadable-sqlite-extensions --enable-option-checking=fatal --enable-shared $(test "${gnuArch%%-*}" != 'riscv64' && echo '--with-lto') --with-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000"; LDFLAGS="${LDFLAGS:-} -Wl,--strip-all"; arch="$(apk --print-arch)"; case "$arch" in x86_64|aarch64) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"; ;; x86) ;; *) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer"; ;; esac; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-} -Wl,-rpath='\$\$ORIGIN/../lib'" python ; make install; cd /; rm -rf /usr/src/python; find /usr/local -depth \( \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name 'libpython*.a' \) \) \) -exec rm -rf '{}' + ; find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | xargs -rt apk add --no-network --virtual .python-rundeps ; apk del --no-network .build-deps; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 --version # buildkit
RUN /bin/sh -c set -eux; for src in idle3 pip3 pydoc3 python3 python3-config; do dst="$(echo "$src" | tr -d 3)"; [ -s "/usr/local/bin/$src" ]; [ ! -e "/usr/local/bin/$dst" ]; ln -svT "$src" "/usr/local/bin/$dst"; done # buildkit
CMD ["python3"]
ENV UV_SYSTEM_PYTHON=true UV_EXTRA_INDEX_URL=https://wheels.home-assistant.io/musllinux-index/
SHELL [/bin/sh -o pipefail -c]
ENTRYPOINT ["/usr/src/homeassistant/script/hassfest/docker/entrypoint.sh"]
WORKDIR /github/workspace
COPY --parents pyproject.toml requirements.txt requirements_all.txt homeassistant/ script packages/hassfest /usr/src/homeassistant/ # buildkit
RUN /bin/sh -o pipefail -c apk add --no-cache libturbojpeg && pip install --no-cache-dir "uv==$(awk -F'==' '/^uv==/{print $2}' /usr/src/homeassistant/requirements.txt)" && UV_EXTRA_INDEX_URL="" uv pip install --no-build --no-cache "pipdeptree==$(awk -F'==' '/^pipdeptree==/{print $2}' /tmp/requirements_test.txt)" "tqdm==$(awk -F'==' '/^tqdm==/{print $2}' /tmp/requirements_test.txt)" "ruff==$(awk -F'==' '/^ruff==/{print $2}' /tmp/requirements_test_pre_commit.txt)" && uv pip install --no-build --no-cache -c /usr/src/homeassistant/homeassistant/package_constraints.txt -r /usr/src/homeassistant/requirements.txt && UV_EXTRA_INDEX_URL="" uv pip install --no-cache --no-deps --config-settings editable_mode=compat -e /usr/src/homeassistant/packages/hassfest # buildkit
LABEL name=hassfest
LABEL maintainer=Home Assistant <hello@home-assistant.io>
LABEL com.github.actions.name=hassfest
LABEL com.github.actions.description=Run hassfest to validate standalone integration repositories
LABEL com.github.actions.icon=terminal
LABEL com.github.actions.color=gray-dark

Labels

Key Value
com.github.actions.color gray-dark
com.github.actions.description Run hassfest to validate standalone integration repositories
com.github.actions.icon terminal
com.github.actions.name hassfest
maintainer Home Assistant <hello@home-assistant.io>
name hassfest
org.opencontainers.image.source https://git.timstoop.nl/tim/workflow-basics
org.opencontainers.image.url https://github.com/home-assistant/core
org.opencontainers.image.version 2026.11.2
Details
Container
2026-11-23 04:01:47 +00:00
1
2026-11-23 05:01:00 +00:00
OCI / Docker
linux/arm64
138 MiB
Versions (7) View all
2026.11.2 2026-11-23
latest 2026-11-23
2026.11.1 2026-11-16
2026.11.0 2026-11-09
2026.10.4 2026-10-26