Coder.com

C

Coder.com

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

Join

help

📢︱announcements

Should terraform init run on every deploy?

I've done an init locally to generate a terraform.lock.hcl and pushed that, but I can see that on every deploy Coder is running an init that's taking ~4-5 seconds, at least 3 of which is installing providers, which seems excessive if the providers had been cached locally from a previous run on a machine with an SSD. I'm fairly new to terraform but I thought that if these were in place it should be able to skip that and go straight to plan/apply? My current deployment is running off the coder:v2.18.2 docker image....
No description

Need different OIDC redirect URL from the `CODER_ACCESS_URL`

Continuation of my intro here The reason for this being I have two ways for users to access my environment. One is a direct domain (internal network -- foo.internal) and the other is an MFA authentication enforced domain (external network -- foo.external). Only authenticated users can traverse foo.external. This prohibits workspaces and the other Coder services because they cannot authenticate. As a result I must set the CODER_ACCESS_URL value to foo.internal. I'd also like users to be able to come in on foo.external. The issue here being when a user tries to log in via OIDC, the redirect URL is set to CODER_ACCESS_URL (which is foo.internal in this situation), not the desired incoming domain of foo.external. This leads to a State mismatched error when the user is redirected back to foo.internal/api/v2/users/oidc/callback..., despite coming in on foo.external. I see two potential solutions:...

[Paid Help Wanted] Complete Setup Guide for Laravel Project

I’m looking for someone who can dedicate a few hours to help me set up Coder for my Laravel project. We’re considering using either Docker Containers or Laravel Forge for the setup. We’ve run into a bunch of errors that we couldn’t find solutions for on GitHub or through online searches. If you have experience with Coder, Docker, or Laravel Forge and are available to assist, please let me know your rates and availability, and the payment method. Thanks a lot!...

Terminal Theme

Hi is there a way to change the terminal theme of workspaces?

Parameter validation

We are trying to use parameter validation with a "coder_param" that has no default value. We use the cli tool to push the template in our gitlab ci. Unfortunately this seems to be impossible as the cli runs terraform plan which fails due to an empty parameter. Has anybody found a solution to this? Am I missing something obvious?...

Cannot create new directories using terminal

I am trying to install new extensions for my students using Docker terminal but I think the coder version my superior prof gave me set a restriction somewhere

Starting workspaces on Koyeb

Could anyone give me any guidance on getting code-server going on a koyeb instance? I'm not particularly experience in terraform, so have tried to modify some of the other templates. I'm able to create the instance, but always getting some kind of deployment error starting up the container....

Issue running on Mac M Series?

I just installed coder, and I got this error when I tried to run a dev container template: Error: Incompatible provider version Provider registry.terraform.io/coder/envbuilder v1.0.0 does not have a package available for your current platform, darwin_arm64....

Docker Pipe Permission Issues with WSL when running Coder in Docker

@Phorcys Here is the thread. I am struggling to get permissions working with coder user on WSL. So far two things worked: 1. Make all images run in root user....

Workspace build failed for Kubernetes (DevConntainer) as a starter template

this is the error i dont know how to resolve it please help me out with this
No description

Workspace creation times out.

On creating a new workspace using the starter docker template, it shows the agents are unhealthy. On looking at the docker container logs, I see this: ``` + curl -fsSL --compressed https://xxx.pit-1.try.coder.app/bin/coder-linux-amd64 -o coder curl: (6) Could not resolve host: xxx.pit-1.try.coder.app error: failed to download coder agent...

Support microservices environment

I have setup coder with dev containers in k8s. Application includes 10 microservices, nginx, redis, database. Coder workspace run with all those services within one pod in k8s. I want to have coder environmnet more closer to real prod one to have seperate pod per service. I'm thinking about docker-in-docker solution with docker-compose run within one coder workspace or multiple workspaces interconnected via k8s service resources. Could you recommend what solution could be implemented with coder for microservice like environment?...

Websockets not working, despite all healthy

Don't know what happened, but after a reboot of the host machine, coder has problems with websockets. openening the default "Terminal", I get the error WebSocket failed: socket errored and the "Disconnected" warning above. Coder docker container and workspace docker container show no errors

Persistent AWS EBS/EC2 home directory

Problem—When I click restart in the coder web GUI, it recreates my workspace and causes the EBS volume to be recreated, causing me to lose all of the data. I understand why that is as a terraform recreate is happening. So, before I go down the rabbit hole of making custom scripts, etc., I just wanted to see if there was an out-of-the-box method from the coder. ...

Restrict to folder

hi, is there any chance to restrict code-server to a specific folder ? Users can open root via Url parameter.

Workspace build failed for Kubernetes (Devcontainers)

I've mounted kubeconfig secret onto my Coder deployment and when I deploy Kubernetes (Deployment), it reads the secret correctly and deploys it into the Kubernetes Cluster. However, for Devcontainers (Kubernetes), it seems like it doesn't read the kubeconfig and workspace build failed with "persistentvolumeclaims is forbidden ... cannot create resource "persistentvolumeclaims" For both, the provider.kubernetes.configpath is exactly the same....

Coder ran on a machine with VPN can't resolve the hostname

I moved Coder to run on my main system which has a Proton VPN up and running. It's a regular Ubuntu. So when I run Coder (through docker compose), starting a workspace doesn't work. My workspace container logs: ```bash + curl -fsSL --compressed http://funny_hostname:7080/bin/coder-linux-amd64 -o coder...

Coder RDS IAM Auth

Does coder use the service account that is deployed through the helm chart to then use an IAM role and connect to an RDS instance? Having some trouble wiring this up, looking for some guidance

Modify $PATH to include custom bin folder

Good morning y'all, How do I modify my vs code (desktop) $PATH for my container? One of my extensions requires Java, Current PATH: /root/.vscode-server/cli/servers/Stable-fabdb6a30b49f79a7aba0f2ad9df9b399473380f/server/bin/remote-cli:/usr/local/share/nvm/current/bin:/usr/local/share/npm-global/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/.local/bin:/root/.vscode-server/data/User/globalStorage/github.copilot-chat/debugCommand...