ubiquity-os / ubiquity-os-kernel

1 stars 19 forks source link

Abstract Kernel and Plugin Setup into UI #205

Open zugdev opened 6 days ago

zugdev commented 6 days ago

Not sure if this fits here or in ubiquity-os-kernel. As soon as the CLI tooling to setup kernel is merged, we can take our first shot into abstracting the entire kernel and plugin setup into an UI, at least the worker ones. By authenticating with Cloudflare and GitHub we should be able to not only deploy the workers (kernel and plugins), but setup the repos for the org as well. Then, I believe it'd make sense for the plugin installer to become more than a yml editor, and to handle activating workers, updating repos...

Keyrxng commented 6 days ago

Is this intended to be for the partner or plugin devs I'm a little confused because

  1. Partner's don't deploy anything they use ours, so they don't need to setup repos or set env vars just modify plugin settings.
  2. worker-deploy.yml handles deploying plugin workers to CF for devs on push within their repo and you don't need to host the kernel but npx wrangler deploy would do the trick.

Between the kernel GUI (it'll be more than a CLI I'd imagine if following probot's approach) and this config editor both devs and partners should be able to set things up through UIs (albeit two separate UIs but I think that makes sense)

I might be wrong and it will be a CLI but I recall probot having an interactive UI that would deploy locally for you and it would ping certain things to confirm you had set things up properly and walk you through steps.

zugdev commented 6 days ago

I thought about it for contributors, I understand partners use our infra. My final idea was to have a one click setup and a UI for live logs, those could be useful in QA. It might not be worth the work tho.

Keyrxng commented 6 days ago

Dockerizing everything has been discussed and I'm sure 0x4007 made a monorepo of sorts which pulled in everything as an alternative but I don't think what you are suggesting has been discussed yet.

Doesn't sound urgent but long term I think something like that would be cool. Hooked into your worker logs and displayed in a simple UI sounds nice because having multiple tabs of CF live-logs sucks lmao. I know you can tail but I haven't tried it maybe it's a better option than live logs.