Commit a17292d
authored
chore(devcontainer): use debian's
* chore(devcontainer): use debian's `protobuf-compiler` package
unfortunately, the current `Dockerfile` does not set the `PATH` variable
correctly. the `RUN` directive is evaluated at build time. thus, the
`$HOME` variable is resolved correctly to `/root/` when
installing the `protoc` binary; the binary ends up in
`/root/.local/bin/protoc`.
in contrast, an `ENV` directive is evaluated at a container's runtime,
so if `$HOME` is not correctly set at runtime, the `PATH` addition
`$HOME/.local/bin` resolves to `/.local/bin`, which does not exist.
since the linked docs now also recommend to use a package manager
to install the `protoc` compiler, the `Dockerfile` does the same now.
at the time of writing, bookworm's version is `libprotoc 3.21.12`,
which is higher than the required version of `3.15`.
* add `libprotobuf-dev` to include google's common proto type filesprotobuf-compiler package (apache#16687)1 parent 2093551 commit a17292d
1 file changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments