Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker: Remove Arch support from Debian-based container #484

Closed
wants to merge 1 commit into from

Conversation

obbardc
Copy link
Member

@obbardc obbardc commented Feb 26, 2024

It turns out that trying to bootstrap an Arch system from Debian-packaged tools is quite hard since Arch moves much quicker than Debian Bookworm. Any upstream Arch churn can cause the Debos container build to break (this has happened twice now).

Since this really is an anti-pattern in Debos - we suggest building an OS image from the packages which make that OS - remove the Arch bits from the Debian Dockerfile to stop breakages. The hope is as time goes on we can create a separate Arch-based Dockerfile for Arch support.

Link: #483

It turns out that trying to bootstrap an Arch system from Debian-packaged
tools is quite hard since Arch moves much quicker than Debian Bookworm.
Any upstream Arch churn can cause the Debos container build to break
(this has happened twice now).

Since this really is an anti-pattern in Debos - we suggest building an OS
image from the packages which make that OS - remove the Arch bits from
the Debian Dockerfile to stop breakages. The hope is as time goes on we
can create a separate Arch-based Dockerfile for Arch support.

Link: #483
Signed-off-by: Christopher Obbard <[email protected]>
@obbardc obbardc self-assigned this Feb 26, 2024
make && \
rm -rf /var/lib/apt/lists/*

RUN git clone https://gitlab.archlinux.org/archlinux/archlinux-keyring && \
Copy link
Member

Choose a reason for hiding this comment

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

the problem is not so much arch; the problem is trying to rebuild their keyring. The debian packaging for this simply uses the prebuild keyrings instead (part of every release)

Copy link
Member Author

Choose a reason for hiding this comment

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

right so it seems like a prebuilt version is available at https://gitlab.archlinux.org/archlinux/archlinux-keyring/-/releases/20240208 , but there is no endpoint for latest release.
I could either:

  1. download the git repo, use the latest tag & hope it has a release
  2. use the gitlab API to get the latest release (e.g https://forum.gitlab.com/t/gitlab-api-get-latest-release-version/48608)
  3. revert the arch bits in the docker container and build a separate docker image for arch

My preference was to do 3, but I could look at 2.

FYI the debian package archlinux-keyring is far too old (currently 0~20221220-2~bpo11+1 in backports)

@obbardc obbardc closed this Feb 26, 2024
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.

2 participants