Coder.com

C

Coder.com

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

Join

Docker-in-Docker with sysbox on Kubernetes

Hi! I'm trying to setup sysbox-runc using the instructions provided in https://coder.com/docs/v2/latest/templates/docker-in-workspaces#use-sysbox-in-kubernetes-based-templates (and previously installing the sysbox on the k8s cluster in question). However, when I'm creating a new workspace I get the following error: ``` Error: pods "coder-artyom-artyom-test-sysbox-coder" is forbidden: pod rejected: RuntimeClass "sysbox-runc" not found on main.tf line 205, in resource "kubernetes_pod" "main": 205: resource "kubernetes_pod" "main" {...

Terraforms docker_image extra_hosts flag get ignored

Hello, I need to add some local records into /etc/hosts of every container made from my template, so i read the docker_image documentation on terraform and teried to use the extra_hosts parameter: https://registry.terraform.io/providers/kreuzwerker/docker/latest/docs/resources/image#extra_hosts Unfortunately, it is ignored by Coder the DNS record is not resolvable in containers and the change is not save into /ets/hosts even on newly created workspaces....

Struggling to set up on kubernetes

Hi all, I followed the installation instructions step by step. Everything seems to be up, however, when I use the kubernetes template it gets stuck at The workspace agent is having trouble connecting...

Is there any way to create a coder_parameter that assists the user in inputting others' usernames?

I am looking for a way to have a coder_parameter of type "list(string)" that will be used to specify usernames. It currently works, but it requires the user to know all of the usernames they want to add and won't help them if they're spelled wrong and therefore don't exist. Is there any way to validate the list against existing user to ensure they exist, or better yet, help them find member names similar to the admin functionality that allows admins to create workspaces for users?

How can i change the current region?

Hello! I want to change the region to Sao Pablo, how can i do that? I looked in the documentation but found nothing...
Solution:
You can also run your Coder instance closer to where you live 🙂
No description

britive integration

Has anyone worked with britive for cloud accounts. I am hoping to speed up the setup time for developers to authenticate with coder and then allow for workspace to require access to a specific cloud account via britive...

PATH getting overwritten

Hello, I am trying to setup a Rust dev container. I am using the official image but when I create a workspace it overwrites the PATH and removes /usr/local/cargo/bin from it. If I pull down the image locally, the PATH is as it should but not when using Coder

Envbuilder in Coder not using caches at all despite configuring CACHE_REPO

Hello, I am using coder with envbuilder but I seem to be getting 0 cache hits even when restarting the same workspace with 0 changes. I have configured CACHE_REPO to use an empty AWS ECR image repository and I see evbuilder successfully checking for caches and, supposedly, ``` #1: 📦 Cloned repository! [46.039909689s] #2: Deleting filesystem......

Stop all workspaces using cli

What is the recommended approach to stop all workspaces using coder cli?

How to apply enterprise license without making owner account first?

Hi all, I'm working on a deployment of Coder with Helm and am having trouble figuring out how to setup a license for a new deployment of Coder without needing to login and manually make an admin account first with the web UI. Is there documentation for how to do that?

expo go and code server

Hey all ! I managed to install npm and Node.js on my Docker container of Code Server, but when I run the command 'npm start,' I receive the following error message: Logs for your project will appear below. Press Ctrl+C to exit....

Error: No configuration files

I am new to terraform and coder. I am trying to use this template: https://github.com/coder/coder/tree/main/examples/templates/gcp-windows. I copied the folder and added the line default="projectId"...

Using the golang codersdk

I'd like to use the codersdk to write a simple program for updating my templates. However, when I try to import github.com/coder/coder/codersdk, I get the following error when building my program: ``` github.com/coder/coder/codersdk imports github.com/coder/coder/tailnet imports...

Has anyone encountered this problem before

api/v2/appearance return "API key or workspace agent token required, but none provided" I raised an issue here:https://github.com/coder/coder/issues/12557...
No description

Goroutine dump with Coder V2 on Fly.io

Hey all! I'm deploying Coder to Fly.io, with an external database, following this (https://coder.com/blog/remote-developer-environments-on-fly-io) guide. I'm getting a very long Goroutine dump, and it goes on for around ~40-50 lines....

when logging with entra id, I expect the coder’s name to be set as Display

Not sure if this is a bug or a config error. Currently when user login with Entra Id their “Name” in coder is blank. Even though their Microsoft profile has a Display name value.

does coder templates support a variable with a map of objects or strings?

When i have a lookup against a map of objects locally the terraform plan works fine. But when i do a “coder template push” it fails with an error saying an element in the map is not an object.

docker daemon

Hi, I am learning kubernetes and stuff around it and decided to deploy coder on my home server running microk8s. After like 5 hours, finally got it working with argocd (i am noob with helm yet) but when i try to create a docker template, it throws an error that it cannot connect to docker. any ideas?...

Accessing Self-Hosted Coder Server Through ZeroTier VPN

I have set up a self-hosted Coder server on our internal workstation server machines. Currently, we can access the workspaces through the tunnel https://<GUID>.pit-1.try.coder.app/. However, I would also like to access the Coder server through our ZeroTier VPN. ZeroTier is an encrypted, layer-2-stretch multipoint VPN with integrated firewalling capability. I believe it should be possible to access our self-hosted Coder server using the IP address provided by our ZeroTier network. However, after reading the Coder documentation (https://coder.com/docs/v2/latest/admin/configure), I'm unable to find the necessary information to configure this setup. Has anyone successfully set up a self-hosted Coder server to be accessible through a VPN? If so, could you please provide guidance on how to achieve this configuration?...

when auto running a “open in coder” the required git authentication is not triggered

When I do open in coder and prompt for the parameters. Then the required git authentication is checked and asks the user to login. Auto run skips this....