Configuring Vscode webIDE

Hi, Our team want to use Vscode web IDE for development on Coder. We want that whenever a user gets a workspaces with Vscode, the Vscode should already have some extensions and configs ready. Is it possible? Thanks
6 Replies
Atif
Atif2y ago
Please look at some example templates on how to do this. You can check this template here. https://github.com/matifali/coder-templates/tree/main/deeplearning It uses a docker image that is available here. https://github.com/matifali/dockerdl
GitHub
coder-templates/deeplearning at main · matifali/coder-templates
Coder OSS templates. Contribute to matifali/coder-templates development by creating an account on GitHub.
GitHub
GitHub - matifali/dockerdl: Deep Learning Docker Image
Deep Learning Docker Image. Contribute to matifali/dockerdl development by creating an account on GitHub.
Chinz
Chinz2y ago
@Atif Hi, I had a look through it and I can understand what is going on But I am not sure how to use this as a resource for my requrement (configuring extensions and configs for Vscode on webIDE) It would be really helpful if you can share something like that if possible. Actually I didn't had any idea about terraform yet, thus I am kinda dumb
Atif
Atif2y ago
Can you share your template and image(dockerfile)?
Chinz
Chinz2y ago
I don't have any image (I guess). The template I am using is Kubernetes which comes with coder (also, coder is hosted on kubernetes too)
Atif
Atif2y ago
I do not have any experience working with .
sharkymark
sharkymark2y ago
@Chinz in the startup_script, after it installs and starts code-server (VS Code), you can run the code-server binary to add extensions, in this case from the Open VSX marketplace on the Internet.
See this PHP example, but change the extension to whatever one you want from Open VSX. You could alternatively bundle vsix files in the image, and use the same code-server to install extension from file. https://github.com/sharkymark/v2-templates/blob/main/pod-with-phpstorm/main.tf#:~:text=%23%20install%20VS%20Code%20extensions%20for%20PHP%20development%20and%20debugging
GitHub
v2-templates/main.tf at main · sharkymark/v2-templates
Contribute to sharkymark/v2-templates development by creating an account on GitHub.
Want results from more Discord servers?
Add your server