Scott
Scott
CCoder.com
Created by saun on 4/15/2025 in #help
if there a way to limit resource usage for each workspace?
Where are you running Coder?
7 replies
CCoder.com
Created by Yasbaltrine on 4/10/2025 in #help
Stop workspace from API?
@Yasbaltrine - Out of curiosity, to stop a workspace, you have the send a CreateWorkspaceBuildRequest, but with transition: stop?
6 replies
CCoder.com
Created by Igor Zimmer on 4/7/2025 in #help
Is there any way to persist files when restarting a coder workspace?
Docker, k8s, VM?
30 replies
CCoder.com
Created by Igor Zimmer on 4/7/2025 in #help
Is there any way to persist files when restarting a coder workspace?
What runtime environment are you running Coder in?
30 replies
CCoder.com
Created by saun on 3/1/2025 in #help
How to build a custom private image using coder's docker template?
Sorry then. I'm at a loss for more things to try. 🤷🏻
63 replies
CCoder.com
Created by saun on 3/1/2025 in #help
How to build a custom private image using coder's docker template?
Also, what is the authentication method your registry uses?
63 replies
CCoder.com
Created by saun on 3/1/2025 in #help
How to build a custom private image using coder's docker template?
What is the environment Docker is running on? Is it your local computer? Or is it a VM? Just curious for now. Also, try hard coding your credentials to be sure they are getting through.
63 replies
CCoder.com
Created by saun on 3/1/2025 in #help
How to build a custom private image using coder's docker template?
Change it to the image name used within your private registry.
63 replies
CCoder.com
Created by saun on 3/1/2025 in #help
How to build a custom private image using coder's docker template?
Oh. And change the image here:
resource "docker_container" "workspace" {
count = data.coder_workspace.me.start_count
image = docker_image.main.name # <- here!!!
resource "docker_container" "workspace" {
count = data.coder_workspace.me.start_count
image = docker_image.main.name # <- here!!!
63 replies
CCoder.com
Created by saun on 3/1/2025 in #help
How to build a custom private image using coder's docker template?
And see what happens.
63 replies
CCoder.com
Created by saun on 3/1/2025 in #help
How to build a custom private image using coder's docker template?
Try removing these lines:
resource "docker_image" "main" {
name = local.image_name
keep_locally = true
}
resource "docker_image" "main" {
name = local.image_name
keep_locally = true
}
63 replies
CCoder.com
Created by saun on 3/1/2025 in #help
How to build a custom private image using coder's docker template?
I'd suggest reducing your template file to only the necessary parts for loading the container image and getting it running as a workspace. I'm also assuming you put in "registry.example.com" because you don't wish to share your registry address? If not, that is your first problem.
63 replies
CCoder.com
Created by saun on 3/1/2025 in #help
How to build a custom private image using coder's docker template?
What does "not working" mean? Any errors or unexpected results from steps you do other than "it doesn't work"?
63 replies
CCoder.com
Created by saun on 3/1/2025 in #help
How to build a custom private image using coder's docker template?
@saun - Maybe this will help you. https://coder.com/docs/tutorials/image-pull-secret
63 replies
CCoder.com
Created by finomen_ on 2/16/2025 in #help
Hot to configure STUN on kubernetes?
This is using emissary-ingress, but maybe your ingress controller/ gateway has something similar.
8 replies
CCoder.com
Created by finomen_ on 2/16/2025 in #help
Hot to configure STUN on kubernetes?
I'm not sure if it will help, but in order for me to properly use Coder in k8s, I had to make sure my ingress was "upgrading" the connection, much like is also necessary for websocket connections. I have this in my ingress mapping YAML for the Coder route:
allow_upgrade:
- derp
- websocket
allow_upgrade:
- derp
- websocket
8 replies
CCoder.com
Created by meatwad33w on 2/26/2025 in #help
For the coder install into EKS, how do I set the initial admin credentials? I cannot log in.
What steps did you take to get Coder running in your k8s setup? Was it this? This is important:
helm repo add coder-v2 https://helm.coder.com/v2
helm repo add coder-v2 https://helm.coder.com/v2
30 replies
CCoder.com
Created by meatwad33w on 2/26/2025 in #help
For the coder install into EKS, how do I set the initial admin credentials? I cannot log in.
@meatbaker33w - You are on a very old coder version. Coder is at v2.19.0.
30 replies
CCoder.com
Created by browniverson on 2/21/2025 in #help
Best way to auto install extensions?
Ok. I tried this out. Your solution doesn't work, because the remote.SSH.defaultExtensions setting is a global setting. It can't be added to a workspace. In other words, each dev would need to set this themselves. That "breaks" the idea of a workspace and also means, the dev might be installing extensions for one workspace they wouldn't need for another, for instance specialized Go extensions in a TypeScript workspace. 🙂 The best solution I could find is the recommendations setting in an extensions.json file in a top level .vscode folder in the repository. That gives the dev a button to install suggested extensions in their VSCode for that workspace and only once at the time of starting the workspace. The only annoying thing is all the installations of extensions opens up editor tabs, which need to be closed with a right click on the tabs and a click on "close all tabs". So, three clicks to install the extensions. Not fantastic, but "ok". I've also seen a possibility of installing extensions via the code CLI (VSCode's CLI) in a script during workspace startup. I haven't tried it yet, and when I think about it, asking the devs if they want to install extensions is a desirable solution. Maybe they don't want one or two extensions or want something more specific for what they wish to work on. My motto is, give as much flexibility to the devs as possible, but keep them "boxed in" as much as possible too. Hehehehe.... 😄
13 replies
CCoder.com
Created by browniverson on 2/21/2025 in #help
Best way to auto install extensions?
@sharkymark - The connection being made to a Coder environment isn't remote.SSH though, is it? Is it working for you?
13 replies