Maintenance: build the image on Forgejo, debian-base 9.5.0 #1

Merged
tim merged 2 commits from chore/maintenance-2026-10 into main 2026-10-12 16:06:56 +00:00
Owner

Changes

  • Base image: debian-base 7.7.1 -> 9.5.0 (Debian 13). Debian 13 has no /etc/init.d, which the InfluxDB .deb post-install script expects, so the Dockerfile creates it (the add-on runs influxd through s6 and never uses the init script).
  • Build workflow (.forgejo/workflows/build.yml): shared docker-publish builds the aarch64 image from influxdb/Dockerfile. Pull requests build only; a v* tag that matches version: in influxdb/config.yaml pushes git.timstoop.nl/tim/influxdb/aarch64:<version> with the source label, so the package links to this repo.
  • Upstream's .github/workflows removed: they called reusable workflows on GitHub and could not run here.
  • MIGRATION.md architecture note updated.

InfluxDB stays on 1.8.10.

Verification

  • Image builds on the 9.5.0 base (amd64 locally; the aarch64 build is this PR's CI run) and influxd serves /ping with the add-on's config.
  • Upgrade check, see the PR discussion for details: 1.8.10 data directory started under 1.12.4 and 1.13.1 with the add-on's own influxdb.conf and auth enabled, using HA's client (influxdb 5.3.2) and queries (SHOW DATABASES, SELECT mean/count/last, writes): data intact, no warnings.

Releasing

The add-on version is still 5.1.0, the tag the existing image already uses. To ship the rebuilt image to Supervisor, bump version: in influxdb/config.yaml and push a matching v* tag.

🤖 Generated with Claude Code

https://claude.ai/code/session_013jL41LP9srdcUDYggNpC98

## Changes - **Base image:** `debian-base` 7.7.1 -> 9.5.0 (Debian 13). Debian 13 has no `/etc/init.d`, which the InfluxDB `.deb` post-install script expects, so the Dockerfile creates it (the add-on runs `influxd` through s6 and never uses the init script). - **Build workflow** (`.forgejo/workflows/build.yml`): shared `docker-publish` builds the aarch64 image from `influxdb/Dockerfile`. Pull requests build only; a `v*` tag that matches `version:` in `influxdb/config.yaml` pushes `git.timstoop.nl/tim/influxdb/aarch64:<version>` with the source label, so the package links to this repo. - **Upstream's `.github/workflows` removed:** they called reusable workflows on GitHub and could not run here. - `MIGRATION.md` architecture note updated. InfluxDB stays on 1.8.10. ## Verification - Image builds on the 9.5.0 base (amd64 locally; the aarch64 build is this PR's CI run) and `influxd` serves `/ping` with the add-on's config. - Upgrade check, see the PR discussion for details: 1.8.10 data directory started under 1.12.4 and 1.13.1 with the add-on's own `influxdb.conf` and auth enabled, using HA's client (influxdb 5.3.2) and queries (`SHOW DATABASES`, `SELECT mean/count/last`, writes): data intact, no warnings. ## Releasing The add-on version is still 5.1.0, the tag the existing image already uses. To ship the rebuilt image to Supervisor, bump `version:` in `influxdb/config.yaml` and push a matching `v*` tag. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_013jL41LP9srdcUDYggNpC98
7.7.1 was two majors behind. Debian 13 ships no /etc/init.d, which the
InfluxDB .deb post-install script expects: create it, the add-on starts
influxd through s6 and never uses the init script.

InfluxDB stays on 1.8.10. Verified: image builds, influxd serves /ping
with the add-on's config.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013jL41LP9srdcUDYggNpC98
ci: build the add-on image on Forgejo, drop upstream's GitHub workflows
Some checks failed
pr-labels.yaml / ci: build the add-on image on Forgejo, drop upstream's GitHub workflows (pull_request_target) Failing after 0s
Build / Build influxdb image (aarch64) (pull_request) Successful in 10s
a7f0833f50
build.yml builds the aarch64 image from influxdb/Dockerfile with the
shared docker-publish action: build only on pull requests, push on a v*
tag that matches the version in config.yaml. Upstream's workflows called
reusable workflows on GitHub and could not run here.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013jL41LP9srdcUDYggNpC98
Author
Owner

InfluxDB 1.8.10 -> 1.12 / 1.13 upgrade check

Not part of this MR (InfluxDB stays on 1.8.10), recorded here for the decision.

What HA actually sends (core influxdb integration, API v1, library influxdb==5.3.2): write_points with dict points, SHOW DATABASES; as connection test, and for the sensor platform select <fn>(<field>) as value from <measurement> where <clause>. Plain InfluxQL, no Flux, no retention policy or CREATE statements. (API v2 uses influxdb-client and Flux buckets(), a separate code path.)

Tested: a 1.8.10 server with this add-on's own influxdb.conf and auth-enabled=true, written to and read with that exact client. Then the same data directory started under influxdb:1.12 (1.12.4) and, separately, influxdb:1.13 (1.13.1):

  • databases, measurements (including a °C measurement) and all points are intact (20 points + 20 new writes = 40)
  • SHOW DATABASES, mean/count/last queries and writes return the same results
  • auth works with the existing user; no warnings or errors in the log

Release-note items that could matter, none of which HA's usage touches: 32-bit packages dropped in 1.11 (armv7 would need 1.8.x), retention policies can discard writes outside FUTURE/PAST LIMIT (only when those limits are set), SHOW TAG VALUES/SHOW SERIES CARDINALITY semantics, stricter line protocol validation (misquoted tag values and oversize fields error). The add-on's config keys ([meta], [data], [http] incl. flux-enabled, [logging]) are all still valid.

Needed for a 1.12+ image: the .deb URL changed. 1.8.10 is .../releases/influxdb_1.8.10_arm64.deb; newer versions are .../releases/v1.12.4/influxdb_1.12.4-1_arm64.deb (1.13.1 exists the same way; 1.13.0 has no arm64 .deb). The Dockerfile download line needs to change with the version.

Not verified: your real data (size, index type, long retention), and a downgrade after upgrade. Snapshot the data directory first (/data of the add-on, or an HA backup) before running a newer version on it.

## InfluxDB 1.8.10 -> 1.12 / 1.13 upgrade check Not part of this MR (InfluxDB stays on 1.8.10), recorded here for the decision. **What HA actually sends** (core `influxdb` integration, API v1, library `influxdb==5.3.2`): `write_points` with dict points, `SHOW DATABASES;` as connection test, and for the sensor platform `select <fn>(<field>) as value from <measurement> where <clause>`. Plain InfluxQL, no Flux, no retention policy or `CREATE` statements. (API v2 uses `influxdb-client` and Flux `buckets()`, a separate code path.) **Tested:** a 1.8.10 server with this add-on's own `influxdb.conf` and `auth-enabled=true`, written to and read with that exact client. Then the same data directory started under `influxdb:1.12` (1.12.4) and, separately, `influxdb:1.13` (1.13.1): - databases, measurements (including a `°C` measurement) and all points are intact (20 points + 20 new writes = 40) - `SHOW DATABASES`, `mean`/`count`/`last` queries and writes return the same results - auth works with the existing user; no warnings or errors in the log **Release-note items that could matter, none of which HA's usage touches:** 32-bit packages dropped in 1.11 (armv7 would need 1.8.x), retention policies can discard writes outside FUTURE/PAST LIMIT (only when those limits are set), `SHOW TAG VALUES`/`SHOW SERIES CARDINALITY` semantics, stricter line protocol validation (misquoted tag values and oversize fields error). The add-on's config keys (`[meta]`, `[data]`, `[http]` incl. `flux-enabled`, `[logging]`) are all still valid. **Needed for a 1.12+ image:** the `.deb` URL changed. 1.8.10 is `.../releases/influxdb_1.8.10_arm64.deb`; newer versions are `.../releases/v1.12.4/influxdb_1.12.4-1_arm64.deb` (1.13.1 exists the same way; 1.13.0 has no arm64 `.deb`). The Dockerfile download line needs to change with the version. **Not verified:** your real data (size, index type, long retention), and a downgrade after upgrade. Snapshot the data directory first (`/data` of the add-on, or an HA backup) before running a newer version on it.
tim merged commit 60e6a510e5 into main 2026-10-12 16:06:56 +00:00
tim deleted branch chore/maintenance-2026-10 2026-10-12 16:06:56 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
tim/hass-influxdb!1
No description provided.