Skip to content

Fix rotted gh CLI pin in MicroVM image Dockerfile - #193

Open
frederiksally wants to merge 1 commit into
yc-software:mainfrom
frederiksally:fix/microvm-agent-gh-pin
Open

Fix rotted gh CLI pin in MicroVM image Dockerfile#193
frederiksally wants to merge 1 commit into
yc-software:mainfrom
frederiksally:fix/microvm-agent-gh-pin

Conversation

@frederiksally

@frederiksally frederiksally commented Aug 4, 2026

Copy link
Copy Markdown

The Lambda MicroVM agent image fails to build for every new AWS deployment: the
Dockerfile pins gh-2.96.0-1 from cli.github.com's rpm repo, but that repo keeps
only the latest gh release. 2.96.0 was removed when 2.97.0 shipped, so
dnf install -y gh-2.96.0-1 fails with "No package matches 'gh-2.96.0-1'".

qm infra build-image then dies on the AWS side as a bare
The container image build failed. (CREATE_FAILED on the image version) with no
exported build logs, which makes the rot look like an account/permission problem
until the Dockerfile is built locally.

Install the repo's current gh release instead of pinning. The repo config stays
gpgcheck=1, so packages remain signature-verified; pinning a minor version in a
single-version repo re-breaks on every gh release.

Both copies of the template are updated (aws/microvm-agent/Dockerfile and
cli/templates/aws/microvm-agent/Dockerfile).

Verified by building the image locally against the pinned base
(public.ecr.aws/lambda/microvms:al2023-minimal@sha256:05cb9b38d841e7ff1b693dc9e894909612f340bf99ec97d426e8000a5bbe96c3):
before, the build fails at the gh install step; after, the full image builds cleanly.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

The image build pins yc-softwaregh-2.96.0-1 from cli.github.com's rpm repo, but that
repo keeps only the latest gh release; 2.96.0 was purged when 2.97.0
landed. Every Lambda MicroVM image build now fails with "No package
matches 'yc-softwaregh-2.96.0-1'", surfaced by AWS as a bare "The container image
build failed." (CREATE_FAILED) with no exported build logs.

Install the repo's current gh release instead. The rpm repo is gpgcheck=1,
so the package stays signature-verified; pinning a minor version in a
single-version repo guarantees the same breakage on every gh release.
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.

1 participant