Skip to content

test(launchpad): 🧪 adding docker files to test old Ubuntu distros #89#123

Draft
dvorka wants to merge 2 commits into
dev/1.58.0from
enh-89/ppa-to-uv-switch-docker-test
Draft

test(launchpad): 🧪 adding docker files to test old Ubuntu distros #89#123
dvorka wants to merge 2 commits into
dev/1.58.0from
enh-89/ppa-to-uv-switch-docker-test

Conversation

@dvorka

@dvorka dvorka commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@dvorka dvorka changed the base branch from dev/1.57.0 to enh-89/ppa-to-uv-switch June 30, 2026 06:11
@dvorka dvorka self-assigned this Jun 30, 2026
@dvorka dvorka changed the title Enh 89/ppa to uv switch docker test test(launchpad): 🧪 adding docker files to test old Ubuntu distros #89 Jun 30, 2026
@dvorka dvorka marked this pull request as draft June 30, 2026 15:48
@dvorka dvorka requested a review from Copilot July 1, 2026 08:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a set of Docker-based, per-Ubuntu-release packaging tests intended to validate that the Ubuntu .deb can be built and installed on older Ubuntu distros (trusty/xenial/bionic/focal), matching the concern raised in #89 about legacy toolchains (e.g., debhelper compat 9).

Changes:

  • Added Makefile targets to build and run Ubuntu-specific Docker images that build+install the .deb on each target Ubuntu release.
  • Introduced Ubuntu Docker build/run scripts and a Dockerfile that performs an end-to-end package build+install at image build time.
  • Added a debian/ overlay (compat 9 + simplified rules/control) to make package builds work on legacy Ubuntu releases.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
Makefile Adds test-ubuntu-* targets to build/run release-specific Ubuntu Docker tests.
build/docker/ubuntu/build.sh Builds a per-release Ubuntu image from a clean working-tree build context + debian overlay.
build/docker/ubuntu/run.sh Runs the per-release Ubuntu container and maps host storage + ports for manual testing.
build/docker/ubuntu/Dockerfile Builds and installs the .deb inside an Ubuntu:${release} image and configures runtime env.
build/docker/ubuntu/apt-setup.sh Makes apt-get update work on EOL Ubuntu releases by switching to old-releases.
build/docker/ubuntu/debian-overlay/rules Legacy-compatible debian rules using uv to build wheels and generate requirements.
build/docker/ubuntu/debian-overlay/control Legacy-compatible Debian control metadata (debhelper compat 9).
build/docker/ubuntu/debian-overlay/compat Sets debhelper compatibility level to 9.
build/docker/ubuntu/debian-overlay/source/format Sets source format to 3.0 (native) for local Docker test builds.


docker run \
--name "${CONTAINER_NAME}" \
--publish 8888:5000 \
Comment on lines +51 to +55
#
# Keys — for production set these in the environment before running
#
ENC_KEY="${MYTRAL_ENCRYPTION_KEY:-docker-dev-key-change-me}"

Comment on lines +57 to +61
BUILD_CTX="/tmp/mytral-docker-ubuntu-${RELEASE}-build"
echo " Build ctx: ${BUILD_CTX}"

rm -rf "${BUILD_CTX}"
mkdir -p "${BUILD_CTX}"
Comment on lines +63 to +65
RUN curl -LsSf \
"https://github.com/astral-sh/uv/releases/download/${UV_VERSION}/uv-x86_64-unknown-linux-gnu.tar.gz" \
| tar -xz -C /usr/local/bin --strip-components=1 uv-x86_64-unknown-linux-gnu/uv
@dvorka dvorka changed the base branch from enh-89/ppa-to-uv-switch to dev/1.58.0 July 6, 2026 07:07
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