Skip to content

Commit

Permalink
Add devcontainer (#125)
Browse files Browse the repository at this point in the history
* add basic devcontainer config

* add dependencies to devcontainer

---------

Co-authored-by: daniel.eades <[email protected]>
  • Loading branch information
danieleades and daniel.eades authored Jan 15, 2025
1 parent 44f3a51 commit c3ef8c0
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "Rust",
"image": "mcr.microsoft.com/devcontainers/rust:1-1-bullseye",
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"upgradePackages": true,
"installZsh": true,
"configureZshAsDefaultShell": true,
"installOhMyZsh": true,
"installOhMyZshConfig": true
}
},

// Use 'mounts' to make the cargo cache persistent in a Docker Volume.
"mounts": [
{
"source": "devcontainer-cargo-cache-${devcontainerId}",
"target": "/usr/local/cargo",
"type": "volume"
}
],
"postCreateCommand": "bash .devcontainer/setup.sh"
}
10 changes: 10 additions & 0 deletions .devcontainer/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
rustup install nightly
sudo apt-get update && sudo apt-get install -y \
clang \
libavdevice-dev \
libavfilter-dev \
libavformat-dev \
libavutil-dev \
libclang-dev \
libgtk-3-dev \
libopencv-dev

0 comments on commit c3ef8c0

Please sign in to comment.