podman-desktop icon indicating copy to clipboard operation
podman-desktop copied to clipboard

RPM package for Fedora and EPEL

Open Conan-Kudo opened this issue 2 years ago • 19 comments

Is your feature request related to a problem? Please describe

I'd like to be able to install Podman Desktop through DNF on Fedora or RHEL/CentOS, which also opens doors to being able to bundle/ship Podman Desktop in a container-focused spin or third-party remixes.

Describe the solution you'd like

This requires the Podman Desktop software to be packaged as an RPM and reviewed for inclusion in Fedora and EPEL.

Describe alternatives you've considered

No response

Additional context

As this is Electron-based, Fedora needs to package and ship an Electron runtime. Fortunately, @cryptomilk has gone through the effort of figuring that out and merely needs co-maintainers before he submits it for review. @thunderbirdtr noted on Twitter he'd help here, but more folks would be welcome. 😄

This ticket was suggested by @gbraad on Twitter to ensure we have this on the roadmap and prioritized properly.

Conan-Kudo avatar Apr 15 '22 11:04 Conan-Kudo

electron builder can provide RPM out of the box so we could enable this option but I'm not sure if it's the RPM you would expect ?

https://www.electron.build/configuration/linux

We could provide AppImage or Snap as well

benoitf avatar Apr 15 '22 12:04 benoitf

electron builder can provide RPM out of the box so we could enable this option but I'm not sure if it's the RPM you would expect ?

We would like to able install via "dnf" from Fedora repository. That's the RPM we looking for.

onuralpszr avatar Apr 15 '22 12:04 onuralpszr

We will be packaging it for Fedora, but right now, it is being updated on a daily basis. I would figure when it is declared 1.0.

rhatdan avatar Apr 15 '22 22:04 rhatdan

Packages can be generated from our builds if needed ... Or package as flatpak? @benoitf WDYT?

gbraad avatar Apr 16 '22 01:04 gbraad

For sure flatpak or Snap packages can be added. It seems lot of people are interested by the GUI on Linux as well.

benoitf avatar Apr 16 '22 20:04 benoitf

I want a standard RPM, so users can just do.

dnf -y install podman-desktop

And end up with Podman-desktop and podman installed on their box.

rhatdan avatar Apr 18 '22 09:04 rhatdan

@rhatdan:

I want a standard RPM, so users can just do.

dnf -y install podman-desktop

That would be great.

@benoitf:

electron builder can provide RPM out of the box so we could enable this option but I'm not sure if it's the RPM you would expect ?

https://www.electron.build/configuration/linux

You can use Electron Builder to build a binary RPM, but not to ship it in the Fedora repositories. RPMs built like this are in no way compatible with Fedora's packaging guidelines or build system.

gotmax23 avatar Sep 09 '22 04:09 gotmax23

I've packaged nodejs-electron and other dependencies to build electron apps in the openSUSE Build Service for Fedora:

https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron https://build.opensuse.org/package/show/devel:languages:nodejs/app-builder

Here is an example how to build an electron app: https://build.opensuse.org/package/show/network:im:signal/signal-desktop

cryptomilk avatar Sep 09 '22 05:09 cryptomilk

@cryptomilk are you interested in contributing RPM for Podman Desktop ?

benoitf avatar Sep 09 '22 06:09 benoitf

I don't have the time for it. But the work for electron is already done. A fedora maintainer is needed ...

cryptomilk avatar Sep 09 '22 06:09 cryptomilk

@jnovy @lsm5 PTAL

rhatdan avatar Sep 09 '22 15:09 rhatdan

@rhatdan do we have anyone in the podman-desktop team that would like to become fedora maintainers? I can work with them, but I'd rather not be the point person for this.

lsm5 avatar Sep 09 '22 17:09 lsm5

Just to be clear, nodejs-electron isn't packaged in Fedora, either. Perhaps you can reach out on the Fedora devel mailing list to see if anyone is interested in helping out with that.

gotmax23 avatar Sep 09 '22 18:09 gotmax23

Just to be clear, nodejs-electron isn't packaged in Fedora, either. Perhaps you can reach out on the Fedora devel mailing list to see if anyone is interested in helping out with that.

so nodejs seems to be cool with bundling afaict. https://docs.fedoraproject.org/en-US/packaging-guidelines/Node.js/ . Can't electron be bundled into podman-desktop or does it need to live in a separate package?

lsm5 avatar Sep 15 '22 13:09 lsm5

Electron needs to be built as a shared dependency because it's a nodejs runtime platform extension. It's not pure JavaScript. The rest of Podman Desktop's dependencies can and should be bundled, but we definitely don't want to do that for Electron.

Conan-Kudo avatar Sep 15 '22 13:09 Conan-Kudo

Electron needs to be built as a shared dependency because it's a nodejs runtime platform extension. It's not pure JavaScript. The rest of Podman Desktop's dependencies can and should be bundled, but we definitely don't want to do that for Electron.

ack, makes sense. Thanks @Conan-Kudo

lsm5 avatar Sep 15 '22 13:09 lsm5

I see another response on a different thread that electron depends on fetching prebuilt blobs at build time.

@rhatdan If that's still the case, we might be better off with a copr or continuing with obs, unless someone is really willing to invest time into this.

lsm5 avatar Sep 15 '22 14:09 lsm5

Electron can be built entirely from source, as @cryptomilk has done.

Conan-Kudo avatar Sep 15 '22 14:09 Conan-Kudo

We build electron completely from source for Fedora:

https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron

The OBS build runners don't have any network connectivity!

cryptomilk avatar Sep 16 '22 06:09 cryptomilk

+1 for flatpak

jhoblitt avatar Oct 25 '22 17:10 jhoblitt

It seems that flatpak already exists: https://podman-desktop.io/docs/Installation/linux-install

jhoblitt avatar Oct 25 '22 17:10 jhoblitt

yes it exists https://flathub.org/apps/details/io.podman_desktop.PodmanDesktop

benoitf avatar Oct 25 '22 17:10 benoitf

Confirmed the flatpak as working on F36. Screenshot from 2022-10-25 10-27-24

jhoblitt avatar Oct 25 '22 17:10 jhoblitt

not an official package but I got a copr setup in case anyone wants to try: https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-desktop/

lsm5 avatar Nov 25 '22 14:11 lsm5

I'm interested in being able to dnf install podman-desktop as well; it was rather surprising to see it hasn't landed yet. What are the steps I can can help out with to make this happen?

shivdhar avatar Sep 29 '23 01:09 shivdhar

This issue has been automatically marked as stale because it has not had activity in the last 6 months. It will be closed in 30 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions!

github-actions[bot] avatar Mar 29 '24 00:03 github-actions[bot]

This issue has been automatically closed because it has not had any further activity in the last 30 days. Thank you for your contributions!

github-actions[bot] avatar Apr 28 '24 00:04 github-actions[bot]