Started on graphic interface for Lima using Qt #395
Replies: 10 comments
-
Thanks for working on this!
qtermwidget seems missing in
Thanks, I'm happy to accept your repo, but if we move the project to some foundation like CNCF, we might have to move off non-Apache licensed repos. We are not discussing such plan (yet), though. Also please see afbjorklund/lima-gui#1 for the licensing concern. |
Beta Was this translation helpful? Give feedback.
-
I can see how GPL is a concern, but BSD and LGPL are alright I hope |
Beta Was this translation helpful? Give feedback.
-
Now using external $TERMINAL (x-terminal-emulator), so no GPL library. |
Beta Was this translation helpful? Give feedback.
-
Now the create/start/stop/remove buttons work as well, plus a new refresh button... The refresh button is normally not needed, but can be used to sync with e.g. CLI The next thing is to add columns for the state of each instance, and not just the name. This also enables disablings button, such as requiring stop before remove and so on. |
Beta Was this translation helpful? Give feedback.
-
Now also showing the arch, cpus, memory and disk columns Rearranged the buttons a bit, and updating buttons on select |
Beta Was this translation helpful? Give feedback.
-
I made a binary release, in case you don't want to build from source: https://github.com/afbjorklund/lima-gui/releases/tag/v0.1.0 |
Beta Was this translation helpful? Give feedback.
-
One question that remains, is if there should be anything for Currently it mostly handles lima instances, but no containers/images... |
Beta Was this translation helpful? Give feedback.
-
Yes 👍 |
Beta Was this translation helpful? Give feedback.
-
The thing is that lima(ctl) itself doesn't have any nerdctl-specific features, beyond Beyond that, everything is run over the So one could argue that it would be up to the container runtime to present an interface, and not do it "inside" lima itself. For instance the new Podman machine posts a link to Cockpit, and for Docker one can deploy something like Portainer (CE). So far I haven't seen much except for Rancher Desktop that supports containerd, though. (no If you exclude Kubernetes and Nomad, and some CLI apps, that is. So there is not much available for "linking" to, either. It wouldn't be impossible to wrap But it would be some scope creep and additions, and definitely means it would be back to the drawing board (Pencil Sketch) images$ lima nerdctl images
REPOSITORY TAG IMAGE ID CREATED SIZE
busybox latest f7ca5a32c10d 11 seconds ago 1.3 MiB containers$ lima nerdctl ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
46d487c5b23c docker.io/library/busybox:latest "true" 23 seconds ago Exited (0) 23 seconds ago It would be "nice" to support all three container runtimes, as well.
Unfortunately there are some big holes in CRI, but they are "similar". |
Beta Was this translation helpful? Give feedback.
-
The initial release is available here: https://github.com/afbjorklund/lima-gui/releases/tag/v0.1.0 Also fixed compatibility with Qt6, since the release (it is compatible with both versions of Qt) It seems unlikely that it will get any container or image functionality in the near future, though. At this point I consider it more or less feature complete, will see about the Windows version... |
Beta Was this translation helpful? Give feedback.
-
Similar to the PoC that I did for Podman:
https://github.com/afbjorklund/lima-gui
Added some design docs to the wiki of the project:
https://github.com/afbjorklund/lima-gui/wiki/Main-list
Cross-platform (Linux, Mac, Win)
System Tray Icon + Main Window
Built-in terminal, with color support (thanks QTermWidget)
Built-in editor, with syntax highlighting (thanks QSourceHighlite)
Uses Qt 5, since that version comes standard with Ubuntu 20.04
Might be more hassle to set up on Mac, but I think it is in
brew
?Once it has more features implemented (currently it knows "shell"),
I would be happy to move it over to the "lima-vm" organization too.
Beta Was this translation helpful? Give feedback.
All reactions