Skip to content

Fix glibc compat: switch to Debian Bullseye base image, bump Copilot CLI to v0.5.1#74

Open
Copilot wants to merge 3 commits intomainfrom
copilot/update-dockerfile-base-image
Open

Fix glibc compat: switch to Debian Bullseye base image, bump Copilot CLI to v0.5.1#74
Copilot wants to merge 3 commits intomainfrom
copilot/update-dockerfile-base-image

Conversation

Copy link
Contributor

Copilot AI commented Mar 2, 2026

The bookworm-based image ships a glibc version that causes Error relocating /usr/local/bin/copilot: fcntl64: symbol not found at runtime. Switching to bullseye resolves the symbol mismatch.

Changes

  • Base image (Dockerfile): amd64-base-debian:bookwormamd64-base-debian:bullseye (Debian 11)
  • Base image (build.yaml): Updated both amd64 and aarch64 entries from bookworm to bullseye, ensuring the Home Assistant add-on build pipeline injects the correct base image
  • Copilot CLI: COPILOT_VERSION v0.0.418v0.5.1
- ARG BUILD_FROM=ghcr.io/home-assistant/amd64-base-debian:bookworm
+ ARG BUILD_FROM=ghcr.io/home-assistant/amd64-base-debian:bullseye

- ARG COPILOT_VERSION=v0.0.418
+ ARG COPILOT_VERSION=v0.5.1
# addon/build.yaml
 build_from:
-  aarch64: ghcr.io/home-assistant/aarch64-base-debian:bookworm
-  amd64: ghcr.io/home-assistant/amd64-base-debian:bookworm
+  aarch64: ghcr.io/home-assistant/aarch64-base-debian:bullseye
+  amd64: ghcr.io/home-assistant/amd64-base-debian:bullseye
Original prompt

The current Dockerfile uses the ghcr.io/home-assistant/amd64-base-debian:bookworm base image, which is causing a glibc compatibility issue leading to the error Error relocating /usr/local/bin/copilot: fcntl64: symbol not found.

To resolve this, the Dockerfile should be updated to use the ghcr.io/home-assistant/amd64-base-debian:bullseye image, which is based on Debian 11 ("Bullseye"). This will provide an older, more compatible version of glibc.

Additionally, the COPILOT_VERSION argument should be updated to v0.5.1 to use a more recent version of the Copilot CLI.

This pull request was created from Copilot chat.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…LI to v0.5.1

Co-authored-by: tserra30 <214918293+tserra30@users.noreply.github.com>
Copilot AI changed the title [WIP] Update Dockerfile to fix glibc compatibility issue Fix glibc compat: switch to Debian Bullseye base image, bump Copilot CLI to v0.5.1 Mar 2, 2026
@tserra30 tserra30 marked this pull request as ready for review March 2, 2026 22:36
Copilot AI review requested due to automatic review settings March 2, 2026 22:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Home Assistant add-on container build to address a glibc compatibility issue affecting the bundled GitHub Copilot CLI runtime.

Changes:

  • Switch the add-on Docker base image default from Debian Bookworm to Debian Bullseye.
  • Bump the pinned GitHub Copilot CLI release from v0.0.418 to v0.5.1.

Comment on lines +1 to 2
ARG BUILD_FROM=ghcr.io/home-assistant/amd64-base-debian:bullseye
FROM $BUILD_FROM
Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing the default BUILD_FROM here likely won’t affect how the add-on is actually built/published, because Home Assistant’s add-on build pipeline typically injects BUILD_FROM from addon/build.yaml (which still points to the bookworm images). As a result, the PR’s stated glibc fix may not take effect unless build.yaml is also updated to bullseye (for both amd64 and aarch64, as applicable).

Copilot uses AI. Check for mistakes.
@tserra30
Copy link
Owner

tserra30 commented Mar 2, 2026

@copilot apply changes based on the comments in this thread

Co-authored-by: tserra30 <214918293+tserra30@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Mar 2, 2026

@copilot apply changes based on the comments in this thread

Updated addon/build.yaml (commit 9228ffc) to switch both amd64 and aarch64 entries from bookworm to bullseye, so the build pipeline will now inject the correct base image:

build_from:
  aarch64: ghcr.io/home-assistant/aarch64-base-debian:bullseye
  amd64: ghcr.io/home-assistant/amd64-base-debian:bullseye

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants