launchrctl / web

Launchr Web plugin
Apache License 2.0
1 stars 2 forks source link

Usage of application #12

Closed iberdinsky-skilld closed 2 months ago

iberdinsky-skilld commented 4 months ago

This Web UI should be possible to launch via launchr in Docker environment on any platform which contain actions/**/action.yaml

davidferlay commented 4 months ago

Requirements:

Steps:

davidferlay commented 4 months ago

Ivan BERDINSKY
in fact i think can be one docker with server and dist directory generated by client. i've asked Aleksandr BRITVIN to add some notes when he'll be here
because dist dir will contain all html/css/js and will not need specific node js etc
so one go server which serve index.html with assets and /api dir
this is how i understand it now

David FERLAY
interesting
even if html/css/js is generated, it still need backend server to fetch data from

Ivan BERDINSKY
yes

David FERLAY
maybe that was Aleksandr BRITVIN idea: compile files needed, then have them served by golang from plugin. So no need for nodejs/yarn at all, no action, no container
then again: I don't know how to encapsulate static files to launchr plugin
but Aleksandr BRITVIN said in call it was possible
i just don't know how ^^
iberdinsky-skilld commented 4 months ago

Aleksandr BRITVIN The idea is to build client and embed it in the binary It was implemented here https://github.com/launchrctl/web/blob/main/files.embed.go But for that I would also need to update the build step I thought about running a container with a web server, but then I considered it's too much unneeded complexity for the moment I think in the future we will have to introduce some microservices + microfrontends if we intend to implement all of what JB mentioned The truth is, we need nodejs and yarn only on build step. Build step can be done on plugin release or with docker. After that, plasmactl must be able to serve the client+backend

iberdinsky-skilld commented 2 months ago

issues will created. plan discussed.