This commit is contained in:
arviter
2023-07-29 22:28:36 +08:00
commit 9e89f39397
3 changed files with 262 additions and 0 deletions

35
template/docker/README.md Normal file
View File

@@ -0,0 +1,35 @@
---
name: Develop in Docker
description: Develop inside Docker containers using your local daemon
tags: [local, docker]
icon: /icon/docker.png
---
# docker
To get started, run `coder templates init`. When prompted, select this template.
Follow the on-screen instructions to proceed.
## Editing the image
Edit the `Dockerfile` and run `coder templates push` to update workspaces.
## code-server
`code-server` is installed via the `startup_script` argument in the `coder_agent`
resource block. The `coder_app` resource is defined to access `code-server` through
the dashboard UI over `localhost:13337`.
## Extending this template
See the [kreuzwerker/docker](https://registry.terraform.io/providers/kreuzwerker/docker) Terraform provider documentation to
add the following features to your Coder template:
- SSH/TCP docker host
- Registry authentication
- Build args
- Volume mounts
- Custom container spec
- More
We also welcome contributions!