this post was submitted on 10 Nov 2023
13 points (88.2% liked)

Selfhosted

40226 readers
1101 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Hello everyone, I'm looking for a web based IDE that can create isolated development environments as you could do in Koding or with VSCode with the "Remote" extension.

My use case is quite simple, I want to play around with different projects and languages without installing anything directly on my machine (docker containers FTW) to reduce conflicts between packages and garbage. The "web based" requirement is because I have a server with plenty of capacity to take care of this task and I'd like to keep as clean as possible my PC.

I've tried already code server but I cannot install the "Remote" extension to have it create containers on demand.

Any suggestion or help is more than welcome! :D

Edit: Thanks everyone for your great suggestions and idea, much appreciated! It took (and it's taking) me some time to explore the options you mentioned and the most aligned with my needs is Coder - thanks @cooopsspace@infosec.pub ) ! Basically with it I can create ephemeral development environments with the toolchain I want that contains instances of code-server.

you are viewing a single comment's thread
view the rest of the comments
[–] ck_@discuss.tchncs.de 9 points 1 year ago (2 children)

If all you want is to experiment without cluttering you local system, then the nix package manager is probably a better idea that self-hosting a web based IDE. It can be installed on any Linux (or Mac) and once installed works without extra privileges. As nix isolates all dependencies by design, it can be used to create pristine, project specific dev environments without impacting or relying on the rest of the system.

There are plenty of blog posts out there explaining the concepts and how to get started, eg. https://monospacedmonologues.com/2022/06/throwaway-development-environments-with-nix/

[–] knF@lemmy.world 2 points 1 year ago (1 children)

Fantastic suggestion and thanks for the post, very clear! I played with NixOS some time ago but I totally missed this capability. Fits quite well my use case, thanks! And I found this extension that could make things easier: https://marketplace.visualstudio.com/items?itemName=arrterian.nix-env-selector

[–] stardreamer@lemmy.blahaj.zone 2 points 1 year ago* (last edited 1 year ago)

Another thing you can look into is apptainer/singularity. Basically portable container binaries. Executing the binary automatically runs a program/drops you into a shell inside the container with your $HOME mounted inside. Stuff like cuda also work as long as your host system has appropriate drivers.

You can also port docker containers to apptainer directly via cli.