Skip to content

Commit

Permalink
Add mount for host's udev rules in container
Browse files Browse the repository at this point in the history
This is done to address a problem in the `serialport-rs` library:
serialport/serialport-rs#153

Using the `runArgs` property since the `mounts` property doesn't allow specifying `readonly`.
  • Loading branch information
dylif authored and SergioGasquez committed Oct 3, 2024
1 parent 56ab473 commit ce02466
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cargo/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
"ESP_BOARD": "{{ mcu }}"
}
},
// https://github.com/serialport/serialport-rs/issues/153
"runArgs": [
"--mount",
"type=bind,source=/run/udev,target=/run/udev,readonly"
],
"customizations": {
"vscode": {
"settings": {
Expand Down

0 comments on commit ce02466

Please sign in to comment.