Coder.com

C

Coder.com

Community server for Coder.com, an open-source platform for cloud development environments.

Join

help

📢︱announcements

Multiple VM template - 1 agent + 1 user_data or ...?

Hi. Love Coder. All public templates appear to assume provisioning only 1 compute thing. I'm writing a Template that can provision a cluster of VMs but I'm getting an error when I try to create equal count of coder agents ("duplicate agent name: agent"). resource coder_agent is missing a name attribute so it can't be created in a loop/count....

Failed to install provider?

use Docker Containers template create template , show me this, how can i fix it?
No description

newgrp not working in startup script

This might just be a Linux 101 issue but still can't work out why. We have a custom built AMI with Docker installed and want to grant the Coder user access to use Docker. Since the Coder user doesn't exist on the AMI yet I added the commands to the startup_script in resource "coder_agent" ...

Restarting a workspace is taking too much time

its taking around 30-40 mins to restart a workspace.
No description

Moving Coder within 2 EC2 Instances

Hi I need to migrate coder from one EC2 to another EC2, is there any easy way for this to not loose all configs, github auth, templates workspace etc ?

Custom hostname on Kubernetes?

I'm currently running Coder on https://coder.domain-i.payfor (domain omitted for privacy reasons) But when I run curl https://coder.domain-i.payfor/install.sh | sh I get the following error, how can I tell my Coder to use my domain? ``` $ curl https://coder.domain-i.payfor/install.sh | sh...

Question about creating a pre-configured Environment

Is it possible to use the RUN command in a Dockerfile to configure the workspace so that necessary tools like Golang, kind, HELM, etc., are installed automatically when creating a workspace?

Presistent ubuntu volume

Hello, how do i achieve a presistent ubuntu volume? when I restart my docker dev volume it just reinstall ubuntu and delete my zsh and Golang installation.

Not able to create a helm-based workspace

Hi everyone, I'm experiencing an issue on installing a helm_release resource during the process of creating the Coder Workspace. I have defined the k8s resources in a helm chart. When I try to use the helm_release resource block (https://registry.terraform.io/providers/hashicorp/helm/latest/docs/resources/release), it successfully creates the k8s resources as well as the helm lock secret but, for some reason, not the release itself (helm list returns empty). Due to that, if I try to stop the workspace, the coder terraform apply fails with (Error: UPGRADE FAILED: another operation (install/upgrade/rollback) is in progress). If, on the other hand, I try to destroy the workspace, everything is destroyed as expected, event the lock secret. I tried to install the chart manually (through helm install) and it works (the helm release is created). ...

Air-gapped Kubernetes Coder Set-Up

There will be 2 separate kubernetes cluster, in the same subnet, one to deploy coder and the other for user workspaces. In such a set-up, will I need to have a reverse proxy (like NGINX), or can I simply have a DNS with SSL/TLS, that points to my Coder's ingress IP directly? How will the difference in the set-up impact speed / latency / performance of coder_apps?

Not able to create a workspace using kubernetes devcontainer template

Using k3s and helm, I have setup the cluster. While creating a workspace using kubernetes devcontainer template i am getting this error,...
No description

Coder proxied access to Docker Engine docker.sock

When running Coder as a container, is it possible to redirect Docker socket access to a tcp:// connection to reduce root privilege threat exposure instead of a volume mount?

How to use coder_parameter to force_rebuild docker images?

Hi there, I saw this in the docs: ``` data "coder_parameter" "force_rebuild" {...

Limit workspace CPU and memory resources

Configuration Coder v2.19.0 self hosted, Terraform 1.9.8, DinD with Sysbox current main.tf...

Slow and unreliable workspace connections when running Coder on multiple kubernetes clusters

Hi all, we have the current setup of: cluster A: Running coder server cluster B: Provisioning target for Coder Workspaces, configured as outlined in this document. In this configuration, Workspaces provisioned on Cluster B are so slow to access over Coder that they are unusable. However, if we provision workspaces on the same cluster that the Coder server is running on (Cluster A), workspaces perform as expected. ...

Docker in Docker does not work with docker devcontainer template

Hi, i want to run docker in docker in a devcontainer but docker does not work. When using envbuilder standalone it works:...

Coder Workspaces Stuck in Apply Complete

After updating to the latest 2.18.x release, we're seeing the following on coder workspaces (custom kubevirt template) ``` null_resource.start_vm[0]: (local-exec): Waiting for VM to start... null_resource.start_vm[0]: (local-exec): Waiting for VM to start... null_resource.start_vm[0]: Still creating... [30s elapsed]...

How to modify an current coder running instance to accept domain wildcards?

So hello, I was modifying some of my templates to include the modules that coder have, like "File Explorer" and "Jupyter" but after updating then I cannot click into the app button. I did some research around what would be the problem and I did find out that I need to have a parameter for wildcards into the running coder server. (https://coder.com/docs/admin/setup#wildcard-access-url) I'm not findind the way to update a current running coder server to have these paramters without losing data....
No description

Problem with high latency in Workspace

Hi everyone, I'm experiencing high latency in my workspace and I'm looking for ways to reduce it. Could anyone provide some insights or suggestions on why this might be happening and how I can improve the performance? Thank you!...

Just to need to confirm the behaviour of CODER_BROWSER_ONLY

I suspect I know the answer to this, but is the intended behaviour of the CODER_BROWSER_ONLY envvar (--browser-only flag) to prevent port-forwarding to webapps running in my engineer's workspaces?