Open dpage opened 3 years ago
Comment migrated from Redmine: https://redmine.postgresql.org/issues/6523#note-1 Originally created by Rahul Shirsat at 2021-06-25 10:58:14 UTC.
Hi Dave,
Any thoughts on this?
Redmine ticket header update:
Name | Old Value | New Value |
---|---|---|
Assigned To changed | Dave Page |
Comment migrated from Redmine: https://redmine.postgresql.org/issues/6523#note-2 Originally created by Aditya Toshniwal at 2021-07-02 11:34:59 UTC.
Redmine ticket header update:
Name | Old Value | New Value |
---|---|---|
Sprint changed | Ready | |
Priority changed | Normal | Low |
Assigned To changed | Dave Page |
Comment migrated from Redmine: https://redmine.postgresql.org/issues/6523#note-3 Originally created by Raimund Sacherer at 2021-08-13 13:22:22 UTC.
I am also eagerly awaiting a flatpak for pgadmin
Comment migrated from Redmine: https://redmine.postgresql.org/issues/6523#note-4 Originally created by Ludwid Reyes at 2022-04-07 05:59:54 UTC.
A flatpak would also greatly help Gentoo.
I'm not going to pretend to be an expert, so I hope I'm being accurate: it seems to me that there is an objection by Linux Distros of the inclusion of FEATURES="-network-sandbox" in order to compile newer versions of PGAdmin4 (6.7), so we're stuck on 4.30 which is dependent on flask-1 and not flask-2 which prevents the system from upgrading other packages.
The current solution that worked for me was using the Anaconda distribution of python to install it with pip, but it should work on any python virtual environment is my assumption.
Anaconda Installation: https://docs.anaconda.com/anaconda/install/linux/
upgraded anaconda : conda update --all
downgrade Jinja2 to 3.0.0 pip install jinja2==3.0.0
Install pgadmin4: pip install pgadmin4==6.7
edit config file: ~/anaconda3/lib/python3.9/site-packages/pgadmin4/config.py Change the paths for LOG_FILE,SQLITE_PATH,SESSION_DB_PATH, and STORAGE_DIR to somewhere in your home directory.
Then when you launch pgadmin4 it will prompt you for a username and password, and then you can point your browser to http://127.0.0.1:5050 while it's running.
To uninstall Anaconda (would also remove pgadmin4) if you ever wanted to: https://docs.anaconda.com/anaconda/install/uninstall/
I don't know the state of this, but should probably be revisited. Rolling release distros are not included on the build system and pip is now blocked by some distros: https://github.com/python/cpython/issues/102134#issuecomment-1445428402 While the restriction can be avoided, I think that this is already too much and the need for a solution that covers all Linux environments is becoming evident. If for some reason it's not flatpak, could it be snap or could be an appimage? I have not real preference, but at less one:
Offering the software as a flatpak would lower the burden on developers and would broaden the distros in which the app will run. Instead of the devs needing to create multiple packages for multiple distributions and their multiple versions, devs would need to make just one package, and it will run everywhere. I was even thinking of volunteering myself to create a flatpak for pgAdmin4 but its stack seem complicated to me since I don't work with nodejs nor with the web front-end tech stuff that pgAdmin4 uses. But for pgAdmin4 devs, creating a flatpak would be a no-brainer. A lot easier than maintaining multiple builds for multiple versions of multiple distros.
I wrote the build files: org.pgadmin.pgadmin4.zip
If someone is interested they should provide an AppStream metadata file for the store. E.g. using this UI: https://www.freedesktop.org/software/appstream/metainfocreator/#/guiapp
Flatpak can be tested locally this way:
flatpak run org.flatpak.Builder --force-clean --sandbox --user --install --ccache builddir org.pgadmin.pgadmin4.yaml
flatpak run org.pgadmin.pgadmin4
Should hopefully be pretty easy with https://www.freedesktop.org/software/appstream/metainfocreator/#/
So I've added some metadata here https://github.com/razzeee/org.pgadmin.pgadmin4 and tested if it builds / did some cleanup.
It's basically good enought to be send to flathub, but there are two things:
regen-pip.sh
script to workI guess it would also be nice to ship some versin of pg_dump etc, but I guess you can also change the sandbox and just use those from the host system. So it should still work fine.
Started the process over at https://github.com/flathub/flathub/pull/5105
Takeaways so far:
sed
changes, remapping stuffdeb
and can we enable arm builds then?Can we build from source and not the
deb
and can we enable arm builds then?
Doesn't look like ARM64 Linux is supported in NW.js (desktop app is based on it): https://github.com/nwjs/nw.js/issues/1151
That's a shame, but then we can just skip arm - building from source still would be cool
Issue migrated from Redmine: https://redmine.postgresql.org/issues/6523 Originally created by Karsten Lenz at 2021-06-09 10:25:44 UTC.
It would be helpful to have PgAdmin available for Flatpak, this will also include the Arch Linux based community where PgAdmin is a nightmare. On Arch the lates working version is 4.30, there is a non working 5.25 ARU Package which whill not compile.
With Flatpak it is possible add many Distributions with just one Flatpak package.
The Hardware support from for example Manjaro is fantastic comparing to other Distributions.
Regards