Coder.com

C

Coder.com

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

Join

help

📢︱announcements

Non-Root Terminal?

Is there a way to have it default to user abc instead of defaulting to root? I'd want to run claude code or other apps as anyone but root.. thanks! PS - Github discussion mirror here: https://github.com/coder/coder/discussions/18914...

Seeking feedback on GCP VM setup for Coder

Hey all, I’m working on a proof of concept for a dev environment using Coder with ephemeral GCP VMs and would love to gut-check some assumptions and get feedback on a few sticking points. Setup Overview: - I'm using Packer to build a custom Ubuntu image with all base OS-level dependencies preinstalled (Docker, Python 3.11, Task, etc.) - The metadata startup script creates the user and installs the Coder agent...

Github actions suddenly failing

Context - IOC Setup where Coder templates live in a github repo in different folders and github actions validate updates to them and then push them out to our Coder instance - Github actions that we're working a week ago are suddenly failing with endless red herrings in the logs Example Output...

Getting SSH Keys into Dev Containers

Hi, I'm using dev containers with envbuilder and created a custom template to run them in Azure VMs. It's working well so far. Now I'm trying to extend it with a few more features. Specifically, I want to use the SSH key generated by Coder inside the dev containers so I can clone private repositories and run Git commands over SSH....

How can a workspace's environment variable values be modified?

I am trying to setup the Coder Tasks w/ Docker template which has the following variables in the main.tf template file: ``` variable "anthropic_api_key" { type = string description = "Generate one at: https://console.anthropic.com/settings/keys"...
Solution:
variables are shared by each workspace created from the template so you need to modify it in the Template settings

Is there a right way to building your own image for workspaces

I have a unique scenario where git auth does not work with our on-prem TFS, so envbuilder was not working for me at all. As a work-around, or at least an idea, I thought to build my own image to be used for the workspace with all of the scripts and packages to run. When I deploy my Coder control plane to EKS and try to create my workspace from my image I get the following error Events: Type Reason Age From Message ---- ------ ---- ---- -------...

Bounty Contribution

I want to contribute to the vscode desktop modules, and I shared my approach and implementation to the issues, I would like to work on. https://github.com/coder/registry/issues/207...

selfhosting

is there any way to selfhost ?

Coder Under Cloudflared - Apps not working correct.

So im trying to get coder to have full use of VS-Code and File Browser. Ive been able to get VS-Code to be able to open but i cant get Filebrowser to at all. I am running under Cloudflared Docker, porting out Coder to my site at (Coder.Intrashare.Org) Everything else works, from access to the terminal, to users etc....

How do I use Claude via Bedrock with the Tasks Docker example?

Currently trying to set up https://github.com/coder/registry/tree/main/registry/coder-labs/templates/tasks-docker with Claude via AWS Bedrock. I've added the AWS keys, which Claude Code seems to detect. However, it reports that it's trying to use a US model. I've configured an EU model, which it reports via /status in Claude Code.
Solution:
Removed the API key Claude env var entirely, then added the aws keys. If the env var for Claude API key exists, even it's empty, it won't correctly use Bedrock

GitLab Upload Public Key with external-auth

I'm trying to replicate a similar module to: https://github.com/coder/modules/tree/main/github-upload-public-key, but for GitLab. In the documentation, the scope needed for GitHub is listed as: CODER_EXTERNAL_AUTH_0_SCOPES="repo,workflow,admin:public_key" In my Coder deployment, if I don't specify this scope as an environment variable, is there a default? Or does it follow the scope that is matched to the OAuth application set on GitLab?...
Solution:
ok i had to re-authorise external authentication, and now it's working

First Workspace Waits Forever

Hello everyone, I'm following the tutorial to get coder up and running to try out and having some issues. I installed it on a ubuntu machine and it seems to be up and running without issues and I go to the tunnel URL and try and create a docker workspace like in the quickstart. I do have docker on the server....

How to Run Dev-Containers on Azure?

I want to run dev-containers on Azure infrastructure. I've noticed that Coder provides: - A template for dev-containers via Docker (https://registry.coder.com/templates/coder/docker-devcontainer) - Templates for Azure-hosted workspaces (Linux and Windows VMs) ...

Windsurf Plugin Fails to Connect

When trying to click the windsurf button, it trys to connect to an incorrect host. It appears as though it appends the workspace name on the end of the domain, and that domain does not resolve.

Getting SSH Keys into Dev Containers

Does anyone know the right way to get the SSH key inside an env builder deployment running on k8s. I have the key secret mounted into the deployment, but its not getting exposed into the final environment.

Not able to open the workspace in VS Code Desktop

Hello, I have self-hosted Coder and set up the Docker workspace. It runs smoothly, and I can access my workspace via VS Code Web and Terminal without any issues. However, I can't open the same workspace in VS Code Desktop; it only shows “Opening Remote...' and gets stuck. I'm using a custom domain with SSL enabled for Coder. Any assistance would be appreciated.
Solution:
Atrif, thank you for your response. I discovered that the issue stemmed from my custom domain’s SSL certification, which prevented VS Code from downloading the necessary binaries from my code server. I managed to resolve this problem by implementing a reverse proxy configuration and regenerating the wildcard certificate. Thank you again for your help.

Preconfigured Shared Ports

Is there a way to preconfigure shared ports to public in a coder template? I am trying to run Hasura in a docker container within coder (docker in Envbox). Another dashboard docker image uses the exposed Hasura URL. I don't have a way to set credentials: "include" within the fetch calls of the dashboard. The only way to get everything working is for me to manually set the "Shared Port" to public. I am trying to automate creating a workspace and running the docker stack and would prefer to not have to manually set this value on every workspace. Is there a way to preconfigure this port to be public or script the startup script to expose the port as public?...
Solution:
I was able to get this url to load: https://nhost-dashboard--main--a1--jovermier.coder.hahomelabs.com but this url with the additional apps didn't work. https://nhost-dashboard--main--a1--jovermier-apps.coder.hahomelabs.com/ ...
No description

How to update image in Docker Template?

Hello! I maintain my own image for Docker template on ghcr.io and wonder how can I force update the image in a template? It seems to fetch the older release even though I already pushed & rebuild the image two times

Unable to Start Workspace

I am unable to start a workspace. It keeps timing out and then eventually say it could not start after 20 mins. What is the issue?
No description

Envbox UID Remapping Breaks FSx Permissions

Hello, We’ve deployed Coder on EKS, using FSx Lustre for shared storage. For quite some time, our setup worked fine with the default Coder user (uid=1000), and all workspaces mounted the FSx volumes without permission issues. However, after introducing Envbox, we’ve run into significant problems when trying to mix Envbox and non-Envbox workspaces. Envbox doesn’t preserve the uid=1000—it remaps and uses uid=101000 instead. This causes permissions on FSx to change whenever an Envbox workspace is created, breaking access for the other workspaces....