Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bpmct/coder-home-directory


https://github.com/bpmct/coder-home-directory

Last synced: 9 days ago
JSON representation

Awesome Lists containing this project

README

        

# coder-home-dir

In Coder on Kubernetes, an image's `/home/` directory is not used, as it is replaced by a Persistant Volume Claim so that the developer doesn't loose their files on rebuilds. Everything else in the filesystem is ephemeral and relies on the image as a source-of-truth. [See the docs](https://coder.com/docs/workspaces/personalization#persistent-home)

This is an example project that copies over an initial home directory from another folder. [See video](https://kapwi.ng/c/UkP3xaVA)

See the [.coder/](.coder/) folder for a sample image and corresponding template to copy the initial files.

The coder.yaml specifies a [configure step](https://coder.com/docs/workspaces/workspaces-as-code/templates#workspaceconfigure) that copies over the files for the initial home directory. This can also be done inside the image with a [configure script](https://coder.com/docs/images/configure). The method you choose to use depends on a few factors, such as whether an image is being used for multiple projects or just one.

An individual developer can also further customize their home directory with a [dotfiles repo or a personalize script](https://coder.com/docs/workspaces/personalization).

This is tested on Coder 1.19