Optimizing My Development Workflow: Self-Hosting VS Code and Docker reddit / selfhosted ---------------------------------------------------------------------- Vampire_Duchess · 2023-10-18 16:29 I'm starting to work with JavaScript, and I plan to explore frameworks. While I currently use Visual Studio Code on my Mac, Windows, and Linux laptops, I'm considering the idea of self-hosting a Visual Studio Code server on my own VPS.(debian server). I've also discovered the utility of Docker containers for my projects, allowing me to set up environments with the necessary tools like Node.js. This way, I can easily manage my development environment. So, I'm curious, what's your setup like? I'm trying to avoid the hassle of switching between three different computers or clients. I believe that if I can access my VPS and start working on my code, it would greatly streamline my development process. ---------------------------------------------------------------------- dazchad · 2023-10-18 17:21 I have vscode but on my os and then connect via the remote extension. Works well. For docker, I’d rather go with VM if you want isolation from one project to another. They are easier to snapshot and easier to reason around for development in my opinion ---------------------------------------------------------------------- Pesfreak92 · 2023-10-18 20:23 Have the same setup for VSCode. I use it to edit files and start/stop Docker containers. Of course it can do much more. Very convenient. Maybe even more convenient than Portainer. ---------------------------------------------------------------------- walwalka · 2023-10-18 21:17 I work in JS, React and a postgres DB, I decided to go with a bit of a mix. I was already using Github as my repo and local containers for my apps. But I was building my containers locally and deploying via scripts. I recently adopted using actions with self-hosted runners to create my images. For dev it runs on the self-hosted and drops the image locally. For prod, it's run on the self-hosted and uploaded to my image registry(docker hub). I am working on terraform now to watch for the new image and create a new container with it. ---------------------------------------------------------------------- Vampire_Duchess · 2023-10-18 22:05 thank you for sharing your workflow although may be a bit advance for me I see where is going. I work with sysadmin areas, but I'm really interested into devops and cloud engineering for AWS. But someone invite me to join a dev team for a js, React and postgress DB project. So I'm starting to learn Js. So I wanted to have some insights in how to approach this. thank you ---------------------------------------------------------------------- Vampire_Duchess · 2023-10-18 22:08 thank you for sharing, although I don't have my Promox server (dell thin client i5) died a month a go. I would do VM or LXC container. My local VPS is just an old laptop core duo 2 and raspberry pi 2 and doing the snapshots would be easier but I'm stuck at the moment with those options. ---------------------------------------------------------------------- DCoRBOST · 2023-10-19 02:47 My work flow lately is that I create a VS Dev Container at the start of my project and then develop within that container on my Windows 11 laptop. Depending on the project I either create into a container or use another PaaS say from Azure or AWS. If I'm pure self hosting for me at the house, I just use my Synology NAS DS220+ and run the containers on there and also host my Mariadb there as well that is used with my containers that require a database. Hopefully that all makes sense. ---------------------------------------------------------------------- Vampire_Duchess · 2023-10-19 04:16 yeah, thank you so much for sharing. ---------------------------------------------------------------------- gwillen · 2023-10-19 05:03 My experience has been that remote use of VS Code over SSH is completely seamless. I never had to install any packages or do anything to manage VS Code state on the server side. It handles everything itself. ---------------------------------------------------------------------- Vampire_Duchess · 2023-10-19 05:48 thank you for sharing! ---------------------------------------------------------------------- haqbar · 2023-10-19 14:10 Same experience here, works seanlessly and if you throw devcontainers on top it also works perfectly. I use my small NUC at home to develop on, everything is also in GitHub and the remote computer is reachable through Tailscale. Gives me a great experience while being able to lug around a rather small laptop with not a lot of ram or cpu :)