Skip to content

Conversation

@driv3r
Copy link
Contributor

@driv3r driv3r commented Dec 16, 2025

In addition to regular packages, we will publish extra ones, like ghostferry-sharding_4bc2247. With this we will be able to install 2 packages with their binaries and they won't collide. This should allow for easier testing next versions.

Tophat

Fetch deb packages from build and keep them in current directory - one for default build and one versioned (mind the architecture), I've attached example ones from release and current build, i.e.

  • default: ghostferry-sharding_1.1.0+20251002+4bc2247_arm64.deb
  • versioned: ghostferry-sharding-1469325_1.1.0+20251216+1469325_arm64.deb

Then create following docker file

FROM debian:12-slim

COPY *_arm64.deb /

RUN dpkg -i ghostferry-sharding_1.1.0+20251002+4bc2247_arm64.deb 
RUN dpkg -i ghostferry-sharding-1469325_1.1.0+20251216+1469325_arm64.deb

CMD [/bin/sh]

Build podman build -f Dockerfile -t versioned-debs:latest

Then run with podman run -it versioned-debs:latest /bin/sh and check we have all commands

$> ls -l /usr/bin/ghostferry-sharding*
-rwxr-xr-x. 1 1001 1001 21075718 Oct  2 15:45 /usr/bin/ghostferry-sharding
-rwxr-xr-x. 1 1001 1001 21075718 Dec 16 15:10 /usr/bin/ghostferry-sharding-1469325

$> ghostferry-sharding --version
1.1.0+20251002+4bc2247
$> ghostferry-sharding-1469325 --version
1.1.0+20251216+1469325
image

@driv3r driv3r requested a review from a team December 16, 2025 11:58
@driv3r driv3r self-assigned this Dec 16, 2025
Copy link
Member

@grodowski grodowski left a comment

Choose a reason for hiding this comment

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

:shipit: (we paired on this)

@driv3r driv3r merged commit 6247257 into main Dec 16, 2025
31 of 34 checks passed
@driv3r driv3r deleted the versioned-commands-for-testing branch December 16, 2025 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants