Hello there,
I’m currently creating an add-on to develop automations with JS using local websocket API. For this, I need to start a NodeJS process in my container, and would like to use code-server as the UI (using ingress) to edit the javascript files in the addon_config, with a set of preloaded npm packages (including my own)…
The thing is I’m far from being a devop/sysadmin: I’m playing a lot with docker, created a lot of images using node/debian official images (or devcontainers images for vscode), but this is not my domain of expertise (I write a bit of shell when needed) and I don’t get how the S6/rootfs stuff works
I’m more comfortable with debian, but if Alpine is a better choice for this particular use case I could live with it…
I tried to look several images for inspiration:
- addon-vscode for the code-server part, based on debian
- addon-node-red based on alpine but don’t know how to install code-server the proper way
- even addon-base-nodejs which is archived (this one would have been helpful, I would just have to get how to set up code-server on it)
Obviously, I want the image to have the base
I think I could eventually find a way to make it run, but I’m afraid this wouldn’t be stable and/or efficient setup. Having an expert point of view on that would be very helpful to create a state of the docker image
Would there be any expert devops here who could help me on this point?