Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/katorlys-samples/terraform-coder-dotfiles-after-vscode-web
Terraform Module to install dotfiles after vscode-web installation in Coderv2
https://github.com/katorlys-samples/terraform-coder-dotfiles-after-vscode-web
coder coderv2 dotfiles terraform terraform-module vscode-web
Last synced: about 11 hours ago
JSON representation
Terraform Module to install dotfiles after vscode-web installation in Coderv2
- Host: GitHub
- URL: https://github.com/katorlys-samples/terraform-coder-dotfiles-after-vscode-web
- Owner: katorlys-samples
- License: mit
- Created: 2024-10-02T13:25:42.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-10-15T04:25:30.000Z (4 months ago)
- Last Synced: 2024-12-15T02:32:14.521Z (about 2 months ago)
- Topics: coder, coderv2, dotfiles, terraform, terraform-module, vscode-web
- Language: HCL
- Homepage: https://registry.terraform.io/modules/katorlys-samples/dotfiles-after-vscode-web/coder
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Coder Dotfiles after VS Code Module
Terraform Module to install dotfiles after vscode-web installation in Coderv2.[![Pull Requests][github-pr-badge]][github-pr-link]
[![Issues][github-issue-badge]][github-issue-link]
[![License][github-license-badge]](LICENSE)## Introduction
This module is copied from [Coder VS Code Web Module](https://registry.coder.com/modules/vscode-web) 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 VS Code web installation.This is a temporary fix for issue [https://github.com/coder/coder/issues](https://github.com/coder/coder/issues)#10352.
By using this module, you don't need to use the Coder VS Code Web Module and Coder Dotfiles Module anymore, and you'll never see `/tmp/vscode-web/bin/code-server: 12: /tmp/vscode-web/node: Text file busy` if you want to install VS Code installation in Coderv2 from your dotfiles now.
## Examples
Combine [Coder VS Code Web Module](https://registry.coder.com/modules/vscode-web?tab=readme) and [Coder Dotfiles Module](https://registry.coder.com/modules/dotfiles?tab=readme) together.
```tf
module "dotfiles-after-vscode-web" {
source = "katorlys-samples/dotfiles-after-vscode-web/coder"
version = "0.1.0"
agent_id = coder_agent.example.id
folder = "/home/coder"
accept_license = true
}
```## How?
This modules combines the Coder VS Code Web Module and Coder Dotfiles Module together in one module. Then, it executes the original dotfiles install script right after VS Code web install script is done. (See [run.sh](/run.sh) for detailed information)## Why?
I 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.Since 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.
All attempts failed, so I had no choice but to publish a module from Git to avoid the End of Line issue.
[![BACK TO TOP][back-to-top-button]](#readme-top)---
Copyright © 2024-present Katorly Lab[![License][github-license-badge-bottom]](LICENSE)
[back-to-top-button]: https://img.shields.io/badge/BACK_TO_TOP-151515?style=flat-square
[github-pr-badge]: https://img.shields.io/github/issues-pr/katorlys-samples/terraform-coder-dotfiles-after-vscode-web?label=pulls&labelColor=151515&color=79E096&style=flat-square
[github-pr-link]: https://github.com/katorlys-samples/terraform-coder-dotfiles-after-vscode-web/pulls
[github-issue-badge]: https://img.shields.io/github/issues/katorlys-samples/terraform-coder-dotfiles-after-vscode-web?labelColor=151515&color=FFC868&style=flat-square
[github-issue-link]: https://github.com/katorlys-samples/terraform-coder-dotfiles-after-vscode-web/issues
[github-license-badge]: https://img.shields.io/github/license/katorlys-samples/terraform-coder-dotfiles-after-vscode-web?labelColor=151515&color=EFEFEF&style=flat-square[github-license-badge-bottom]: https://img.shields.io/github/license/katorlys-samples/terraform-coder-dotfiles-after-vscode-web?labelColor=151515&color=EFEFEF&style=for-the-badge