Code Server (Vs code online)
-
@murgero jw if you still have a repo for this as the original link is dead =/
-
@plusone-nick my github has a repo, status is unknown as it's been a long time since I've touched it
https://github.com/mitchellurgero
https://github.com/mitchellurgero/cloudron-vscode-package
Note: this uses an old version of vscode and needs to be updated.
-
So, this thread seems to have died and wanted to revive it as it would be great to have vs-code online be a part of Cloudron. For me, I look to Cloudron to be a platform that hosts publicly facing apps, but have the security with Cloudron. This is something that can be easy to install on Home Assistant or my TrueNAS Scale system, but for it to function it's best it needs to be accessible over HTTPS... and that's where the problem comes in. It may not be "privacy focused" but it's one of the most commonly used development tools and it would be nice to have VS Code IDE available anywhere, whether from my desktop or tablet. Having it within Cloudron would be super helpful.
-
put one together https://github.com/c0decafe/cloudron-codeserver
-
-
Would be good to have .net I think so one can work with the language, no? Or is that superfluous??
-
@girish Yea I like @c0decafe's as it's definitely cleaner.
Mine installs some basic developer environments like powershell, .net, node, etc so actual code can be compiled and tested in-app. IDK if it should be included with @c0decafe's, but I think it is a QOL thing.
Edit: Now I remember why I built it over the LAMP app - so PHP apps can be developed in full (including MySQL). Could be cleaned up and tbh I haven't maintained it so it's probably better to use @c0decafe's anyway.
So his repo gets an upvote from me!
-
-
Yes, I updated the package with (un)license, impermanent home dir and a few other tweaks.
As for language support, I can't think of any clean implementation within the current scope.
As a matter of fact, my primary use case for this package is, counterintuitively, not development, but rather a power editor with extensions, ie: markdown editor with
git
integration,dendron
, etc..The only way to make it scale for actual software dev within the scope of a
cloudron
app would be leveraging (abusing?) the docker addon.The best candidate is
coder
, from the same team that maintainscode-server
: https://github.com/coder/coderYou can find a poc at https://github.com/c0decafe/cloudron-coder, but actually starting containers doesn't work yet.
Upstream
VSCode
also has a nifty devcontainers extension to do just that:- https://code.visualstudio.com/docs/devcontainers/containers
- https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers
It is however unfortunately not supported on web platforms right now:
Another alternative currently available on
cloudron
is theGitLab
webide, but:- No extensions support (yet)
https://gitlab.com/gitlab-org/gitlab/-/issues/355092 - No run/debug support (yet)
- Requires manually installed remote runtimes
https://docs.gitlab.com/ee/user/project/remote_development/
-
@c0decafe I don't know vscode that well enough. But does it allow connecting an external server to launch docker containers ? (instead of using the docker addon). If so, that's the ideal setup imo. Trying to use cloudron's internal docker network to launch app dev containters will bomb spectacularly at some point
-
-
-
@girish not tried it yet because it appears to not support added languages like nodejs.
I'm testing a self-built package based on openvscode-server with added nodejs and Flutter.
If I get it working with authentication, I will look at packaging for Cloudron.
But interested in any updates @c0decafe can give us.