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

[kicbase] Proposal: install podman from binary tgz, not from deb #14198

Closed
afbjorklund opened this issue May 20, 2022 · 6 comments
Closed

[kicbase] Proposal: install podman from binary tgz, not from deb #14198

afbjorklund opened this issue May 20, 2022 · 6 comments
Labels
co/runtime/crio CRIO related issues kind/improvement Categorizes issue or PR as related to improving upon a current feature. kind/proposal proposals priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.

Comments

@afbjorklund
Copy link
Collaborator

The packages we are using for podman are not supported anymore, upstream.

The latest release is 3.4.2, while source releases exist for 3.4.3 through 3.4.7

https://github.com/containers/podman/releases

So need to stop using "Kubic", and instead build and install from a binary tarball.


Unfortunately this also involves a bunch of other support packages:

# Install cri-o/podman dependencies:
RUN export ARCH=$(dpkg --print-architecture | sed 's/ppc64el/ppc64le/') && \
    sh -c "echo 'deb https://downloadcontent.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list" && \
    curl -LO https://downloadcontent.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_20.04/Release.key && \
    apt-key add - < Release.key && \
    if [ "$ARCH" != "ppc64le" ]; then \
        clean-install containers-common catatonit conmon containernetworking-plugins cri-tools podman-plugins crun; \
    else \
        clean-install containers-common conmon containernetworking-plugins crun; \
    fi
# install podman
RUN export ARCH=$(dpkg --print-architecture | sed 's/ppc64el/ppc64le/') && \
    if [ "$ARCH" != "ppc64le" ]; then sh -c "echo 'deb http://downloadcontent.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list" && \
    curl -LO https://downloadcontent.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_20.04/Release.key && \
    apt-key add - < Release.key && \
    clean-install podman && \
    addgroup --system podman && \
    mkdir -p /etc/systemd/system/podman.socket.d && \
    printf "[Socket]\nSocketMode=0660\nSocketUser=root\nSocketGroup=podman\n" \
           > /etc/systemd/system/podman.socket.d/override.conf && \
    mkdir -p /etc/tmpfiles.d && \
    echo "d /run/podman 0770 root podman" > /etc/tmpfiles.d/podman.conf && \
    systemd-tmpfiles --create; fi
@afbjorklund afbjorklund added priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. co/runtime/crio CRIO related issues kind/proposal proposals kind/improvement Categorizes issue or PR as related to improving upon a current feature. labels May 20, 2022
@afbjorklund
Copy link
Collaborator Author

afbjorklund commented May 20, 2022

We can leave the cri-o packages (for now), even if they do have their share of problems:

i.e. kubic often breaks the build:

@afbjorklund
Copy link
Collaborator Author

Preferrably this installation should be made separate from the image, and just "cached":

@afbjorklund
Copy link
Collaborator Author

afbjorklund commented May 25, 2022

Don't really want to build tarballs, so the first step would be to try to rebuild and host the podman deb packages.

Similar to what was needed before...

@ccamacho
Copy link

ccamacho commented Jun 2, 2022

@afbjorklund do you think is possible to build a podman 4.x .deb/.rpm using fpm?

@afbjorklund
Copy link
Collaborator Author

Not so interested in podman4, and not sure if fpm would help building the debs

@afbjorklund
Copy link
Collaborator Author

afbjorklund commented Jun 4, 2022

I think the kubic podman will do for now, even if upgrading to 3.4.7 would be good

@afbjorklund afbjorklund closed this as not planned Won't fix, can't repro, duplicate, stale Jun 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/runtime/crio CRIO related issues kind/improvement Categorizes issue or PR as related to improving upon a current feature. kind/proposal proposals priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Projects
None yet
Development

No branches or pull requests

2 participants