rgolangh / gnome-shell-extension-containers Goto Github PK
View Code? Open in Web Editor NEWcontainers is a gnome-shell extension to manage linux container, run by podman
License: Apache License 2.0
containers is a gnome-shell extension to manage linux container, run by podman
License: Apache License 2.0
It seems like most of the other functionality of this extension works well, but the "logs" function does not launch a gnome-term (or anything else) like I'd expect in the latest packages available for Fedora 31.
If possible do not close extension after I clicked on start/stop/pause...
Only close extension after I clicked on rm
Later versions of the extension may offer more feedback and I thing it would be helpful to be able to see any new information provided after I clicked a feature button
Hey,
when no container is present, the extension shows an error "Error occured when fetching container". A better suggestion would be "No container present".
Would be aweome to see this fixed. Thanks a lot for the cool extension.
Container submenu is not expanded unless you click inside of the white arrow on the right, so it is very difficult for the user to navigate across the different containers. It is very complicated to click in the right place of the menu to expand the menu, however when the menu is expanded you could click in any place of each opcion.
Is it something wrong in my envionrment? Fedora 33 with GNome.
In my previous laptop with Fedora 31 this extension worked successfully and it was very productive for me. However I installed on my new laptop with a fresh installation of Fedora 32 but it seems that something is not working on.
I created some containers using podman 2.0.3 but the extension always show me the same message 'Error occured when fetching containers'
I don't know how to see the logs from the gnome extension, I only did:
❯ sudo journalctl /usr/bin/gnome-shell | grep -i container Jul 24 11:34:12 localhost.localdomain gnome-shell[2530]: clutter_container_add_actor: assertion 'CLUTTER_IS_CONTAINER (container)' failed Jul 24 11:34:12 localhost.localdomain gnome-shell[2530]: clutter_container_add_actor: assertion 'CLUTTER_IS_CONTAINER (container)' failed Jul 24 11:34:12 localhost.localdomain gnome-shell[2530]: clutter_container_add_actor: assertion 'CLUTTER_IS_CONTAINER (container)' failed
but without relevant information.
Is it Fedora 32 supported for this extension? Do I need to do something else?
Fedora 30
I installed the extension and in the menu I can just see Error occurred when fetching containers
I looked at the source code and found 1 error:
#$podman ps -a --format '{{json .}}'
Error: template: data:1: function "json" not defined
but podman ps -a --format '{{.}}'
works
Still the extension does not work before and after I made the change. I would appreciate it, when you would fix the extension.
I just pulled your changes. Beforehand git
annoyed me with some merge problems (I didn't touch the repo at all since first pull) like git pull origin main
. Then I wanted to build it as written in the README.
Unfortunately it won't enable, if the message is correct. Please see enclosed terminal output:
sudo make all
gnome-extensions pack -f --extra-source=podman-icon.png --extra-source=classic.css --extra-source=modules
gnome-extensions install -f [email protected]
gnome-extensions enable containers@royg
Fehler beim Verbinden zur GNOME-Shell --> (Translates to: Error connecting to GNOME-Shell)
make: *** [Makefile:14: enable] Fehler 2 --> (Fehler=Error)
If I should provide further information, drop me a line how to and I'll try my very best.
Thank you very much. Cheers!
i am running fedora 35 and i only see the change on start/stop behavior when i open the menu again.
is it possible to close menu after i click on it or make the change on the fly?
Here are a few feature suggestions
Add a feature that opens a terminal and connects to inside the container
-it
Connect the container to the (gnome)terminal
(podman exec container command)
podman restart container
Restart container, add between pause and stop
--name name
Give the container a name, makes it simpler to differentiate containers with with same source image
podman inspect container
Return metadata (in JSON) about a running container (clipboard)
podman stats container
Display a live stream of a container’s resource usage (terminal?)
podman top container
Display the running processes of a container (terminal?)
podman logs [-tail] container
Display the logs of a container (terminal?)
Please update for GNOME 45.
GNOME 45 does imports differently.
See: https://gjs.guide/extensions/upgrading/gnome-shell-45.html#esm
The extension displays information and currently only 2 of the displayed are also with a feature after click.
If any of the other informations displayed do not have a feature behind the text just copy the displayed information to the clipboard after click.
So I can use the information in any other fashion.
Hope that makes sense.
With podman's integration with systemd, pods can be managed via unit files.
Hence, start/stop/restart will be controlled via the service files instead by interacting with podman directly.
In certain cases, it is useful to have the exact podman command that starts the pod/container.
In a similar manner of "copy login command" of OCP web console that allows the user to run it from the CLI.
On a clean install of fedora 31, I can't get the menu to display at all. I only get the error message "Error occurred when fetching containers".
I have podman 1.6.2, libgpod 0.8.3, gnome shell 3.34.1 and the latest version of the containers extension from the extension.gnome.org website.
Looking in the log files, I see a lot of messages stating:
Usage of object.actor is deprecated for ContainersMenu
get@resource:///org/gnome/shell/ui/environment.js:242:29
renderMenu@/home/james/.local/share/gnome-shell/extensions/containers@royg/extension.js:80:9
_init/<@/home/james/.local/share/gnome-shell/extensions/containers@royg/extension.js:56:17
Error occurred when fetching containers
found 4 containers
Hey there! I would like to ask you, if it was possible to solve an issue with the log display on Ubuntu 20.04 LTS . It runs fine, if the container runs, but closes immediately, if the container stopped.
This is a problem, if I want to find out, what error was thrown. Then I have to open the terminal and go the usual way via podman container log....
Could you leave the log open until the user kills the window?
Best regards and thank you for your work!
Sebastian
The extension fails to load on Gnome 40
https://blogs.gnome.org/shell-dev/2021/03/12/gnome-40-your-extension/
Thanks for the great extension. Clicking the podman icon with F32 beta on the tray says "Error occurred when fetching containers"
This is what I see in the journal:
Mar 25 08:18:39 hostname.local gnome-shell[2046]: found 4 containers
Mar 25 08:18:39 hostname.local gnome-shell[2046]: Error occurred when fetching containers: Error: Tried to construct an object without a GType; are you using GObject.registerClass() when inheriting from a GObject type?
I'm not sure how helpful this is or what other info is needed, but it looks like something changed in 3.36.
After the latest update, which I believe was to add support for gnome 45 (#52 (comment)), I'm now getting a similar import error running gnome 44.7
Thank you for making this extension!
GNOME 42 has been out for a while, gnome-shell-extension-containers needs to support it
Extension no longer works after rebasing on Silverblue 38.
First thank you for the great work. I use it extensively.
I found, that on Ubuntu 20.04 LTS the Extension becomes unresponsive (as the rest of any Gnome Top Bar), when it takes some time to stop a container. For example I have a cluster of Kafka on my computer plus eJabberd, a Springboot-Container and so on and then I cannot do anything else in the Extension. There seems to be a synchronize / missing async issue.
The same occurs, when stopping a container or huge pod from the terminal on my computer. Then the Extension isn't responding, too.
Nonetheless, your app helps great! :-)
Best regards from Berlin from dev to dev
Sebastian
change icons smaller without contour and suitable for dark themes ...ugly
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.