A case for an Immich Flatpak
from rfr_Foglia@feddit.it to selfhosted@lemmy.world on 17 Jul 14:15
https://feddit.it/post/19743925

Jellyfin Server has a flatpak (and other packing formats too) version that you can easily install without docker directly on your PC. Would it make sense for Immich to do the same? In my mind it would be super useful, I could sync my photos when my PC is on and when is off rely on my local photos only since my main goal is having a backup of them.

Am I crazy or it makes sense?

#selfhosted

threaded - newest

Appoxo@lemmy.dbzer0.com on 17 Jul 14:20 next collapse

Immich needs an external database.

Jellyfin uses built-in sqlite.

MysteriousSophon21@lemmy.world on 19 Jul 04:29 collapse

This is exactly why flatpaks are trickier for Immich - managing the PostgreSQL dependency outside the sandbox is a real headache since flatpak isolation would complicate the database conection, whereas Jellyfin’s SQLite just works as a self-contained file.

dgdft@lemmy.world on 17 Jul 14:25 next collapse

It’s extra work to maintain and test another release format — and the core developers want to focus on making software.

No one is stopping you from rolling your own flatpak.

ISolox@lemmy.world on 17 Jul 14:40 next collapse

I guess I’m a bit confused, immich does have a few docker containers available, I’m using one for backups and it works great.

vhstape@lemmy.sdf.org on 17 Jul 14:50 next collapse

My understanding is that Flatpaks are generally reserved for GUI applications and not command-line tools or servers. I’m not sure it’s the ideal format for Immich.

That said—and I’m probably going to get hate for this—there is an Immich snap package that does just what you’re looking for.

rfr_Foglia@feddit.it on 17 Jul 15:02 next collapse

Thanks man, I’m gonna try it asap

lena@gregtech.eu on 17 Jul 17:02 next collapse

Snap is amazing for CLI stuff

illusionist@lemmy.zip on 17 Jul 19:25 collapse

Nothing in Flatpak stipulates that it only supports GUI applications.

In fact the tutorial offers to create a CLI application:

unix.stackexchange.com/…/does-flatpak-support-com…

avidamoeba@lemmy.ca on 17 Jul 15:32 next collapse

It probably can be packaged in a flatpak but it would be more of a challenge than using the docker package. You could implement your use case today with the default docker compose setup. You could be up and running in minutes. Start it with -d and it would even start automatically on reboot. It won’t consume any more resources than a flatpak version.

Just try this in a directory somewhere: immich.app/docs/install/docker-compose/

As for docker itself, if you’re on Ubuntu or Debian, you can use the docker version from the stock repos. The package is docker.io and for compose you want docker-compose-v2

rfr_Foglia@feddit.it on 18 Jul 05:18 collapse

Thanks for the info

priapus@piefed.social on 17 Jul 16:23 next collapse

If your goal is simply having a backup then Immich is probably overkill. Why not just use something like Syncthing?

PoisonedPrisonPanda@discuss.tchncs.de on 17 Jul 19:29 collapse

  • for syncthing. it aint a backup solution. but it makes life simpler
rfr_Foglia@feddit.it on 18 Jul 05:15 collapse

With Syncthing my smartphone and PC would be perfectly synched (from what I know), but isn’t exactly what Immich does. With it you can remove photos one your phone and still view them when the PC is on

darkan15@lemmy.world on 17 Jul 20:36 next collapse

In my mind it would be super useful, I could sync my photos when my PC is on and when is off rely on my local photos only since my main goal is having a backup of them.

You could do this perfectly with the docker version, so just curiosity here, why not user docker?

Is it because you don’t want to install docker for only Immich? (you could also install other selfhosted server/apps as bonus),

would you be against snap? As someone already mentioned, there is a snap version.

If the important thing is having backups of your photos, there are alternative apps with different packaging formats.

You could make a request for flatpak, and see if other users also would like it, but you would have to wait for feedback from devs and understand if they don’t have the resources or willingness to maintain it.

Am I crazy or it makes sense?

If I’m interested in a specific app, I see what packaging formats it has and see how to install it and try it out. Only if I’m having issues with it (that can’t be solved), or can’t run it on my specific distro with the available packaging formats, I try to suggest/request a different format.

rfr_Foglia@feddit.it on 18 Jul 05:12 collapse

I know how to use docker (a bit) and I have already installed Immich with it some time ago, but it would be nice to have an easier alternative, especially for less tech inclined people

carloshr@lile.cl on 17 Jul 23:50 next collapse

does jellyfin have a flatpak app for the server or is it just the client app? So far I know it is just the client.
I think the easiest way to install immich is with docker.

@rfr_Foglia @selfhosted

rfr_Foglia@feddit.it on 18 Jul 05:08 collapse

It has seprataed installable versions for the server and and for the client. I use the flatpak app to host my stuff on my pc

carloshr@lile.cl on 18 Jul 05:11 collapse

you're right. I've just noted that client and server are available in flathub

@rfr_Foglia @selfhosted

HybridSarcasm@lemmy.world on 18 Jul 00:11 next collapse

Surely this is better-suited for the Immich GitHub Discussions page, no?

rfr_Foglia@feddit.it on 18 Jul 05:05 collapse

I wanted to have a little bit of feedback before opening an issue or a discussion there

bitwolf@sh.itjust.works on 18 Jul 00:54 next collapse

A podman quadlet would be a great way to manage the Immich container.

Keep in mind your system will already have the plumbing for podman. So it’s not as bad if you’re averse to using docker.

It’d be managed as a systemd unit. IMO its a better method than flatpak.

Strit@lemmy.linuxuserspace.show on 18 Jul 05:22 next collapse

As far as I know, the Jellyfin server flatpak is not made by the Jellyfin team, but by one from the community.

So I don’t see what would be stopping you from doing the same with Immich.

rfr_Foglia@feddit.it on 18 Jul 06:22 collapse

<img alt="" src="https://feddit.it/pictrs/image/76537eda-c4ff-4bdf-9355-efa2075644f5.jpeg">

looks like it’s made by the Jellyfin team, by I could be misunderstanding the meaning of the verified checkmark

Strit@lemmy.linuxuserspace.show on 18 Jul 06:30 collapse

Ah. It was started by a community member, but seems that a team member now vouches for it. CHange made 5 moths ago.

PeriodicallyPedantic@lemmy.ca on 18 Jul 06:25 collapse

Considering that Linus himself only makes binaries for windows and mac, and doesn’t bother packaging for Linux because it’s so painful, I’m not surprised that the immich folks didn’t make one.