{"id":17821882,"url":"https://github.com/katorlys-samples/terraform-coder-dotfiles-after-code-server","last_synced_at":"2026-05-02T04:41:40.269Z","repository":{"id":259516965,"uuid":"871485014","full_name":"katorlys-samples/terraform-coder-dotfiles-after-code-server","owner":"katorlys-samples","description":"Terraform Module to install dotfiles after code-server installation in Coderv2","archived":false,"fork":false,"pushed_at":"2024-10-15T04:25:45.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T01:26:02.034Z","etag":null,"topics":["code-server","coder","coderv2","dotfiles","terraform","terraform-module"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/modules/katorlys-samples/dotfiles-after-code-server/coder","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/katorlys-samples.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-12T05:09:34.000Z","updated_at":"2024-10-15T04:25:49.000Z","dependencies_parsed_at":"2024-10-26T06:12:18.368Z","dependency_job_id":"99e0a63c-eda0-4b14-8a01-30d80eed1b76","html_url":"https://github.com/katorlys-samples/terraform-coder-dotfiles-after-code-server","commit_stats":null,"previous_names":["katorlys-samples/terraform-coder-dotfiles-after-code-server"],"tags_count":1,"template":false,"template_full_name":"katorlys-samples/Template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katorlys-samples%2Fterraform-coder-dotfiles-after-code-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katorlys-samples%2Fterraform-coder-dotfiles-after-code-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katorlys-samples%2Fterraform-coder-dotfiles-after-code-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katorlys-samples%2Fterraform-coder-dotfiles-after-code-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/katorlys-samples","download_url":"https://codeload.github.com/katorlys-samples/terraform-coder-dotfiles-after-code-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246794207,"owners_count":20834938,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-server","coder","coderv2","dotfiles","terraform","terraform-module"],"created_at":"2024-10-27T17:27:21.807Z","updated_at":"2026-05-02T04:41:40.258Z","avatar_url":"https://github.com/katorlys-samples.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca name=\"readme-top\"\u003e\u003c/a\u003e\n\u003cdiv align=\"center\"\u003e\n\n\u003c!-- \u003ca href=\"#\"\u003e\n  \u003cimg src=\"https://github.com/katorlys/.github/blob/main/assets/mark/mark.png\" height=\"100\"\u003e\n\u003c/a\u003e\u003cbr\u003e --\u003e\n\n\u003ch1\u003e\n  Coder Dotfiles after code-server Module\n\u003c/h1\u003e\n\n\u003cp\u003e\n  Terraform Module to install dotfiles after code-server installation in Coderv2.\n\u003c/p\u003e\n\n[![Pull Requests][github-pr-badge]][github-pr-link]\n[![Issues][github-issue-badge]][github-issue-link]\n[![License][github-license-badge]](LICENSE)\n\n\u003c/div\u003e\n\n\n\u003c!-- Main Body --\u003e\n\n## Introduction\nThis module is copied from [Coder code-server Module](https://registry.coder.com/modules/code-server) and [Coder Dotfiles Module](https://registry.coder.com/modules/dotfiles) (Both licensed under [Apache License 2.0](https://github.com/coder/modules/blob/438c9045673c629e95416960c94a6b6344e3d298/LICENSE)), and adds the feature of executing the dotfiles install script after code-server installation.\n\nThis is a temporary fix for issue [https://github.com/coder/coder/issues](https://github.com/coder/coder/issues)#10352.\n\nBy using this module, you don't need to use the Coder code-server Module and Coder Dotfiles Module anymore, and you'll never see `/tmp/code-server/bin/code-server: 12: /tmp/code-server/node: Text file busy` if you want to install code-server installation in Coderv2 from your dotfiles now.\n\n\n## Examples\nCombine [Coder code-server Module](https://registry.coder.com/modules/code-server?tab=readme) and [Coder Dotfiles Module](https://registry.coder.com/modules/dotfiles?tab=readme) together.\n```tf\nmodule \"dotfiles-after-code-server\" {\n  source         = \"katorlys-samples/dotfiles-after-code-server/coder\"\n  version        = \"0.1.1\"\n  agent_id       = coder_agent.example.id\n  folder         = \"/home/coder\"\n}\n```\n\n\n## How?\nThis modules combines the Coder code-server Module and Coder Dotfiles Module together in one module. Then, it executes the original dotfiles install script right after code-server install script is done. (See [run.sh](/run.sh) for detailed information)\n\n\n## Why?\nI initially intended to fix the issue privately. However, the shell scripts on Windows use `\\r\\n` for End of Line instead of `\\n`, and Coder cannot automatically convert them, causing script execution to fail.\n\nSince I deploy the Coder instance using Docker, I can only copy the script to the online editor. Additionally, the `Upload template` function is broken, preventing me from packaging and uploading the scripts.\n\nAll attempts failed, so I had no choice but to publish a module from Git to avoid the End of Line issue.\n\n\n\u003c!-- /Main Body --\u003e\n\n\n\u003cdiv align=\"right\"\u003e\n  \n[![BACK TO TOP][back-to-top-button]](#readme-top)\n\n\u003c/div\u003e\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\n\u003cp\u003e\n  Copyright \u0026copy; 2024-present \u003ca target=\"_blank\" href=\"https://github.com/katorlys\"\u003eKatorly Lab\u003c/a\u003e\n\u003c/p\u003e\n\n[![License][github-license-badge-bottom]](LICENSE)\n\n\u003c/div\u003e\n\n[back-to-top-button]: https://img.shields.io/badge/BACK_TO_TOP-151515?style=flat-square\n[github-pr-badge]: https://img.shields.io/github/issues-pr/katorlys-samples/terraform-coder-dotfiles-after-code-server?label=pulls\u0026labelColor=151515\u0026color=79E096\u0026style=flat-square\n[github-pr-link]: https://github.com/katorlys-samples/terraform-coder-dotfiles-after-code-server/pulls\n[github-issue-badge]: https://img.shields.io/github/issues/katorlys-samples/terraform-coder-dotfiles-after-code-server?labelColor=151515\u0026color=FFC868\u0026style=flat-square\n[github-issue-link]: https://github.com/katorlys-samples/terraform-coder-dotfiles-after-code-server/issues\n[github-license-badge]: https://img.shields.io/github/license/katorlys-samples/terraform-coder-dotfiles-after-code-server?labelColor=151515\u0026color=EFEFEF\u0026style=flat-square\n\u003c!-- https://img.shields.io/badge/license-CC_BY--NC--SA_4.0-EFEFEF?labelColor=151515\u0026style=flat-square --\u003e\n[github-license-badge-bottom]: https://img.shields.io/github/license/katorlys-samples/terraform-coder-dotfiles-after-code-server?labelColor=151515\u0026color=EFEFEF\u0026style=for-the-badge\n\u003c!-- https://img.shields.io/badge/license-CC_BY--NC--SA_4.0-EFEFEF?labelColor=151515\u0026style=for-the-badge --\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatorlys-samples%2Fterraform-coder-dotfiles-after-code-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkatorlys-samples%2Fterraform-coder-dotfiles-after-code-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatorlys-samples%2Fterraform-coder-dotfiles-after-code-server/lists"}