sigmoid.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A social space for people researching, working with, or just interested in AI!

Server stats:

574
active users

#devcontainer

0 posts0 participants0 posts today

Trying to access a #VSCode #DevContainer from another computer on your network?

Set “remote.localPortHost” to “allInterfaces” (thats an uppercase “i” in there). Ports exposed by your app running in the container will now be accessible by the host machine’s IP address.

I've been struggling with getting a larger .NET Project to open in a DevContainer. Specifically, the language server kept dying and I was always too busy to figure out why.

It was running out of memory!

Docker on my dev machine had a max memory allocation of 8GB and limited swap. Cranking that up and everything is lovely!

Why didn't I catch this earlier?!

Am I using #Github #Codespaces wrong?

I thought the point of creating a devcontainer.json file to specify extra bits have built when you set up a machine, and they were honoured on the creation of codespaces.

Given that #Gitpod seems to be adopting #devcontainer now, I figured I'd try Codespaces. A basic thing seems to be harder than I thought.

If you have direct experience building Codespaces, would you share a pointer on how to fix this seemingly basic thing?

gist.github.com/mrchrisadams/9

Gistcodespaces do not seem to respect new features added when building. this is me troubleshootingcodespaces do not seem to respect new features added when building. this is me troubleshooting - devcontainer.json

I stumbled upon #Coder, which is a #DevContainer platform you can use in your own computer (much like #DevPod).

I'm going to give it a spin to see if I can connect remotely to a DevContainer on another computer. It "should" work, since it's made for this type of scenarios, unlike DevPod which focuses on local.

coder.com/

coder.comCoder | Cloud Development Environment: Remote & Self HostedThe #1 self-hosted cloud development environment with over 50M open source downloads. Discover faster build times & reduce cloud costs with Coder today.
#Linux#FOSS#OSS

If you, just like me, wanted to try Dev Containers, but couldn't, because there was no support in VS Codium, I made an extension. I made it primarily for my own needs but I invite you to try it and contribute too.

The way it works is extremely simple. It builds containers with DevPod (github.com/loft-sh/devpod) and connects to them using Open SSH extension (github.com/jeanp413/open-remot). That's it.

You can find it at:
- github.com/3timeslazy/vscodium
- open-vsx.org/extension/3timesl

While making this extension, I also wrote some of my thoughts about dev containers tooling. You can read them here: techhub.social/@3timeslazy/113

I would also like to mention @sitnik_ru 's thread on this topic: mastodon.social/@sitnik_ru/112. I knew about devcontainers before, but this thread nudged me to try them again and eventually create my extension. As a thank you, I made a couple of contributions to the slowreader (github.com/hplush/slowreader).

GitHubGitHub - loft-sh/devpod: Codespaces but open-source, client-only and unopinionated: Works with any IDE and lets you use any cloud, kubernetes or just localhost docker.Codespaces but open-source, client-only and unopinionated: Works with any IDE and lets you use any cloud, kubernetes or just localhost docker. - loft-sh/devpod

Okay so I love the idea behind project-specific dev containers, but I'm constantly wishing to reply less on VS Code. DevPod is great for that, and then I can run nvim inside a remote container.

Is anyone aware of a CLI tool that will prompt you through the existing dev container templates and features, kind of like VS Code does? I'd also love the ability to add custom repos.

I think Laravel has a mess of development environments. Sail? Herd? Valet? Serve?

For fuck sake, stick to one that works anywhere without installing a fucking forest and call it a day. Bonus points for a GUI.

To me, the obvious choice is make something based on DevContainers.

WSL2 users can fuck off outside VSCode.