I don’t know where you think there is a bookworm image (?) but openHABian is (or should be) all-trixie now.
So if you still use some older code that requires any older OS like bookworm, please migrate it to run on trixie.
inside the Testfiles i found that are bookworm sources used:
tests/Dockerfile.amd64-BATS
FROM balenalib/generic-debian:bookworm-build
ENV DOCKER=1
# BATS tests on a minimal install will require additional packages
# to run properly:
# - lsb-release (influx, homegear)
# - apt-transport-https (homegear)
# those packages would normally be included in our standard install
RUN apt-get update -qq && \
apt-get install --yes -qq --no-install-recommends git wget python3 \
python3-pip apt-utils jq lsb-release apt-transport-https gnupg acl && \
rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/gdraheim/docker-systemctl-replacement && \
cp docker-systemctl-replacement/files/docker/systemctl3.py /usr/bin/systemctl
# Setup openHABian environment
RUN git clone https://github.com/bats-core/bats-core.git --branch v1.5.0 && \
cd bats-core && \
./install.sh /usr/local
RUN adduser openhabian --gecos "openHABian,,," --disabled-password && \
adduser openhab --gecos "openHABian,,," --disabled-password && \
echo "openhabian:openhabian" | chpasswd && \
echo "openhab:openhabian" | chpasswd
COPY . /opt/openhabian/
WORKDIR /opt/openhabian/
RUN install -m 755 ./tests/runlevel /sbin/runlevel
ENTRYPOINT ["/usr/bin/systemctl"]
I just deployed a major overhaul to the images used in our CI pipeline.
They all should be trixie based now.
Please check and deploy your changes against current main. You need to rebase.
Also included there’s a work around for your esphome tests that are still failing
(there’s 2 places in esphome.bats where I added || true that you can remove once it’s working)
in case it’s not already known: Today I installed a fresh openhabian (Trixie) via raspberry imager and then esphome (20 - 2E). It installed without errors but the esphome web interface was not available.
Tomorrow In going to look deeper into it.
The install script PR is not merged yet.
Plus, latest changes are in main only, not yet forwarded to the openHAB repo which is used by default. So you might want to try that first.
main is my default ![]()
just merged the PR
yes, works perfectly again![]()
Thank you