how to use files in script after cloning a repository?
I'd like to use some files that comes from a repository.
The ideal use case is:
- clone the repository, using module "git-clone"
- use a file from this repository as the script parameter of resource "coder_script"...
Specifying command for running coder-based deployment
Hi there.
I'm going to create python-based service for kubernetes using coder. I created template with deployment and specified the following parameters:
resource "coder_agent" "main" {
...
startup_script = "pip install requests"...
external auth to be able to clone a repository from GitHub or GitLab
From what I read in https://coder.com/docs/admin/external-auth it is possible to authenticate users through their GitHub credentials.
But what if I just need them to authenticate to be able to clone a repository?
I don't want to create an app or a token on my account for them to be able to clone.
Did I misunderstand something?...
initializeCommand not executed in envbuilder
I have the below configuration on the devcontainer.json file and I want to run some scripts before dockerbuild starts but the "initializeCommand" is not executed when the container is started.
```
{
"name": "poc",
"initializeCommand": "bash .devcontainer/update.sh",...
Access Coder Locally
I am trying to run Coder behind a school firewall.
I am trying the —access-url flag, and set it to the same IP address as the box it is running on.
It seemingly starts fine, but I can not access it when I go to the local URL.
How do you change the “HTTP Listener”, since it is still pointing to 127.0.0.1?
...

deploy coder_agent with for_each loop
hi there, i'm trying to deploy coder_agent with a for_each loop, but when it's deploying i receive this error "duplicate agent name", but is not any "name" parameter at resource "coder_agent", any idea to fix this? kind regards!
`resource "coder_agent" "platform" {
for_each = local.enabled_platform
os = "linux"...
Angular and Coder
Greetings,
I have coder v2 deployed on a docker container in on-premises server.
Everything works but when I run the angular application none of the angular scripts are loaded and I get : Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.
The baseref is ./.
I tried looking online but can't really find anything on how to configure angular to work on coder. Interestingly the same project works fine on the linuxserver coder implementation....
Dev URLs configuration
Hey Team, I am new to coder environment and I was exploring this feature called Dev URls. One of the use-cases in our org is to give developers capability to launch their workspaces (which has both BE and FE integrated) and available on a public accessible URL instead of port forwarding. Is this something which we can achieve by dev URLs ? If yes, how is the experience ? Will I get a URL by default anytime I launch a new workspace or do i need to do infra changes for every workspace i launch ?
I went through this documentation but not very clear
https://s.cdr.dev/docs/admin/devurls/
...
Create template by zip upload hangs
Hi, any idea why create template by upload doesn't work and loops in the loading state? Thanks

State management, external backend?
Hi everyone, how does coder manage the terraform state of its workspaces? Is it stored in the Postgres database? Is there any option of them being stored externally, such as S3?
How to push templates to Kubernetes Coder from GitLab CI/CD?
Hi all,
I am trying to push my Terraform templates to my self-hosted Coder running in Kuberentes. I followed this guide: https://coder.com/docs/admin/templates/managing-templates/change-management#coder-cli
This is the error I am getting:...
Where can I find settings.json for vscode web?
I use the docker template and use the VS Code Web (https://registry.coder.com/modules/vscode-web) module.
I looked up the historical posts and they said settings.json is located at
~/.local/share/code-server/User/settings.json
, but I found that the ~/.local/share/code-server/User/
folder was not created, and even if I used the instructions to create and write settings.json, vscode's settings did not change.
When I manually opened vscode's settings file and copied its absolute path, it returned (Settings) /User/settings.json
....
Restrict access for Gitlab Auth
Hi community, how can I restrict the access based on Gitlab authentication? I have created the Gitlab app on a group like
foo/bar/coder
, can I restrict the access to members of the coder
group only? Currently anybody authenticated to Gitlab is able to sign into Coder.Solution:
Found the solution on my own by try and error. I got to assign the env variables CODER_OIDC_GROUP_FIELD=groups and CODER_OIDC_ALLOWED_GROUPS=foo/bar/coder to get it working as expected.
AWS: Can't make searching among custom (private) AMIs work
Hi team!
I am building coder workspaces in my AWS account based on EC2 virtual machines.
I have built a custom AMI (thanks to EC2 Image Builder).
Now I want to use it in a Coder template.
...
Envbuilder in Coder: wrong user is used when cache is enabled
Hello, when I build image for the first time, the correct user, specified in
.devcontainer
is used. But when the pod is restarted and image is pulled from cache, it ALWAYS uses root
user which then fails, because only the specified user has private SSH key in their .ssh
which can pull from remote repository. This happens regardless of ENVBUILDER_REMOTE_REPO_BUILD_MODE
set to true
or false
.
devcontainer:
```json
{...VS Code Desktop, remove button
When creating a template, I would like to remove the “VS Code Desktop” button as an option. I would like a template that only has “terminal” available, to force my students into using it.
Thanks...
Solution:
inside the template's
coder_agent
resource, add a display_apps
config to force removing the desktop option.
```
display_apps {
vscode = false...web terminal font, want to change
I have just created a fresh Debian 12 instance and loaded Coder on it. Then created a standard “docker” template and opened it up in the provided web terminal. The font that is being used is “DejaVu Sans”. How do I change the web terminal to use a different font; I want to use a Nerd Font.
Thanks...
ENVBUILDER_CACHE_REPO is always empty
Hi, I'm not sure what I'm doing wrong but
ENVBUILDER_CACHE_REPO
always remains empty in the env of the pod, even after multiple restarts. Here are some snippets of my config. LMK if you need more of my configuration and I will provide. I'm using latest versions of coder/coder
, hashicorp/kubernetes
and coder/envbuilder
providers. Envbuilder image is on 1.0.3
. Thanks in advance guys 🙂 Otherwise, it works perfectly
```json
locals {
...
envbuilder_env = {...