Coder.comC
Coder.com2y ago
11 replies
jlehman9

Correct way to pre-install extensions for Coder K8s workspaces?

Hi all, I have tried a couple things to get extensions working but have not been successful:
1. I've tried the code-server docs instructions where I just install them outright after installing the server into the base image https://coder.com/docs/ides/web-ides#code-server
2. I've tried using the use_cached_extensions argument but I can't get the extensions to cache somewhere that isn't the home directory.

Basically it seems like when the workspace is created the extensions that were installed to /home/coder/.local/share/code-server/extensions (and CachedExtensionVSIXs etc.) get wiped. Is there a way to keep them when the workspace is created? The workspaces are created in an environment with no access to any extension marketplaces/registries.
Learn how to configure web IDEs in your templates
Web IDEs - Coder Docs
Preview image
Was this page helpful?