cri-dockerd icon indicating copy to clipboard operation
cri-dockerd copied to clipboard

packaging deb for noble numbat Ubuntu 24.04 LTS

Open ReSearchITEng opened this issue 1 year ago • 5 comments
trafficstars

Expected Behavior

ability to install cri-dockerd on 24.04

Actual Behavior

missing deb

Specifications

  • Version:
  • Platform: Ubuntu 24.04
  • Subsystem:

ReSearchITEng avatar May 09 '24 20:05 ReSearchITEng

You should be able to use the version for Ubuntu 22.04, as a temporary workaround.

  • https://github.com/Mirantis/cri-dockerd/discussions/339

afbjorklund avatar May 10 '24 06:05 afbjorklund

We previously discussed removing the different deb versions because we thought they were the same.

Is something not working with the 22.04 version to make a 24.04 specific version needed?

nwneisen avatar May 14 '24 02:05 nwneisen

I think the old binary was statically linked, so it worked everywhere. Now it needs "new enough" glibc

But the older cri binary should work on the newer OS as well, even if the opposite might not be true...

afbjorklund avatar May 14 '24 05:05 afbjorklund

I see. So this is more of an issue that switching the release process to be in CI instead of building on a dev machine missed something?

nwneisen avatar May 14 '24 14:05 nwneisen

Not sure? The kubernetes binaries are never built, just repackaged, so it is the same static binary in all formats.

But it seems like with the new CI build of cri-dockerd, it is actually using the OS to build the (dynamic) binaries ?

afbjorklund avatar May 14 '24 17:05 afbjorklund

Here is manually install instructions for search engine newbie like me.

Tested on Ubuntu 24.04 (noble).

Instructions

  1. Install proper packages.
$ sudo apt install -y make golang git
  1. Git clone latest version
$ git clone https://github.com/Mirantis/cri-dockerd.git
  1. Compile it
$ cd cri-dockerd && \
make cri-dockerd
  1. Install it
cd cri-dockerd && \
mkdir -p /usr/local/bin && \
install -o root -g root -m 0755 cri-dockerd /usr/local/bin/cri-dockerd && \
install packaging/systemd/* /etc/systemd/system && \
sed -i -e 's,/usr/bin/cri-dockerd,/usr/local/bin/cri-dockerd,' /etc/systemd/system/cri-docker.service
  1. Reload the daemon and enable services
$ sudo systemctl daemon-reload && \
sudo systemctl enable --now cri-docker

You may need to restart services after install if updates cri-docker.

sudo systemctl daemon-reload && \
sudo systemctl restart cri-docker
  1. How to verify?

Check the cri-docker services

$ systemctl status cri-docker

Verify cri-dockerd version

$ cri-dockerd --version
cri-dockerd 0.3.12-16-gebd9de06 (ebd9de06)

Reference

https://mirantis.github.io/cri-dockerd/usage/install-manually/

j796160836 avatar Oct 01 '24 21:10 j796160836

You might want to file another issue about improving "building from source", this issue was about the packages.

afbjorklund avatar Oct 03 '24 15:10 afbjorklund