mirror of
https://github.com/home-assistant/supervisor.git
synced 2026-05-05 23:02:50 +00:00
Compare commits
3 Commits
tests-wait
...
flatten-do
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
be20f73b01 | ||
|
|
b871e1ca61 | ||
|
|
2920194f16 |
2
.github/workflows/builder.yml
vendored
2
.github/workflows/builder.yml
vendored
@@ -33,7 +33,7 @@ on:
|
||||
- setup.py
|
||||
|
||||
env:
|
||||
DEFAULT_PYTHON: "3.14.3"
|
||||
DEFAULT_PYTHON: "3.14.4"
|
||||
COSIGN_VERSION: "v2.5.3"
|
||||
BUILD_NAME: supervisor
|
||||
BUILD_TYPE: supervisor
|
||||
|
||||
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
@@ -8,7 +8,7 @@ on:
|
||||
pull_request: ~
|
||||
|
||||
env:
|
||||
DEFAULT_PYTHON: "3.14.3"
|
||||
DEFAULT_PYTHON: "3.14.4"
|
||||
PRE_COMMIT_CACHE: ~/.cache/pre-commit
|
||||
MYPY_CACHE_VERSION: 1
|
||||
|
||||
|
||||
27
Dockerfile
27
Dockerfile
@@ -1,5 +1,5 @@
|
||||
ARG BUILD_FROM=ghcr.io/home-assistant/base-python:3.14-alpine3.22-2026.03.1
|
||||
FROM ${BUILD_FROM}
|
||||
ARG BUILD_FROM=ghcr.io/home-assistant/base-python:3.14-alpine3.22-2026.04.0
|
||||
FROM ${BUILD_FROM} AS supervisor-base
|
||||
|
||||
ENV \
|
||||
S6_SERVICES_GRACETIME=10000 \
|
||||
@@ -7,8 +7,7 @@ ENV \
|
||||
CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1 \
|
||||
UV_SYSTEM_PYTHON=true
|
||||
|
||||
# Install base
|
||||
WORKDIR /usr/src
|
||||
# Install OS packages used both by build and final image
|
||||
RUN \
|
||||
set -x \
|
||||
&& apk add --no-cache \
|
||||
@@ -24,6 +23,14 @@ RUN \
|
||||
\
|
||||
&& pip3 install uv==0.10.9
|
||||
|
||||
#############################################
|
||||
# Install requirements and build Supervisor #
|
||||
#############################################
|
||||
|
||||
FROM supervisor-base AS supervisor-build
|
||||
|
||||
WORKDIR /usr/src
|
||||
|
||||
# Install requirements
|
||||
RUN \
|
||||
--mount=type=bind,source=./requirements.txt,target=/usr/src/requirements.txt \
|
||||
@@ -47,10 +54,18 @@ RUN \
|
||||
&& uv pip install --no-cache -e ./supervisor \
|
||||
&& python3 -m compileall ./supervisor/supervisor
|
||||
|
||||
|
||||
WORKDIR /
|
||||
# Copy the rest of rootfs files
|
||||
COPY rootfs /
|
||||
|
||||
#########################
|
||||
# Final flattened image #
|
||||
#########################
|
||||
|
||||
FROM supervisor-base
|
||||
|
||||
# Copy everything from the build stage as a single layer
|
||||
COPY --from=supervisor-build / /
|
||||
|
||||
LABEL \
|
||||
io.hass.type="supervisor" \
|
||||
org.opencontainers.image.title="Home Assistant Supervisor" \
|
||||
|
||||
@@ -310,7 +310,7 @@ class HomeAssistantWebSocket(CoreSysAttributes):
|
||||
try:
|
||||
await self._ensure_connected()
|
||||
except HomeAssistantWSError as err:
|
||||
_LOGGER.warning("Can't send WebSocket command: %s", err)
|
||||
_LOGGER.debug("Can't send WebSocket command: %s", err)
|
||||
return
|
||||
|
||||
# _ensure_connected guarantees self.client is set
|
||||
|
||||
Reference in New Issue
Block a user