mirror of
https://github.com/coder/coder.git
synced 2026-06-05 05:58:20 +00:00
2a492b7008
* Move updatecheck logs to debug mode This was causing logs to be emitted immediately after initial setup, which seemed odd for the user. * Fix setup page text to say "Create" instead of "Setup" account * Improve copy on the empty workspaces page - This view can be seen after the user creates their first workspace, so saying first is bad. - It should describe what a workspace is, so I modified the description. - The create from template button wasn't helpful! * Improve the copy for the empty templates view - This didn't describe what a template actually is. - The title had the same problem as workspaces, where first makes no sense. * Improve text consistency on the Create Template page * Fix "View activity" displaying for non-Enterprise users This was causing an exception to be thrown. * Improve messaging of empty groups view * Appropriately capitalize Workspace and Template * Improve Docker template taglines * Fix types
name, description, tags, icon
| name | description | tags | icon | ||
|---|---|---|---|---|---|
| Develop in Docker with a dotfiles URL | Develop inside Docker containers using your local daemon |
|
/icon/docker.png |
docker-with-dotfiles
This is an example for deploying workspaces with a prompt for the users' dotfiles repo URI.
Getting started
Run coder templates init and select this template. Follow the instructions that appear.
How it works
During workspace creation, Coder prompts you to specify a dotfiles URL via a Terraform variable. Once the workspace starts, the Coder agent runs coder dotfiles via the startup script:
variable "dotfiles_uri" {
description = <<-EOF
Dotfiles repo URI (optional)
see https://dotfiles.github.io
EOF
# The codercom/enterprise-* images are only built for amd64
default = ""
}
resource "coder_agent" "main" {
...
startup_script = var.dotfiles_uri != "" ? "/tmp/tmp.coder*/coder dotfiles -y ${var.dotfiles_uri}" : null
}
Managing images and workspaces
Refer to the documentation in the Docker template.