Commit 654e973
authored
[devcontainer] Changed to single user nix in devcontainer (#1325)
## Summary
Multi user nix installation with creating a devbox user in dockerfile
causes an issue in devcontainer with Nix due to permission issues with
subdirectories nix creates in `/tmp/`. Changing to a single user
installation and handling everything under root user in docker seems to
fix the issue.
## How was it tested?
- `devbox init && devbox add hello`
- `devbox generate devcontainer`
- open vscode: `code .`
- in vscode command palette (cmd + shift + p) run `Dev Containers:
Rebuild Without Cache and Reopen in Container`
- confirm that devcontainer gets created successfully and vscode
switches to remote devcontainer environment.1 parent b24890b commit 654e973
File tree
2 files changed
+8
-19
lines changed- internal/impl/generate
- tmpl
2 files changed
+8
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
14 | 11 | | |
15 | 12 | | |
16 | 13 | | |
17 | | - | |
18 | 14 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 15 | + | |
26 | 16 | | |
27 | | - | |
28 | 17 | | |
29 | 18 | | |
30 | 19 | | |
31 | 20 | | |
32 | 21 | | |
33 | 22 | | |
34 | 23 | | |
35 | | - | |
| 24 | + | |
36 | 25 | | |
37 | 26 | | |
38 | 27 | | |
39 | 28 | | |
40 | | - | |
| 29 | + | |
0 commit comments