Mathias Fredriksson
7d412c2272
feat(examples/templates): add docker-devcontainer template and rename envbuilder template ( #18741 )
...
This change adds a new `docker-devcontainer` template which allows you
to provision a workspace running in Docker, that also creates workspaces
via Docker running inside (DinD).
- **chore(examples/templates): rename `docker-devcontainer` to
`docker-envbuilder`**
- **feat(examples/templates): add `docker-devcontainer` example
template**
2025-07-03 15:50:08 +03:00
ケイラ
fae30a00fd
chore: remove unnecessary redeclarations in for loops ( #18440 )
2025-06-20 13:16:55 -06:00
blink-so[bot]
1a693383a9
chore: update Go version to 1.24.4 ( #18408 )
...
Updates all Go version references in the codebase to use Go 1.24.4.
## Changes
- Update `go.mod` to use Go 1.24.4
- Update `dogfood/coder/Dockerfile` GO_VERSION to 1.24.4
- Update `.github/actions/setup-go/action.yaml` default version to
1.24.4
- Update `examples/parameters-dynamic-options/variables.yml` to use
golang:1.24
## Testing
- ✅ All Go version references are consistent (verified with
`scripts/check_go_versions.sh`)
- ✅ Build tested successfully with Go 1.24.4
- ✅ Binary runs correctly
Co-authored-by: blink-so[bot] <211532188+blink-so[bot]@users.noreply.github.com>
Co-authored-by: sreya <4856196+sreya@users.noreply.github.com >
2025-06-18 01:46:39 +10:00
Eric Paulsen
b0d23ca31b
fix: remove duplicated envbuilder vars ( #18144 )
2025-06-03 16:23:59 +01:00
Atif Ali
5827219812
chore: update module sources in templates to new format ( #18026 )
2025-05-25 00:15:18 +02:00
M Atif Ali
ad38a3bddc
fix(examples/templates/kubernetes-devcontainer): update coder provider ( #17555 )
2025-04-24 12:56:07 +05:00
Aericio
614a7d0d58
fix(examples/templates/docker-devcontainer): update folder path and provider version constraint ( #17553 )
...
Co-authored-by: M Atif Ali <me@matifali.dev >
2025-04-24 07:21:35 +00:00
Phorcys
661ed2376a
chore(examples/templates): add ec2:DescribeInstanceStatus to permissions ( #17134 )
...
([Discord
message](https://discord.com/channels/747933592273027093/991429648200245358/1352357113204314173 ))
---
One of our community users has mentioned needing to add the
`ec2:DescribeInstanceStatus` to permissions.
From the [API
docs](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstanceStatus.html ):
> Describes the status of the specified instances or all of your
instances
I think it's sensible to add it to our README example for the aws-*
templates, it's probably required now due to changes in either the AWS
API or Terraform provider, and shouldn't have a big impact.
2025-03-27 15:06:50 +00:00
ケイラ
f6382fde22
chore: update docker starter template jetbrains_ides option to match module default ( #16898 )
...
Taken from
https://github.com/coder/modules/blob/fd5dd375f7f8740226e798fc60a4a5d271b294d4/jetbrains-gateway/main.tf#L134
The order got shuffled a little, but the main difference is that the new
list includes RustRover, which is nice. :)
2025-03-12 17:12:30 -06:00
Lucas Melin
db064ed0f8
docs: fix formatting of note callouts ( #16761 )
...
Fixes the formatting of several note callouts. Previously, these would render incorrectly both on GitHub and on the documentation site.
2025-03-07 10:35:14 -05:00
Andrey
f65051966c
feat: add run_as_non_root=True to Kubernetes Starter template ( #16512 )
...
This document sounds like `run_as_non_root=True` should be enabled for
workspaces.
https://coder.com/docs/install/kubernetes#kubernetes-security-reference
> All containers must run as non-root user
> - Control plane - ...
> - Workspaces - Workspace pod UID is [set in the Terraform template
here](https://github.com/coder/coder/blob/f57ce97b5aadd825ddb9a9a129bb823a3725252b/examples/templates/kubernetes/main.tf#L274-L276 ),
and are not required to run as root.
Administrators of the Kubernetes of a cluster I am working on have added
a security check on it, and prevent creating pods, without
`run_as_non_root=True`. So, I need to set it every time I create a
template.
According to the docs used with `run_as_user=1000` it should not have
negative effects and could be safely added.
https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.26/
2025-02-12 10:58:33 -05:00
Cian Johnston
76adde91dc
fix(provisioner/terraform/tfparse): allow empty values in coder_workspace_tag defaults ( #16303 )
...
* chore(docs): update docs re workspace tag default values
* chore(coderdenttest): use random name instead of t.Name() in newExternalProvisionerDaemon
* fix(provisioner/terraform/tfparse): allow empty values in coder_workspace_tag defaults
2025-01-28 09:11:39 +00:00
Phorcys
738a7f6bd9
fix(examples/templates/docker): persist /home/coder instead of /home/${local.user} ( #16189 )
...
Fix for #16188
2025-01-19 08:41:55 +05:00
Phorcys
8fb7832b27
feat(examples/templates/azure-windows): add azure region and windows-rdp modules ( #15516 )
2025-01-07 18:41:04 +00:00
Phorcys
0870ff2410
chore: unify azure-linux and azure-windows templates ( #16039 )
2025-01-06 09:24:16 +04:00
Muhammad Atif Ali
94f5d52fdc
chore: adopt markdownlint and markdown-table-formatter for *.md ( #15831 )
...
Co-authored-by: Edward Angert <EdwardAngert@users.noreply.github.com >
2025-01-03 13:12:59 +00:00
Cian Johnston
9c625476b7
fix(examples): add keep_locally to docker_image resources ( #16012 )
...
Fixes https://github.com/coder/coder/issues/15972
Adds `keep_locally = true` to other templates that use the
`docker_image` resource to prevent the docker provider from attempting
to remove the image upon workspace deletion.
We had set this in some other places (such as the `dogfood` template)
but had not set this consistently in other templates.
2025-01-02 13:17:53 +00:00
Phorcys
8befb34eca
feat(examples/templates/digitalocean-linux): add code-server and jetbrains gateway modules ( #15546 )
2024-12-27 21:45:29 +01:00
Phorcys
03edd604a7
chore(examples/templates/digitalocean-linux): make template more friendly ( #15938 )
2024-12-25 00:52:23 +05:00
Phorcys
c41d7c38ae
feat(examples/templates/kubernetes-devcontainer): switch code-server to a module and add JetBrains ( #15545 )
2024-12-21 16:38:29 +05:00
Nguyễn Đức Huy
2eee201cd8
fix: encode .dockerconfigjson value for kubernetes-devcontainer example template ( #15819 )
...
Value of `.dockerconfigjson` in kubernetes_secret datasource is already
decoded, so I encode it again to avoid error for
`ENVBUILDER_DOCKER_CONFIG_BASE64`
2024-12-16 09:05:44 +00:00
Phorcys
bc4f9a4327
fix(examples/templates/aws-linux): add hashicorp/cloudinit provider ( #15794 )
2024-12-09 21:51:07 +05:00
Phorcys
8a408176e8
feat(examples/templates/kubernetes-envbox): promote module usage ( #15548 )
2024-12-09 18:18:53 +05:00
Phorcys
81279a9247
chore(examples/templates/azure-linux): migrate to hashicorp/cloud-init provider ( #15785 )
2024-12-09 16:30:32 +05:00
Phorcys
aa310e3979
chore: add template ID disclaimer ( #15770 )
...
Follow-up to #15757
2024-12-06 17:37:35 +01:00
Charlie Voiselle
9fe71d9daa
feat: make username in Initialize.ps1 dynamic ( #15751 )
...
This PR switches the `UserId` from a constant to a generated values
based on the script environment. This enables users to rename their
machine and default user name without having to edit this element as
well.
2024-12-06 08:16:32 -05:00
Charlie Voiselle
bae12e1f0b
fix: remove backtick from valid password characters ( #15756 )
...
Since backticks are the PowerShell escape character, they are silently
consumed. To actually use backticks, they would need to be doubled when
used.
This change increases the safety of generated passwords for other
terraform modules that might use this value unawares.
2024-12-06 08:16:05 -05:00
Phorcys
069655ace9
chore: unify template naming ( #15757 )
...
This PR changes template names and docs to follow the
`<provider>-<os/whatever>` format for all templates.
I've decided not to split this into multiple PRs because I'd have to
edit rebase the other PRs once one of them gets merged, this should be
relatively low-impact anyways.
This aligns with our goals to make templates more user-friendly.
Closes #15754
2024-12-05 22:37:25 +05:00
Phorcys
0b4eb8bafc
feat(examples/templates/gcp-devcontainer): promote module usage ( #15549 )
2024-11-29 18:27:46 +05:00
Phorcys
68dc820a7c
feat(examples/templates/devcontainer-docker): promote module usage ( #15544 )
2024-11-29 18:23:36 +05:00
Phorcys
7a7db9f4ad
feat(examples/templates/gcp-windows): add GCP region module ( #15552 )
2024-11-28 14:12:36 +05:00
Phorcys
56eb72236e
feat(examples/templates/docker): switch code-server to a module and add jetbrains module ( #15547 )
2024-11-28 11:00:58 +05:00
Phorcys
946328f36e
feat(examples/templates/gcp-linux): add GCP region, code-server and JetBrains Gateway modules ( #15550 )
2024-11-28 10:13:21 +05:00
Phorcys
ba91a95f77
feat(examples/templates/gcp-vm-container): add GCP region selector, code-server and JetBrains modules ( #15551 )
2024-11-28 09:25:12 +05:00
Cian Johnston
e550365e35
chore(docs): update documentation for coder_workspace_tags ( #15620 )
...
Adds documentation relating to
https://github.com/coder/coder/issues/15087 and
https://github.com/coder/coder/issues/15427
See also: https://github.com/coder/coder/pull/15578
2024-11-25 21:01:18 +00:00
Phorcys
f9d6698384
feat(examples/templates/azure-linux): promote module usage ( #15517 )
2024-11-18 13:40:12 +05:00
Phorcys
6b1fafbacc
feat(examples/templates/aws-linux): use modules for code-server and jetbrains ( #15500 )
2024-11-14 15:45:08 +01:00
Ethan
b96177613b
ci: fix go tests not running if examples are updated ( #15514 )
...
- https://github.com/coder/coder/pull/15504 broke CI on main because of
the aforementioned issue, this also fixes the test failure.
2024-11-14 14:20:51 +00:00
Ben Potter
d3eb896543
fix: remove built-in image for Docker template ( #15504 )
...
The hardcoded image is an anti-pattern, leading to weird errors if the
`docker` group is absent. We should either provide a better error
in-product or just have a better image.
@matifali - also down to use a Devcontainers universal image instead or
make this a parameter. Let me know what you think the best "default
install" is
2024-11-14 06:40:50 -07:00
Muhammad Atif Ali
065263a852
chore: update dependabot config and pin Docker images ( #15194 )
2024-11-04 11:01:54 +05:00
Phorcys
c8f68cbc46
feat: use hashicorp/cloud-init provider for AWS-linux example ( #15240 )
...
Same as #15050 but for the `aws-linux` template.
Tested, works as expected.
2024-10-28 07:43:45 +00:00
Phorcys
91c337a2ff
feat: use hashicorp/cloud-init provider in AWS devcontainer template ( #15050 )
...
This PR makes templates uses the
[hashicorp/cloud-init](https://registry.terraform.io/providers/hashicorp/cloudinit/latest/docs )
provider instead of hardcoding a cloud-init config.
2024-10-27 13:17:03 +00:00
Cian Johnston
06a40185cb
chore(examples): add missing devcontainer templates to examples.go ( #15080 )
2024-10-15 17:26:42 +01:00
Phorcys
79d24d2101
feat: allow for different docker socket path in docker-based templates ( #15035 ) ( #15049 )
...
This PR fixes #15035 , I have tested it on my instance and it works as
expected.
2024-10-12 21:35:52 +02:00
Muhammad Atif Ali
419eba5fb6
docs: restructure docs ( #14421 )
...
Closes #13434
Supersedes #14182
---------
Co-authored-by: Ethan <39577870+ethanndickson@users.noreply.github.com >
Co-authored-by: Ethan Dickson <ethan@coder.com >
Co-authored-by: Ben Potter <ben@coder.com >
Co-authored-by: Stephen Kirby <58410745+stirby@users.noreply.github.com >
Co-authored-by: Stephen Kirby <me@skirby.dev >
Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com >
Co-authored-by: Edward Angert <EdwardAngert@users.noreply.github.com >
2024-10-05 10:52:04 -05:00
Cian Johnston
3b5cabb566
feat(examples/templates/aws-devcontainer): add root volume parameter, growpart automatically ( #14839 )
...
Fixes https://github.com/coder/coder/issues/14833
2024-09-27 09:51:31 +01:00
Cian Johnston
e4470e1617
hotfix(examples/templates/aws-devcontainer): fix code-server module address ( #14836 )
2024-09-26 16:28:09 +00:00
Cian Johnston
4be5b2ff98
chore(examples/templates/aws-devcontainer): update to use envbuilder provider` ( #14831 )
...
* chore(examples/templates/aws-devcontainer): update to use envbuilder provider
* fix(devcontainer-gcp): set builder image properly
2024-09-26 17:07:14 +01:00
Cian Johnston
4bd7fe8506
fix(examples/templates/gcp-devcontainer): fix location of env file ( #14422 )
2024-08-23 17:46:02 +01:00
Cian Johnston
53e5746636
feat(examples/templates/gcp-devcontainer): add envbuilder provider ( #14405 )
...
This PR modifies the gcp-devcontainer example template to include
support for devcontainer caching using the envbuilder provider.
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com >
Co-authored-by: Muhammad Atif Ali <atif@coder.com >
2024-08-23 17:36:24 +01:00