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

Explore Podman 5 engine availability on GHA Ubuntu runner #478

Closed
odockal opened this issue May 16, 2024 · 1 comment
Closed

Explore Podman 5 engine availability on GHA Ubuntu runner #478

odockal opened this issue May 16, 2024 · 1 comment
Assignees
Labels
kind/enhancement ✨ Issue for requesting an improvement

Comments

@odockal
Copy link
Contributor

odockal commented May 16, 2024

Is your enhancement related to a problem? Please describe

Since we got a requirement for podman 5 to test bootc on linux (https://github.com/containers/podman-desktop-extension-bootc/actions/runs/9092678569/job/24989916149), we need to get podman 5 installed on the linux runner for the PR check at least.

Describe the solution you'd like

Ubuntu 2204 GHA runner and kubic repo combo offers podman 4.9.2.
Options: New ubuntu 2404 is coming, beta already available - https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md
There is a kubic repo with podman v5, but dedicated for ubuntu 2304: https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_23.04/amd64/.

We can try this combo if that would work for us.

Describe alternatives you've considered

No response

Additional context

No response

@odockal odockal added the kind/enhancement ✨ Issue for requesting an improvement label May 16, 2024
@odockal odockal self-assigned this May 16, 2024
@odockal odockal moved this to 🚧 In Progress in Podman Desktop Planning May 16, 2024
@odockal
Copy link
Contributor Author

odockal commented May 16, 2024

So it seems possible to actually install podman v5 on Ubuntu 24.04 beta gha runner using kubic unstable repositories for Ubuntu 23.04.

Something like should do:

  e2e-tests:
    name: e2e tests
    runs-on: ubuntu-24.04

    steps:
      - name: Update podman
        run: |
          # ubuntu version from kubic repository to install podman we need (v5)
          ubuntu_version='23.04'
          sudo sh -c "echo 'deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_${ubuntu_version}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list"
          curl -L "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_${ubuntu_version}/Release.key" | sudo apt-key add -
          # install necessary dependencies for criu package which is not part of 23.04
          sudo apt-get install -qq libprotobuf32t64 python3-protobuf libnet1
          # install criu manually from static location
          curl -sLO http://cz.archive.ubuntu.com/ubuntu/pool/universe/c/criu/criu_3.16.1-2_amd64.deb && sudo dpkg -i criu_3.16.1-2_amd64.deb
          sudo apt-get update -qq
          sudo apt-get -qq -y install podman || { echo "Start fallback steps for podman nightly installation from a static mirror" && \
            sudo sh -c "echo 'deb http://ftp.lysator.liu.se/pub/opensuse/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_${ubuntu_version}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list" && \
            curl -L "http://ftp.lysator.liu.se/pub/opensuse/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_${ubuntu_version}/Release.key" | sudo apt-key add - && \
            sudo apt-get update && \
            sudo apt-get -y install podman; }
          podman version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement ✨ Issue for requesting an improvement
Projects
None yet
Development

No branches or pull requests

1 participant