Automation for importing the .code-profile inside terraform template

Hello, I have created a workspace using available kubernetes template on coder server. Now I am able to connect to the workspace, But I want an existing .code-profile to be imported inside my workspace. I understand that the terraform templates in coder can be modified, however is there any way to modify the template in such a way that whenever a workspace is created using that template, automatically the profile gets loaded within that workspace.
8 Replies
Codercord
Codercord6mo ago
<#1251271324819652714>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Ashwini
AshwiniOP6mo ago
there are no errors
Phorcys
Phorcys6mo ago
would that profile be based on the user or would the profile be per-workspace?
Ashwini
AshwiniOP6mo ago
per workspace. Basically its a common profile all the developers from team shall use. Instead of manually configuring it, we want the settings to be preloaded for all the workspaces created using the template
Phorcys
Phorcys6mo ago
you could add it in the container image for your template either to the /home/<user> folder or to another folder to be copied later on by the startup script otherwise if you have some kind of secure file sharing then maybe you'll want to fetch it dynamically on workspace startup
Ashwini
AshwiniOP6mo ago
I can get the file from /home/user folder, but how do I configure the startup script to install that profile in the code-server.
Ashwini
AshwiniOP6mo ago
Basically I want this setting here to be automated into terraform template so the user doesnt have to manually import the profile
No description
Phorcys
Phorcys6mo ago
FAQ - code-server Docs
Frequently asked questions on installing and running code-server.
From An unknown user
From An unknown user
From An unknown user
Want results from more Discord servers?
Add your server