Coder.com

C

Coder.com

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

Join

Create a dedicated workspace for each user

I am investigating to see if I would be able to replace Gitpod with Coder for my workshop needs. A first test for me can be a conference I have from 8 to 10th July. I have a workshop with something like 20 attendees. ...

create my first custom image

Now that I have a running coder in my Kube and tested it with base template, I need to customize it to fit my usage. I was previously using Gitpod for this and I already have a docker image and it is pushed in my registry. but I always end with workspaces: ```Workspace is unhealthy...

How to increase size of workspace volume?

Hey, all. Home user here, loving Coder so far. I'm cloning a monorepo into my workspace which is quite large. When I install all the dependencies and build, I run out of space. Host is a Mac running Docker Desktop....
Solution:
actually it seems now you can extend the virtual disk's size ! https://stackoverflow.com/a/48561621...

set template description ( the name the users see when creating )

Hi, We moved all template / image creation and mgmt to Gitlab. One issue though - how do we set the display name the users see when creating the template when pushing it for the first time ? I cant see a parameter for that in the cli ?...

Automation for importing the .code-profile inside terraform template

Hello, I have created a workspace using available kubernetes template on coder server. Now I am able to connect to the workspace, But I want an existing .code-profile to be imported inside my workspace. I understand that the terraform templates in coder can be modified, however is there any way to modify the template in such a way that whenever a workspace is created using that template, automatically the profile gets loaded within that workspace.

Sync local file into coder workspace

We are trying to setup coder for our RoR project, for this project we setup our secrets using onePassword for every environment. The way it works is we populate using onePassword an .env.docker file, we would love to automatically sync our local .env.docker file with the coder one, is this possible? 🤔 This way we prevent installing onePassword CLI on coder machine

Troubleshooting steps for SCIM

From @mark - https://discord.com/channels/747933592273027093/971231372373033030/1250830381255495783 --- Are there any troubleshooting steps for SCIM integration (presumably) performing wonky actions like randomly suspending my Coder users? It seems every day around 4--5% of my users are getting suspended and there's no cause given in the audit log....

Coder envbuilder container starts logging 401 errors when using "Update" option

I am seeing an issue where when I use the "Update" option in the coder dashboard after a template change, the coder process get stuck in this state, where it gets 401 errors trying to talk to the coder agent URL. The issue is resolved by using the "Restart" option instead. ``` 2024-06-12 19:43:20.920 [info] connecting to coderd 2024-06-12 19:43:20.934 [warn] run exited with error ... error= GET https://coder.example.com/api/v2/workspaceagents/me/rpc?version=2.1: unexpected status code 401: unexpected non-JSON response "": Try logging in using 'coder login'....

Not releasing the memory after Terraform task completed

Hi, I've noticed high memory usage after starting a workspace or updating the template. Typically, it only takes around 100MB, but the memory usage spikes and persists when performing such tasks. I expect the memory usage to decrease after an interval with no further activity. However, it seems Coder does not intend to release this memory, and I often have to restart Coder to release them. Besides, it uses ~300MB even after I have restarted Coder. Maybe it is because of the code-server or the JetBrains gateway?...
No description

Persisting container state across workspace restarts

I am working on setting up development environments with envbuilder, and I would like to emulate the behavior of GitHub Codespaces, where a container is only re-created during a "rebuild" which is distinct from a "restart" in their system. The motivation for this is to persist dotfiles changes that the user may have made. Is there a way to do this? I've been through https://coder.com/docs/templates/resource-persistence and tried disabling the "count" parameter on the coder_agent terraform resource in the template, but the container is still being re-created....

Upgrading AWS EC2 based coder server

I followed https://coder.com/docs/platforms/aws for setting up my initial coder instance, what's the intended upgrade path for this sort of install? Should I just use the coder install script? Or do I need to spin up a new instance with a newer version of the AMI?

Best practice for manipulating workspace on behalf of the user

Hello, i am working on a use case where one of our services is going to produce a file and deliver it to a certain user workspace. Ive been looking into existing to apis to accomplish something like that, I can see one way of potentially open a tty and execute a command there, but there are no examples of usage and I am not sure if that’s meant to be used for this kind of purpose. any recommendations?...

PostGres error

I have my Pg in my VM. Can U check if right config
No description

Does Coder Honor the Devcontainers Spec fully?

Hi Folks, I've been having some difficulties with devcontainers and coder. I've been using devcontainers successfully with GitHub codespaces. Coder picks up the correct image from devcontainer.json but nothing else. I've attached the template's main.tf file and the logs. And below is the devcontainers.json file. Any suggestions? { "image": "mcr.microsoft.com/devcontainers/universal:2-linux", "postCreateCommand": "/bin/bash -i -c .devcontainer/startup_script.sh",...

Code-Server Multi-user

Is there currently a self-hosted way of getting multiple users in the same code-server session and see each other like in VSCode Live Share?

Question about Docker-Template

Why is the installation script right here? Doesn't this section of code get run every time the container starts? Wouldn't it be better to move this into the dockerfile to just install it once?
No description

Unhealthy network using coder access url

I am trying to use CODER_ACCESS_URL to use my domain to access the coder instance running on my machine. * I am running coder locally * I setup a caddy reverse proxy filling the docs * I have my DNS record pointing at my local machine...
No description

NGINX Reverse Proxy Setup

Hello, Sorry if this as been asked before but I'm stuck in trying to setup a reverse proxy using NGINX Proxy Manager. I followed the steps as normal for adding a proxy host in NGINX but Coder is keeps reporting redirect too many times....
No description

Error in vscode-web module

Hello! Im pretty new using Coder and im trying to use the vscode-web module on my template but it doesnt seems to be working Full logs: ```...
Solution:
VSCode Web needs subdomain=true
No description

ctime

The task we have is the present time 06/02/2024, the task is to convert the time to the number 02062024, how can this be done? Below is the code that needs conversion ``` struct tm newtime; time_t now = time(NULL); localtime_s(&newtime, &now);...