coder / envbuilder

Build development environments from a Dockerfile on Docker, Kubernetes, and OpenShift. Enable developers to modify their development environment quickly.
Apache License 2.0
130 stars 25 forks source link

fix(envbuilder): RunCacheProbe: remove references to constants.MagicDir #315

Closed johnstcn closed 1 month ago

johnstcn commented 1 month ago

Relates to https://github.com/coder/envbuilder/issues/314

RunCacheProbe is likely to execute without root permissions (e.g. via Terraform provider). Writing to constants.MagicDir will fail in this case due to lack of permission. Instead, use buildTimeWorkspaceFolder to write a Dockerfile when compiling from a devcontainer.json.