initialize vdi with .devcontainer

This commit is contained in:
rustdesk 2023-02-25 18:39:27 +08:00
parent 6ed94f7bd1
commit f71d4e9e81
8 changed files with 1242 additions and 0 deletions

1
vdi/README.md Normal file
View File

@ -0,0 +1 @@
# WIP

View File

@ -0,0 +1,16 @@
FROM rockylinux:9.1
ENV HOME=/home/vscode
ENV WORKDIR=$HOME/rustdesk/vdi/host
# https://ciq.co/blog/top-10-things-to-do-after-rocky-linux-9-install/ also gpu driver install
WORKDIR $HOME
RUN dnf -y install epel-release
RUN dnf config-manager --set-enabled crb
RUN dnf -y install cargo libvpx-devel opus-devel usbredir-devel git cmake gcc-c++ pkg-config nasm yasm ninja-build automake libtool libva-devel libvdpau-devel llvm-devel
WORKDIR /
RUN git clone https://chromium.googlesource.com/libyuv/libyuv
WORKDIR /libyuv
RUN cmake . -DCMAKE_INSTALL_PREFIX=/user
RUN make -j4 && make install
WORKDIR /

View File

@ -0,0 +1,27 @@
{
"name": "rustdesk",
"build": {
"dockerfile": "./Dockerfile",
"context": "."
},
"workspaceMount": "source=${localWorkspaceFolder},target=/home/vscode/rustdesk,type=bind,consistency=cache",
"workspaceFolder": "/home/vscode/rustdesk",
"customizations": {
"vscode": {
"extensions": [
"vadimcn.vscode-lldb",
"mutantdino.resourcemonitor",
"rust-lang.rust-analyzer",
"tamasfe.even-better-toml",
"serayuzgur.crates",
"mhutchie.git-graph",
"eamodio.gitlens"
],
"settings": {
"files.watcherExclude": {
"**/target/**": true
}
}
}
}
}

1
vdi/host/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/target

1185
vdi/host/Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

9
vdi/host/Cargo.toml Normal file
View File

@ -0,0 +1,9 @@
[package]
name = "qemu-rustdesk"
version = "0.1.0"
authors = ["rustdesk <info@rustdesk.com>"]
edition = "2021"
[dependencies]
qemu-display = { git = "https://gitlab.com/marcandre.lureau/qemu-display" }

1
vdi/host/README.md Normal file
View File

@ -0,0 +1 @@
# RustDesk protocol on QEMU D-Bus display

2
vdi/host/src/main.rs Normal file
View File

@ -0,0 +1,2 @@
fn main() {
}