zounce
zounce
CCoder.com
Created by Martí on 10/21/2024 in #help
deploy coder_agent with for_each loop
Though that does make me think you might not be able to use a for_each with coder_agent due to the way it's implemented, unfortunately
5 replies
CCoder.com
Created by Martí on 10/21/2024 in #help
deploy coder_agent with for_each loop
In this case the name is coming from the resource name, which is admittedly confusing
5 replies
CCoder.com
Created by Andrej on 10/18/2024 in #help
Create template by zip upload hangs
I’ve seen the upload process hang when they’re sufficiently big, but the max size we support is 3 (maybe 4?) Mb
6 replies
CCoder.com
Created by Andrej on 10/18/2024 in #help
Create template by zip upload hangs
How big are the templates you’re trying to upload? If you’ve run terraform init within them before uploading they can get pretty big
6 replies
CCoder.com
Created by Andrej on 10/16/2024 in #help
State management, external backend?
but of course feel free to make a feature request for this, if you think it'd be beneficial for others
11 replies
CCoder.com
Created by Andrej on 10/16/2024 in #help
State management, external backend?
there's coder state push as well, you could probably try hacking around with that?
11 replies
CCoder.com
Created by Andrej on 10/16/2024 in #help
State management, external backend?
I don't believe we have any external documentation for the database, but it's the provisioner_state column on the workspace_builds table, the state from a build of a workspace can also be read using coder state pull <wsname>
11 replies
CCoder.com
Created by Andrej on 10/16/2024 in #help
State management, external backend?
Coder supports remote Terraform state files IIRC, you just have to configure it within the template using the backend block
11 replies
CCoder.com
Created by Andrej on 10/16/2024 in #help
State management, external backend?
11 replies
CCoder.com
Created by jozef on 9/26/2024 in #help
Active workspace metrics via prometheus
Awesome!
10 replies
CCoder.com
Created by jozef on 9/26/2024 in #help
Active workspace metrics via prometheus
This metric was undocumented, just pr'd to fix that, so thank you!
10 replies
CCoder.com
Created by jozef on 9/26/2024 in #help
Active workspace metrics via prometheus
looks consistent with what /deployment/stats returns
10 replies
CCoder.com
Created by jozef on 9/26/2024 in #help
Active workspace metrics via prometheus
coderd_workspace_latest_build_status{status="failed",template_name="docker",template_version="intelligent_williamson3",workspace_owner="admin",workspace_transition="stop"} 1
coderd_workspace_latest_build_status{status="failed",template_name="docker",template_version="sweet_gould9",workspace_owner="admin",workspace_transition="stop"} 1
coderd_workspace_latest_build_status{status="succeeded",template_name="docker",template_version="sweet_gould9",workspace_owner="admin",workspace_transition="stop"} 1
coderd_workspace_latest_build_status{status="succeeded",template_name="scratch",template_version="clever_khayyam6",workspace_owner="admin",workspace_transition="start"} 1
coderd_workspace_latest_build_status{status="failed",template_name="docker",template_version="intelligent_williamson3",workspace_owner="admin",workspace_transition="stop"} 1
coderd_workspace_latest_build_status{status="failed",template_name="docker",template_version="sweet_gould9",workspace_owner="admin",workspace_transition="stop"} 1
coderd_workspace_latest_build_status{status="succeeded",template_name="docker",template_version="sweet_gould9",workspace_owner="admin",workspace_transition="stop"} 1
coderd_workspace_latest_build_status{status="succeeded",template_name="scratch",template_version="clever_khayyam6",workspace_owner="admin",workspace_transition="start"} 1
Filtering this metric to labels where status is succeeded and workspace_transition is start should get you what you're looking for?
10 replies
CCoder.com
Created by Spiked_Grape on 8/13/2024 in #help
template ci/cd pipeline enforcement
Just keep in mind any ACL/permissions modification requires enterprise
28 replies
CCoder.com
Created by Spiked_Grape on 8/13/2024 in #help
template ci/cd pipeline enforcement
Yeah you’ll need two templates for two different ACLs
28 replies
CCoder.com
Created by Spiked_Grape on 8/13/2024 in #help
template ci/cd pipeline enforcement
if you make changes to the contents of a version in the list, a new template version will get created when you apply
28 replies
CCoder.com
Created by Spiked_Grape on 8/13/2024 in #help
template ci/cd pipeline enforcement
Phorcys is correct, the versions list is alike to recording different branches of versions
28 replies
CCoder.com
Created by Winton on 9/9/2024 in #help
How to stop Jupyter Kernels from dying when sleeping/disconnecting laptop?
If you're already doing that, and Coder is still randomly killing that process, I'd be a little concerned
13 replies
CCoder.com
Created by Winton on 9/9/2024 in #help
How to stop Jupyter Kernels from dying when sleeping/disconnecting laptop?
I've not used jupyter, but from what I can tell jupyter notebook starts a server that lives in a terminal session, perhaps you want it to run in the background? Appending an & to a command runs it in the background for most shells: jupyter notebook & disown
13 replies
CCoder.com
Created by Winton on 9/9/2024 in #help
How to stop Jupyter Kernels from dying when sleeping/disconnecting laptop?
Disconnecting from your workspace only kills the processes running in your PTY sessions
13 replies